Merged barry-b1-socket-arch-branch into MAIN.
[barry.git] / ChangeLog
blob075ca985730c399e2e7aa9ab0281763e0ede0baa
1 Release: version 0.13 - 2008/04/??
2 ------------------------------------------------------------------------------
3 2008/04/25
4         - major merge of barry-b1-socket-arch-branch into MAIN.
5           The following is the changelog from that branch, which is now MAIN.
7         2008/04/25
8                 - added thread-safe logging mechanism
9                 - added preliminary IP modem support... requires a recent
10                         device... serial mode is not yet supported
11                 - merged HEAD changes
12         2008/03/27
13                 - changed Barry::Init() so programmer can choose where
14                         debug and exception information goes, instead of
15                         always to stdout
16         2008/03/22
17                 - merged HEAD changes
18         2008/03/20
19                 - fixed bug in probe class, which missed storing the PIN
20                         number in ProbeResult
21                 - also added ProbeResult constructor
22                 - merged changes from visibility branch:
23                         - GCC visibility support, limiting what symbols are
24                           visible in the shared library, libbarry... this makes
25                           a drastic reduction in the symbol table, and should
26                           avoid future name clashes with other libraries such
27                           as opensync
28                           See: http://gcc.gnu.org/wiki/Visibility
29                         - vformat_() function name changes
30         2008/03/07
31                 - merged HEAD changes
32                 - added threads library to new bs11nread build
33         2008/02/28
34                 - fixed variable size issues in btranslate.cc, evident with
35                         some compilers on 64 bit systems
36                 - merged HEAD changes
37                 - added comments for threaded usage in usbwrap.h
38                 - changed router to use SocketId typedef, for clarity
39         2008/02/22
40                 - fixed const char warnings from newer gcc compilers
41                 - controller object now saves a copy of the probe result
42                         and provides an API to retrieve it
43                 - added sanity checks to m_serial.cc
44                 - fixed probe behaviour so that a USB probe on an endpoint
45                         that doesn't respond won't halt everything
46                 - refactored some of the probe code, and added checks for
47                         IP modem endpoints
48                 - added Probe::DumpAll()
49                 - added Open() call to pppob.cc (not yet complete)
50         2008/01/30
51                 - implemented dataqueue.{h,cc}... looks ready for testing,
52                         once things compile again
53                 - changed free list copy in router.cc to use
54                         DataQueue::append_from()
55                 - finished packet.{h,cc} implementation, ready for testing
56                 - finished controller.{h,cc}, ready for testing
57                 - finished m_desktop.{h,cc}, ready for testing
58                 - added skeleton m_serial.cc
59                 - the base library and utilities compile again!
60                 - added constructor for SocketZero(queue)
61                 - fixed ErrnoError::GetMsg()
62                 - updated GUI and opensync plugin to compile with new API
63                 - moved Raw Send/Receive socket functions to private
64                 - fixed packet header size bug in socket that caused
65                         socket ID override to be skipped
66                 - fixed incorrect use of gettimeofday()
67                 - fixed race condition where Controller could destroy
68                         the Usb::Device object before the SocketRoutingQueue
69                         was done with it
70                 - fixed segfault in SocketZero::RawSend() when a router
71                         was in use
72                 - fixed Open() bugs in btool... Open() must be outside of loops
73                 - btool uses the router thread now, for testing
74                 - partially implemented m_serial.{h,cc}... needs testing
75                 - added automatic buffer allocation to SocketRoutingQueue
76                         constructor
77                 - made AllocateBuffers() a little smarter, so it was not
78                         pure appending
79                 - added a context data pointer to the SocketRoutingQueue
80                         RegisterInterest callback
81                 - added RegisterInterest functionality to Socket class
82                 - added exceptions on router read errors in socketzero
83         2008/01/26
84                 - implemented router.{h,cc}... looks ready for testing,
85                         once things compile again
86         2008/01/25
87                 - merged HEAD changes
88                 - added router.cc and continued work on new arch
89                 - merged HEAD changes for 2008 copyright statements
90                 - added scoped_lock.h
91                 - added ErrnoError exception class
92                 - documented Controller / SocketRoutingQueue behaviour
93                 - more router implementation
94                 - simplified pppob
95                 - audit and cleanup of socket.{h,cc} code... looks ready
96                         for testing now, once things compile again
97                 - removed FIXME in router.*
98                 - removed pthread header from pppob as it is not needed
99         2007/11/22
100                 - merged HEAD changes
101         2007/10/25
102                 - merged HEAD changes
103         2007/10/19
104                 - branch started, to track development of the new socket
105                         architecture, and new mode architecture, needed
106                         to support GPRS modem support, and threaded
107                         USB access
108                 - committed work-in-progress... does not compile
110 2008/04/10
111         - added Tasks and Memos to TODO list
112 2008/03/27
113         - added support for Blackberry 8120, which has a unique Product ID
114                 Sourceforge tracker ID: 1829537
115 2008/03/22
116         - removed TimeZones from TODO list, as it is done
117 2008/03/21
118         - version bump:
119                 - configure.ac
120                 - src/Makefile.am
121                 - src/version.cc
122                 - gui/src/BackupWindow.cc
123                 - src/Doxyfile
124                 - rpm/barry.spec
125                 - debian/changelog
126                 - opensync-plugin/src/barry_sync.cc
127         - added GCC visibility support, limiting what symbols are visible
128                 in the shared library, libbarry... this makes a drastic
129                 reduction in the symbol table, and should avoid future
130                 name clashes with other libraries such as opensync
131                 See: http://gcc.gnu.org/wiki/Visibility
133 Release: version 0.12 - 2008/03/21
134 ------------------------------------------------------------------------------
135 2008/03/21
136         - changed maintainer script to use CVS export instead of checkout,
137                 to avoid the CVS directories
138         - added support for building Debian source packages with proper
139                 diff.gz and dsc files
140         - fixed find warning in maintainer/make-rpm.sh
141         - added support for Ubuntu binary packages to the maintainer build
142                 scripts
143 2008/03/13
144         - renamed all vformat_ and VFormat symbols in opensync plugin's
145                 copy of vformat code, so they don't conflict with the
146                 real opensync libraries
147 2008/03/07
148         - updated the install.php web page with Paul Dugas's notes on
149                 building RPM's from CVS
150         - fixed problem in tools/Makefile.am where bs11nread was included
151                 in build, even if --with-boost was not specified
152                 on ./configure command line
153 2008/03/06
154         - changed format of Boost serialization file output from btool,
155                 so that the database name is stored as the first line
156                 of the file
157         - added tools/bs11nread.cc to read Boost serialization file data
158                 written by btool
159         - minor adjustments to r_message.h and r_timezone.h
160         - updated s11n-boost.h header to match record classes
161 2008/03/01
162         - applied Time Zone parsing patches from Brian Edginton
163         - added Time Zones to list of supported parsers in btool.cc
164 2008/02/29
165         - changed configure.ac to use bzip2 for "make dist".. thanks to
166                 Paul Dugas for the tip
167 2008/02/28
168         - committed Chris Burgess's update to the roadmap document
169         - applied Paul Dugas's x86-64 build patch, except the
170                 tar.bz2/tar.gz change
171         - updated AUTHORS file
172 2008/02/22
173         - fixed configure.ac's --with-boost option, so that without args,
174                 it defaults to using --includedir and --libdir settings,
175                 instead of hardcoding /usr/include and /usr/lib... this
176                 should allow smarter compiling on 64 bit systems
177         - updated RPM spec file to use new --with-boost behaviour
178         - ahem, fixed configure.ac again... don't use --includedir and
179                 --libdir, as those are install targets... oops.
180                 Don't add path overrides at all if not specified.
181 2008/01/25
182         - fixed locale issues in src/data.cc
183         - updated copyright statments for 2008
184 2007/12/21
185         - applied wording correction patch to btool from Matt LaPlante
186 2007/12/07
187         - changed hard coded databases names in btool to calls to
188                 <recordclass>::GetDBName()
189         - version bump:
190                 - configure.ac
191                 - src/Makefile.am
192                 - src/version.cc
193                 - gui/src/BackupWindow.cc
194                 - src/Doxygen
195                 - rpm/barry.spec
196                 - debian/changelog
197                 - opensync-plugin/src/barry_sync.cc
198         - updated TODO
200 Release: version 0.11 - 2007/12/01
201 ------------------------------------------------------------------------------
202 2007/12/01
203         - fixed null pointer bug in Probe class (bug #1842407)
204         - added pause to maintainer release script
205 2007/11/30
206         - version bump:
207                 - configure.ac
208                 - src/Makefile.am
209                 - src/version.cc
210                 - gui/src/BackupWindow.cc
211                 - src/Doxygen
212                 - rpm/barry.spec
213                 - debian/changelog
214                 - opensync-plugin/src/barry_sync.cc
216 Release: version 0.10 - 2007/11/30
217 ------------------------------------------------------------------------------
218 2007/11/30
219         - added support to the usbwrap Match class to limit its
220                 search by busname / devname
221         - added support to the Probe class to limit its search for
222                 Blackberry devices to a given bus or device name
223         - added command line options to btool for the above Probe
224                 bus/device names, and updated the man page
225         - updated the www docs with regard to the new usb_storage
226                 behaviour and the new blacklist files... less
227                 concern about berry_charge and usb_storage conflicts
228         - added bidentify tool and accompanying man page
229         - fixed bug in rpm maintenance script that used the wrong
230                 spec file for opensuse
231 2007/11/29
232         - added better error checking to breset
233         - commented the sleep() for the 8830
234         - added code to handle the race condition where usb_storage
235                 claims the device before bcharge arrives on the scene,
236                 by asking the kernel to detach the driver from
237                 the Mass Storage interface... this change makes it
238                 possible to run bcharge, moving from 0006 to 0004
239                 to 0001 and back to 0004, all *while* usb_storage
240                 is loaded!
241         - changed Probe class behaviour so that it will not throw an
242                 exception on Device Busy (-EBUSY) but instead
243                 log the error in an internal array and keep going.
244                 This makes it possible to use btool and barrybackup
245                 with two devices plugged in at the same time.
246                 BACKWARD COMPATIBILITY NOTE: this changes initializaion
247                         behaviour, but in practice, it should only
248                         make applications look more capable, not less.
249         - updated btool to show errors logged by Probe
250         - added message to specify which PIN device is being used by btool
251         - added explanatory comments to udev rules files, about why
252                 they are so verbose
253 2007/11/27
254         - added ClearHalt() calls to probe and controller classes, just
255                 before any communication happens... the 8830 seems
256                 to need this
257 2007/11/23
258         - added usbwrap.cc:GetConfiguration()
259         - added code to check whether the configuration is the one
260                 we require, before calling SetConfiguration()... and not
261                 to call it if unnecessary.  This allows us to run
262                 at the same time as usb_storage.
263                 Thanks to Martin Owens for not letting this issue go. :-)
264         - added sleep to bcharge, before calling usb_reset()... the
265                 Blackberry 8830 behaves like a Pearl device in that
266                 it has mass storage support, but behaves like a Classic
267                 in that it resets itself... the usb_reset() seems
268                 to reset it back to 0006.  The sleep allows the device
269                 to disappear via its own reset, and let usb_reset()
270                 fail naturally on these devices.
271                 This is not an ideal solution... mainly for testing.
272 2007/11/09
273         - added modprobe/blacklist-berry_charge as per Simon Ruggier's
274                 suggestion.  Thanks also to Niels de Vos for a similar
275                 suggestion.
276         - fixed udev rules to work on both old and new distros
277                 Thanks to Duncan Mak for the bug report.
278         - AUTHORS update
279         - fixed string comparison to use case insensitive compare in
280                 opensync plugin
281         - updated Debian package to include modprobe blacklist file
282         - updated rpm spec file to include modprobe blacklist file
283         - split the maintenance scripts into release and test, so
284                 that release package builds can be done faster
285 2007/10/26
286         - opensync plugin fixes:
287                 - fixed memory leak in vBase::GetAttr()
288                 - added support in vformat parser to parse "blocks"
289                         and keep track of the hierarchy when
290                         parsing an iCalendar, etc.
291                 - added support for searching for attributes only
292                         inside certain blocks (i.e. find first
293                         DTSTART in VEVENT block, not VTIMEZONE block)
294 2007/10/25
295         - fixed bug in Calendar::Clear, missing the Free / Class
296                 member variables, leaving them uninitialized
297         - added examples/addcalendar.cc
298         - added more logging to the opensync plugin, logging the
299                 ToBarry conversion results
300         - added code to force struct tm.tm_isdst to -1 before calling
301                 mktime, in vformat.c
302                 - fixed typo in previous fix
303 2007/10/12
304         - renamed ktrans and translate to bktrans and btranslate to avoid
305                 file name clashes with libtranslate of Gnome
306                 Closes bug #1812410 reported by Troy Engel.
307         - version bump:
308                 - configure.ac
309                 - src/Makefile.am
310                 - src/version.cc
311                 - gui/src/BackupWindow.cc
312                 - src/Doxygen
313                 - rpm/barry.spec
314                 - debian/changelog
315                 - opensync-plugin/src/barry_sync.cc
316         - fixed missing default config file in the debian package for
317                 the opensync plugin
318                 Closes bug #1812224 reported by Ariel (adonatti).
319         - added debian dbg packages for tracing segfaults
320         - modified maintainer scripts so debug packages would reference
321                 source code located in /usr/src/barry-0.9, etc.
323 Release: version 0.9 - 2007/10/12
324 ------------------------------------------------------------------------------
325 2007/09/29
326         - adjusted autosuspend disabling code in bcharge, based on new
327                 information on how kernels 2.6.21 / 2.6.22 work.
328                 See bcharge.cc for comments.  If device/power/level or
329                 device/power/autosuspend exist, charging should now work
330                 without recompiling the kernel.
331         - updated website docs with autosuspend info
332 2007/09/27
333         - large update to the doc/www web pages, moving some of the
334                 information in README files to html format, so that it
335                 is commonly available on the web
336         - added step in maintenance scripts to automatically build the
337                 .html files in doc/www when making a tarball release
338 2007/09/22
339         - added libopensync 0.22 version requirement to barry.spec file,
340                 but it doesn't seem to work on OpenSuSE 10.2, where it's
341                 needed.... hmmmm
342 2007/09/21
343         - updated README to mention new tree build configure options
344         - fixed the configure scripts and makefiles so that when building
345                 with custom CXXFLAGS and LDFLAGS environment variables,
346                 it doesn't break the full-tree build mode, when
347                 using --enable-gui and/or --enable-opensync-plugin
348         - added config.h.in~ to buildgen.sh clean target
349         - converted Debian build scripts to use cdbs
350         - added opensync plugin binary package for Debian
351         - added "Getting Started" section to web pages, as well as an
352                 explanatory document for various system requirements
353         - turned on opensync build in RPM maintainer scripts
354 2007/09/20
355         - added filename to power/state error message in bcharge.cc
356         - adjusted maintainer scripts to automatically adjust barry.spec
357                 for opensuse rpm builds
358 2007/09/13
359         - fixed some of the release build scripts and added support for
360                 automated opensuse 10.2 builds
361                 - fixed build target to i386
362                 - changed scripts to add to PKG_CONFIG_PATH variable instead
363                         of overwriting it
364 2007/09/07
365         - added website docs to doc/www... these are out of date at the
366                 moment, and hopefully by including them here, they
367                 will be updated more frequently
368 2007/09/05
369         - applied Simon Ruggier's build system patch that allowed a build
370                 of all 3 components from the root directory and fixed the
371                 configure scripts to support external build directories
372         - reordered clean commands in the buildgen.sh scripts, and removed
373                 the INSTALL files, since they are auto-generated by autoconf
374         - removed extraneous buildgen.sh calls in maintainer scripts
375         - added Simon Ruggier to AUTHORS
376         - added explanatory note to 3 stage test build process in
377                 maintainer script
378 2007/08/24
379         - fixed Category handling in the Contact record class, to
380                 parse the comma separated string into an array,
381                 and back
382                 Note: this involves a change to the boost serialization
383                         and will affect backward compatibility with
384                         old serialization datafiles
385         - added Category to examples/addcontact.cc
386         - added Category support to the opensync plugin
387 2007/08/23
388         - fixed wrong read/write in btool output (oops)
389         - added BadSize exception, and changed CheckSize() function
390                 to throw it on error
391         - changed backup GUI to catch BadSize exceptions on initial
392                 connect, and try a reset if that error occurs, since
393                 that likely means the device didn't shutdown properly
394         - fixed in opensync plugin:
395                 - some vcard data contains types codes in capital letters,
396                         so added lower case conversion routine
397                 - changed the order of address lines, so that address1
398                         is the street, address2 is the extended address,
399                         and address3 is the PO Box.  The Blackberry
400                         doesn't seem to have any PO Box field.
401 2007/08/20
402         - added -e endpoint override option to btool
403         - added status message to endpoint override
404 2007/08/18
405         - added configure check for strnlen, and implementation for
406                 systems that don't have it, or that have it implemented
407                 incorrectly.  Went a little paranoid here, since
408                 AC_FUNC_STRNLEN doesn't set a define in config.h,
409                 so I had to do it manually, and check in case autoconf
410                 changes in the future... ugh.  See src/strnlen.h for
411                 the gory details.
412         - added code in probe.cc to fetch the device's description.
413                 The description is now part of the probe results
414                 along with the PIN.  Updates to protocol.h, adding
415                 a new attribute definition.
416                 Thanks to Rick Scott for pointing out the code in
417                 XmBlackberry where he implemented this first.
418         - fixed header dependency in record-internal.h
419         - updated the "required autoconf" version to 2.61 for root build
420         - moved nested structs out of the record classes that contain them,
421                 in order to better support SWIG and Python
422 2007/08/17
423         - changed bcharge to use getopt() for its argument processing
424         - added options -p and -s to bcharge, to adjust usb suspend
425                 settings automatically where possible
426         - updated the udev rules to use the new bcharge settings
427         - updated the bcharge man page with the new arguments
428 2007/08/16
429         - cleaned up Usb exception handling, moving libusb error code
430                 processing into the Usb::Error exception class.
431                 error.cc is now an empty shell
432         - added return codes to the Usb::Error exceptions
433         - removed aboutdialog.{h,cc} from the backup GUI since even
434                 Debian stable now has up-to-date gtkmm libraries
435         - added more user friendly error message for the "device busy"
436                 case, recommending 'rmmod usb_storage'.
437 2007/08/09
438         - added better error checking to bcharge.cc
439         - version bump:
440                 - configure.ac
441                 - src/Makefile.am
442                 - src/version.cc
443                 - gui/src/BackupWindow.cc
444                 - src/Doxygen
445                 - rpm/barry.spec
446                 - debian/changelog
447                 - opensync-plugin/src/barry_sync.cc
448         - removed usb_set_configuration() check from bcharge.cc, since
449                 that may fail under normal operation, in this case
451 Release: version 0.8 - 2007/08/03
452 ------------------------------------------------------------------------------
453 2007/08/03
454         - moved Interface implementation to usbwrap.cc file
455         - added dout debugging messages to usbwrap.cc
456         - clarified unhandled packet error message in socket.cc
457         - added temporary workaround in opensync-plugin environment's
458                 Reconnect(), for odd message seen on newer Blackberry
459                 devices
460         - fixing issues with Brian Edginton's MessageRecord patch (2007/06/29)
461                 - fixed missing size check in message oriented ParseHeader()
462                 - fixed endian conversion issues (also found one pre-existing
463                         endian bug in the process)
464                 - moved message timestamp converter code to time.cc
465         - added Barry version number to opensync plugin name
466         - changed maintainer scripts and rpm.spec to use bzip2 instead of gzip
467         - added opensync-plugin to configure script build
468         - added -S option to btool, to list supported parsers and builders
469         - slight change to opensync-plugin/buildgen.sh to cleanup config.h.in~
470         - opensync-plugin/README update
471         - added opensync-plugin/patches for others who may be building and
472                 testing the plugin with OpenSync 0.22
473         - added debian package build scripts to maintainer/
474 2007/08/01
475         - added entry to doc/TroubleShooting.txt
476 2007/07/28
477         - added doc/TroubleShooting.txt
478 2007/07/27
479         - opensync plugin:
480                 - fixed bug in vcard.cc that was using the FN field
481                         for the broken-down name instead of N
482                 - added dbId and dbName to DatabaseSyncState
483                 - added Reconnect() functionality to BarryEnvironment class
484                         and moved connect logic out of barry_sync.cc
485                 - changed the batch commit functionality in barry_sync.cc
486                         to single-change-commit.  Why?  Because opensync
487                         0.22 groups all batch changes into one group
488                         and calls one batch commit function, even if you
489                         registered two.  Moving to single change commit
490                         mode removes a chunk of unneccessary code
491                         from the plugin as well, and can in theory
492                         ease memory pressure in the library.
493                 - added FinishSync() to perform actions needed on successful
494                         syncing completion
495                 - disconnect on successful sync completion, and reconnect,
496                         since the device's dirty flags don't seem to
497                         be updated until a disconnect occurs.
498 2007/07/26
499         - added ReadDataArray() to data.h, using an istream instead of
500                 requiring a file
501         - added raw data version of BuildField() to record-internal.h
502                 This is so that btool doesn't add extra null terminators
503                 to unknown data, when restoring with option -s
504         - fixed bugs in r_contact.cc:
505                 - fixed bug that caused a LastName/FirstName swap
506                         if FirstName was empty and you wrote a contact
507                         record into the device.... First/Last Name
508                         fields are position sensitive, and the code
509                         was missing the empty FirstName case on writing
510                 - fixed bug in BuildFields() and Dump() where they
511                         were not updated to handle the new field
512                         table added for the postal address changes
513                         on 2007/07/20, oops
514         - opensync plugin:
515                 - changed the plugin config file, so it is possible to
516                         turn debug output on/off without recompiling
517                 - moved the standalone Map2Uid() function into
518                         the DatabaseSyncState class, and changed the
519                         code to produce "contact-#" and "calendar-#"
520                         UID strings, instead of just numbers
521                 - changed default PIN to -1, so that if the user doesn't
522                         configure properly, it will fail... this is a
523                         safety measure to avoid syncing with different
524                         devices and corrupting the cache/idmap...
525                         this should be fixed someday, to handle this
526                         automatically
527                         On second thought... is this right?  Perhaps
528                         it is better to fail if the PIN is not what
529                         is expected, so a user doesn't accidentally
530                         sync the wrong device and lose data.
531                         Actions to take on new PIN:
532                                 - force slow_sync, or
533                                 - fail
534                 - incorporated the new VCardConverter code into the
535                         main barry_sync.cc plugin code
536                 - fixed bug that did not clear the devices dirty flags
537                         in the case where a sync only read data from it,
538                         and didn't write
539                 - changed PIN error message number to hex
540 2007/07/20
541         - minor wording change in backup GUI prompt: "Backup working..." to
542                 "Backup in progress..."
543         - renamed Contact class's Title field to JobTitle for clarity
544         - added record function ParseFieldString(), which properly handles
545                 strings from the device that have multiple null terminators,
546                 and changed the record parsing code to use this new function
547         - moved FullName() function from ldif.cc to r_contact.cc since it
548                 is generally useful in areas outside of LDIF processing
549         - refactored postal addresses in the Contact record class into
550                 a new class called PostalAddress
551         - renamed Address class in record.h to EmailAddress
552         - moved Contact::GetPostalAddress() to record.cc as part of the
553                 new PostalAddress class and renamed it
554                 PostalAddress::GetLabel()
555         - opensync plugin:
556                 - refactored vformat helpers into separate base class
557                         called vBase
558                 - added vCard converter class
559                 - commented out the code that skipped over the adding
560                         of empty attribute values and parameters,
561                         since VCARD depends on some of this behaviour
562                 - movified vformat.c:vformat_find_attribute() to take
563                         an extra nth argument, in order to search
564                         for multiple attributes with the same name...
565                         the way this is coded is a bit inefficient...
566                         but we're moving away from vformat when we move
567                         to OpenSync 0.3x / 0.40, so this is just temporary
568                         pain
569 2007/07/19
570         - added SUBSYSTEM=="usb_device" to example udev rules, in order
571                 to avoid running bcharge for each endpoint that is
572                 added by udev, when first plugged in.  Running bcharge
573                 back-to-back multiple times can crash some
574                 Blackberries.
575 2007/07/14
576         - opensync plugin:
577                 - fixed ID mapping bug in the case of a non-numeric UID
578                         from syncing external -> Barry, and then the
579                         new Barry ID would look like a new change
580                         when syncing back from Barry -> external.
581                 - added support for slow sync
582                 - added clear() to idmap class
583                 - added vformat attr parameter extraction class
584                 - added more trace logging during vformat/Barry conversions
585                 - added Notification time support
586                 - handled "all day" vformat special case, when DTEND
587                         does not exist in a vformat data block
588         - changed the min1900_t time conversion functions to handle
589                 the 0xffffffff special case, when notifications
590                 are turned off on a calendar event (src/time.cc)
591         - also made the calendar data dump output clearer for
592                 disabled timestamps, and added debug output
593                 for the raw min1900 value, in case there are more
594                 special cases in the future
595 2007/07/13
596         - fixed null pointer access in opensync's HasMultipleVEvents()
597 2007/07/12
598         - upper management directive: revert all OpenSync 0.3x changes
599                 and proceed with OpenSync 0.22.  Reverting the
600                 opensync-plugin/src tree to Barry 0.7 status.
601 2007/07/06
602         - reorganized exception and trace code in opensync plugin
603         - added XmlToCalendar() function, based on unfinished opensync
604                 library API that is not yet finished... will be
605                 committed to opensync svn tree when complete
606         - added OSyncXMLField logger to plugin trace class
607 2007/06/29
608         - applied email MessageRecord patch from Brian Edginton (thanks!)
609         - updated Message::Dump() to output more valid mbox data...
610                 the goal is to be able to do:
611                         btool -d "Messages" > email.mbox
612                         mutt -f email.mbox
613         - changed some TODO's to FIXME's to keep it grep-consistent
614         - applied Folder support patch from Brian Edginton
615         - fixed pedantic compile warnings, and changed order in src/Makefile.am
616         - removed unneeded cast in src/r_folder.cc
617 2007/06/28
618         - minor adjustment to ctags building in buildgen.sh
619         - applied patch from Brian Edginton for better boost detection
620                 in configure.ac
621         - added boost usage message to btool -h output
622 2007/06/21
623         - more porting of OpenSync module to 0.30
624         - added ctags build for opensync source tree to buildgen.sh
625 2007/06/14
626         - changed PKG_CONFIG_PATH setting in rpm script, so that systems
627                 like SuSE that have an extensive PKG_CONFIG_PATH
628                 in general use will not break on build
629         - added PKG_CONFIG_PATH to debian script too, just in case :-)
630         - added debian/changelog to doc/ReleaseChecklist.txt
631         - added comment to rpm/barry.spec regarding SuSE RPM builds
632 2007/06/08
633         - applied patch from Niels de Vos fixing debian package build
634                 dependency
635         - applied Brian Edginton's Saved Email Messages patch
636         - updated r_saved_messages.cc comment to match header
637         - added GetRecType()/GetUniqueId() to r_saved_messages.h, since
638                 SetIds() is already there
639         - removed Address version of operator<<() from message related headers
640                 and moved into record.h
641         - added std::hex to message related dumps, and changed output to
642                 be more mbox-like
643         - updated doc/CodingStyle.txt to cover switch() statements
644         - opensync compiles again, with 0.30!  (not functional yet)
645                 - moving closer to more modular and reusable plugin functions
646         - updated release checklist for opensync version number
647 2007/06/07
648         - added doc/CodingStyle.txt... preliminary version
649 2007/06/06
650         - applied Brian Edginton's PIN message patch
651         - changes to PIN message patch:
652                 - fixed missing backslash in src/Makefile.am
653                 - fixed tab alignment throughout
654                 - removed typedef from Address struct
655                 - added clear() to Address... might as well, if it it is
656                         going to be a standalone type
657                 - fixed missing comma in PINMessageFieldLinks table
658                 - changed MessageRecordId in PINMessage to load from a new
659                         uint32_t field in CommonField, instead of piggy
660                         backing on a field for other use
661         - did some testing and found that PINMessage's MessageRecordId
662                 is the same as the RecordId given through the SetIds()
663                 API... but these Id's are duplicated in the protocol...
664                 RecordId is stored in the protocol header, while
665                 MessageRecordId is stored in the record it self as
666                 a common field... added RecType and RecordId to
667                 PIN Message so that we store both of these
668         - updated AUTHORS
669 2007/05/27
670         - added item to gui/TODO
671         - applied Brian Edginton's s11n-boost.h patch
672 2007/05/25
673         - renamed template values to more consistent naming scheme
674         - applied memos and tasks patch from Brian Edginton, slightly
675                 modified to split into the new separate files system
676         - changes to memos and tasks classes:
677                 - reformatted the code to match coding style
678                         (come on Brian) :-)
679                 - added copyright notice
680                 - changed class to singular (Memo, not Memos)
681                 - placed in Barry namespace
682                 - added #ifdef header protectors
683                 - added new files to Makefile.am
684                 - added new r_*.h headers to record.h
685         - added support for Memos and Tasks to tools/btool.cc, based on
686                 Brian Edginton's patch
687                 (currently commented out, for Boost library reasons):
688         - added doc/CommitPolicy.txt
689         - updated AUTHORS
690 2007/05/24
691         - added ctags generation to buildgen.sh
692         - applied record.{h,cc} fix patch from Brian Edginton
693                 - ClassFlag
694                 - FreeBusyFlag
695                 - Clear() fixes
696         - fixed broken formatting in above patch
697         - refactored record parser classes into separate files for each
698         - changed the ConvertHtoB<> template to inline, as it caused
699                 linker errors with the new file layout
700 2007/05/17
701         - fixed bug in Debian packaging that put util commands in
702                 /bin and /sbin instead of /usr/bin and /usr/sbin
703         - commited byteswap.h replacement code from gm2net
704         - backup gui:
705                 - removed unneeded debug messages on stdout
706                 - changed the default for debug output to "off"
707                         and added a command line option to turn
708                         it on if necessary  (--debug-output)
709                 - command line option --help now also works
710         - fixed bug in Calendar class where it didn't initialize
711                 RecType properly... and cleaned up other RecType
712                 code to use the GetDefaultRecType() functions,
713                 localizing the constants in one place
714 2007/05/11
715         - applied patches from Brian Edginton, parsing more
716                 fields in Contact and Calendar records
717         - added Brian Edginton to AUTHORS
718         - reformatted record.{h,cc} to match the rest of the code,
719                 removed commented out code, and removed mention of
720                 Outlook from the comments.
721         - updated udev/10-blackberry.rules.Debian for Debian Etch
722         - updated debian/rules to use new udev rules file
723         - removed debian/postinst, as stable versions of Debian now
724                 have a recent udev, and don't need the special handling
725         - updated Debian build scripts to build separate packages:
726                 libbarry
727                 libbarry-dev
728                 barry-util
729                 barrybackup-gui
730         - added menu support to Debian barrybackup-gui package
731         - made the buttons bigger in the backup GUI, as they were too
732                 small on Debian Etch
733         - opensync plugin:
734                 - more progress in porting to opensync 0.30, heavily
735                         based on the example plugin in the opensync
736                         svn tree...  this is a work in progress, and so far
737                         is incomplete
738 2007/05/04
739         - opensync plugin:
740                 - partial porting to opensync 0.30 (in progress!)
741                 - fixed bug in sync_done where it reported context error
742                         and then success afterward
743         - checking in new INSTALL files based on Etch's autoconf run
744         - added item to gui's todo list
745         - bumped version numbers to 0.8 in:
746                 - configure.ac
747                 - src/Makefile.am
748                 - src/version.cc
749                 - gui/src/BackupWindow.cc (about dialog)
750                 - src/Doxygen
751                 - rpm/barry*.spec
753 Release: version 0.7 - 2007/05/02
754 ------------------------------------------------------------------------------
755 2007/05/02
756         - added rpm building to maintainer/release scripts
757         - added "HEAD" feature to tarball creation script, for easier testing
758         - updated maintainer/README
759         - updated maintainer/release.sh to use new HEAD feature too
760 2007/05/01
761         - added pppob to rpm barry.spec
762         - bumped release number in barry.spec
763 2007/04/30
764         - opensync plugin:
765                 - fixed size check bugs (strlen() == 0 when empty)
766                 - finished refactoring calendar conversion routines
767                 - started timezone parsing, but this may go away
768                         if we use opensync 0.30's time functions and
769                         xml data format...
770                 - added development note to README
771 2007/04/29
772         - updated README and opensync-plugin/README with more current
773                 build instructions
774         - opensync plugin:
775                 - refactored some calendar conversion routines
776                 - added Barry->vCalendar conversion for recurring appointments
777 2007/04/27
778         - opensync module:
779                 - removed some unneeded trace logs
780                 - fixed VEventConverter constructor bug, with uninitialized
781                         m_Data pointer
782                 - eased up the requirement that every calendar event
783                         must have a summary... defaults to "<blank subject>"
784                         if empty
785                 - added more VCALENDAR fields to match Barry::Calendar record
786                 - fixed case sensitive compares in vformat.c
787 2007/04/26
788         - opensync module work:
789                 - added id map class to map string uid's from OpenSync to
790                         numeric ID's from the Blackberry
791                 - fixed bug in CommitChange() where it was still using
792                         a hard coded calendar record state table
793                 - added lots of logging throughout
794                 - fixed bug where newly added records didn't use the
795                         change object's uid, but created a new ID,
796                         causing another sync on the next run
797                         i.e. (CommitData_t was missing an argument)
798                 - fixed bug where uninitialized notification time was
799                         written to the Blackberry
800         - more opensync module work:
801                 - refactored the environment class into another subclass
802                         called DatabaseSyncState, and moved some stand-
803                         alone functions from barry_sync.cc into
804                         the environment classes
805                 - added a tagged constructor to the trace class
806                 - fixed idmap::Load() to clear map before loading
807 2007/04/20
808         - renamed barry-config to barry-sync, the default configuration
809                 file for the opensync module... and filled it with
810                 a sample configuration
811         - added code to update the calendar cache, and write it to disk
812                 on success (opensync module)
813         - added code to clear dirty flags in the device (opensync module)
814         - allowed comments in the config file
815         - added vformat.c from libopensync 0.22, since the vformat
816                 routines are not available from the plugin side
817 2007/04/19
818         - updated gui/TODO
819         - added -d switch to bcharge to switch back from 0001 to 0004 mode,
820                 changed the auto-detection logic to ignore iProduct and
821                 only use idProduct, and updated man page
822         - updated breset to recognize the Pearl in 00004 mode as well
823         - changed src/probe.cc logic to assume that the second endpoint
824                 pair is the one needed for database communication, instead
825                 of doing a reverse search from the end... newer Pearls
826                 in Dual mode seem to have at least 3 or 4 endpoint pairs,
827                 and the old search didn't always work
828         - applied sourceforge patch #1696884 from Peter Silva, updating
829                 the Debian build for Etch, and including all files in one deb
830         - added Peter Silva to AUTHORS file
831         - uncommented the "make distclean" in debian/rules, and removed
832                 the reliance on /tmp when installing 99-barry-perms.rules
833         - applied bb_task_format.txt patch from Peter Silva
834         - fixed each misspelling of "recurrance" to "recurrence"
835         - tweaked src/probe.cc again for paranoia's sake... start at
836                 offset 1 if more than 1 endpoint pair, otherwise start
837                 search at 0
838         - split up opensync module into multiple source files, and started
839                 using the opensync vformat routines for parsing and building
840                 the vevent20 data (experimental)
841 2007/04/04
842         - more incremental work on the opensync plugin, adding ADDED
843                 and MODIFIED functionality... (experimental!)
844 2007/03/30
845         - added code to dump extra descriptors during device discovery,
846                 if found
847         - bumped opensync version number in configure.ac, and made
848                 the configure scripts more consistent with the rest
849                 of the project
850         - fixed printf-format size bug in opensync module
851 2007/03/29
852         - applied patch from Niels de Vos, fixing deb udev rules for Pearl
853         - updated AUTHORS
854         - fixed extra space bug in LDIF output (added space when creating
855                 FullName, even if there was no last name)
856         - fixed Address Book record parsing in Contact class... the
857                 Blackberry database uses field id 0x20 for both the
858                 first and last names, and if only a last name exists,
859                 the first name will be empty.  Fixed parser to handle
860                 this special case, without relying on string length.
861                 Thanks to Troy Engel for reporting above two LDIF bugs.
862         - added a few more constants to bcharge.cc
863         - renamed opensync's configure.in to configure.ac
864 2007/03/17
865         - fixed bcharge to avoid endless reset loop... oops
866 2007/03/16
867         - reorganized bcharge.cc to make it possible to switch between
868                 Pearl modes 0004 and 0001
869         - added flag to BadPassword exception class, to signal whether
870                 the library considers the device "out of retries" or not
871         - updated socket.cc for new BadPassword exception
872         - added special case to Controller class destructor to reset the
873                 device if being destroyed in a half-open state... this is
874                 a temporary fix until we understand how to handle
875                 the "already open" message we get when opening the Desktop
876                 in some cases
877         - added password prompt dialog to the backup GUI
878         - fixed possible memory leak in GUI's DeviceInterface::Connect()
879 2007/03/08
880         - committed Troy Engel's bbrules_mass_symlinks.patch, fixing
881                 udev rules for the Pearl
882         - updated 10-blackberry.rules.Debian to match 10-blackberry.rules's
883                 functionality
884         - applied Troy Engel's barry.spec patch to generate all required
885                 RPM's... Thank you!  Notes in the README taken from
886                 the sourceforge tracker entry containing the patch.
887         - added libusb lib flags to tools/ and examples/ makefiles,
888                 and tweaked configure.ac with a better default,
889                 to build cleanly on RHEL 4
890         - modified rpm/barry.spec:
891                 - does not create doc-only barry base package anymore
892                 - fixed "barry-backup" typo
893                 - removed the patch step, as version 0.7 shouldn't need it
894                 - added license file to each package
895                 - commented out console perms scripts, pending mailing list
896                         discussion
897         - updated AUTHORS
898         - applied Troy Engel's barry.spec patch to fix RHEL4 compile issues
899         - fixed 80 column wrapping error in barry.spec, thanks to Troy Engel
900                 for the bug report
901         - applied Troy Engel's udev permissions patch for Redhat/Fedora
902                 systems, which automatically set the ownership of a
903                 newly plugged in device to the currently logged in console
904                 user.
905         - added udev/README to document what all those files are for...
906                 part of the text comes from the sourceforge comment
907                 on the above udev permissions patch from Troy Engel
908         - uncommented the console perms scripts for rpm/barry.spec
909         - added libglademm-2.4 to gui/README's dependency list
910         - made usbwrap.* calls more threadsafe
911         - added Usb::Timeout exception for timeout errors
912         - added preliminary UsbSerData support to library for GPRS modem
913                 functionality, using Rick Scott's XmBlackBerry's serdata.c
914                 as a guide
915         - added overloaded Socket::Send() for sending without receiving
916         - added preliminary pppob command line tool
917 2007/03/02
918         - version bump in:
919                 - configure.ac
920                 - src/Makefile.am
921                 - src/version.cc
922                 - gui/src/BackupWindow.cc (about dialog)
923                 - src/Doxyfile
924                 - rpm/barry.spec
925         - build system tweaks for opensync-plugin, and added a buildgen.sh
926                 for it
927         - added better debug messages in probe.cc and usbwrap.cc's
928                 device discovery code
929         - changed error handling for null interface->altsetting pointers
930                 when doing device discovery in usbwrap.cc.  Seems that
931                 some devices report a higher number in bNumInterfaces
932                 than are really available... in this case, let's
933                 just ignore the missing data and assume success
934         - applied udev script patch #1663986 from Troy Engel
935         - applied barry-bcharge.spec patch #1672178 from Troy Engel
936         - ReleaseChecklist update
937         - added rpm/README based on Troy Engel's patch notes
938         - updated new barry-bcharge.spec for version 0.7, removing patch
939                 dependency
941 Release: version 0.6 - 2007/02/28
942 ------------------------------------------------------------------------------
943 2007/02/28
944         - fixed size checks for device database records larger than 64K
945                 Thanks to Michael Brown for the bug report.
946         - added initial release maintainer scripts
947         - fixed odd backup success message in GUI when doing a backup with
948                 no databases selected in configuration
949                 Thanks to Michael Brown for the bug report.
950         - added udev permissions file patch from Michael Brown
951         - added Michael Brown to AUTHORS
952         - updated README, gui/README, and doc/USB-capture.txt
953         - added -o command line switch to bcharge.cc, and updated man page
954 2007/02/23
955         - changed library behaviour so it only turns on libusb debug output
956                 if in data dump mode.  In btool, -v controls this output.
957         - minor stream formatting fix in btool
958         - added OpenSSL dependency to build for password hash support
959         - made debug dout() output conditional on Init() flag... In btool,
960                 -v now controls this as well
961         - reverse engineered more of the initial probe packets, and
962                 implemented probing in struct based code... changes include:
963                 - added support for "attribute fetch" packets, used at
964                         the beginning of USB conversations
965                 - defined object/attribute id codes for the PIN number
966                 - made Protocol::SocketCommand more robust, and implemented
967                         its sequence number behaviour
968                 - moved ModeSelectCommand into SocketCommand, as it is a
969                         socket 0 level command
970                 - added initial protocol struct: PasswordChallenge
971                 - renamed Barry::Packet to DBPacket
972                 - added ZeroPacket for socket 0 packet creation and analysis
973                 - Barry::Packet is now the base class for the above
974                 - implemented socket 0 behaviour in socket.cc
975                 - changed return values for Send/Receive/Packet/NextRecord
976                         members in the Socket class from bool to void, as they
977                         don't generate errors themselves, but only can
978                         have an error if Usb::Device throws an exception.
979                         Cleaned up all code that called these members as well.
980                 - removed "last status" from Socket class as it was unused
981                 - updated probe.cc to use new socket 0 implementation
982                 - removed two of the hard coded packet handshakes in favour
983                         of socket 0 packets
984                 - updated controller.cc:
985                         - uses new socket 0 implementation
986                         - removed "flag" hack when opening sockets and
987                                 selecting modes, as it should use the
988                                 socket 0 sequence number
989         - added initial, incomplete prototype header for the C API
990         - updated some .cvsignore files
991         - updated TODO
992         - updated ReleaseChecklist.txt, adding rpm spec file
993         - added the following to ZeroPacket:
994                 - ChallengeSeed()
995                 - RemainingTries()
996                 - SocketResponse()
997                 - SocketSqeuence()
998         - moved Command() to base Packet class
999         - added comments to protostructs.h and size constants for the
1000                 new PasswordChallenge struct
1001         - added password support to Socket and Controller classes
1002                 Thanks to Rick Scott's XmBlackBerry for the openssl
1003                 password hashing logic.
1004         - updated btool to use new password support, and updated its man page
1005 2007/02/22
1006         - updated Doxygen input files and version, and added to ReleaseChecklist
1007         - fixed btool PIN output for LDIF mode, now commented in output
1008         - major LDIF overhaul:
1009                 - split LDIF specific code out of the record class and
1010                         into its own
1011                 - fixed "full name" behaviour that added an extra space
1012                         in dn attributes, as reported by Troy Engel
1013                 - added support for mapping of LDIF attributes to Barry
1014                         contact field names
1015                 - fixed base64 handling, so attributes are only so encoded
1016                         if necessary
1017                 - fixed base64 attribute reading inconsistency... some
1018                         notes fields were missed in old version if not
1019                         encoded
1020                 - added support for specifying alternate attribute for
1021                         constructing a FQDN, instead of just "cn"
1022                 - updated btool and upldif to use new features
1023         - large update to btool manpage
1024         - fixed initialization bug in Contact constructor (missed RecType)
1025 2007/02/15
1026         - added ktrans.cc to make reading of kernel usbfs_snoop logs easier
1027         - removed commented code from translate.cc
1028         - added Pearl handshake support to bcharge.cc, which resets the
1029                 Pearl so that the vendor specific 0xFF class exists.
1030                 This should allow use of btool on the Pearl.
1031         - added Data::AppendHexString to data.cc
1032         - added better probing support for the Pearl, so it detects the
1033                 Product ID 0x0004 mode, and does a search for class 0xFF
1034                 instead of hardcoding it.
1035 2007/02/10
1036         - applied README patch from Ian Darwin
1037         - minor tweaks to README
1038         - added missing errno.h header in src/usbwrap.cc for AMD64
1039                 Thanks to Jonathan Hudson for reporting the bug.
1040         - tightened up size checks in Data::ReleaseBuffer()
1041         - stable libusb *does* return the actual length of the USB packet...
1042                 fixed this in usbwrap.cc to set the actual size of read data,
1043                 and removed the size hacks elsewhere in the code:
1044                 probe.cc, protocol.cc, socket.cc, usbwrap.cc
1045 2007/02/09
1046         - added proper return codes for error conditions in btool.cc
1047         - clarified some stream output code in the library, for hex/dec numbers
1048         - removed old, non-working connect.cc test program
1049         - added iomanip to debug.h
1050         - changed usbwrap to call libusb again if EINTR and EAGAIN
1051                 This should fix one of the OpenBSD issues
1052 2007/02/04
1053         - updated AUTHORS
1054         - fixed bug in barrybackup GUI that didn't create the target path
1055                 if the user didn't do Edit | Config first.
1056                 Thanks to Ian Darwin for reporting the bug.
1057         - applied gui/src/ConfigFile.cc header fix patch for OpenBSD
1058                 from Ian Darwin
1059 2007/02/03
1060         - added initial btool.1 man page from Ian Darwin
1061         - updated man/Makefile.am for new btool.1
1062         - updated AUTHORS
1063         - applied btool -h help clarification patch from Ian Darwin
1064 2007/02/02
1065         - reworked exception hierarchy, so applications can handle all
1066                 Barry related exceptions, including Usb errors, with
1067                 one base class: Barry::Error
1068         - fixed all the ripple changes this caused throughout the codebase
1069         - added BadPassword exception
1070 2007/02/01
1071         - version bump in:
1072                 - configure.ac
1073                 - src/Makefile.am
1074                 - src/version.cc
1075                 - gui/src/BackupWindow.cc (about dialog)
1076         - updated doc/ReleaseChecklist.txt
1077         - added usb-level breset.cc command line tool
1078         - fixed bug in gui/src/tarfile.* for systems where
1079                 sizeof(int) != sizeof(void*)
1080                 - TarFile class now uses a plugin style for the compression
1081                         operations, to allow for threadsafe versions if needed
1082                         in the future.
1083                 - also fixed leaked file handle bug in open_compressed()
1084                 - Thanks to Jonathan Hudson for reporting this for 64bit systems
1085         - minor signed comparison fixes in the library
1086         - added better protocol data dumping code in probe.cc
1087         - added Usb::Device::BulkDrain(), to prevent Barry from hanging
1088                 due to pending reads
1090 Release: version 0.5 - 2007/01/26
1091 ------------------------------------------------------------------------------
1092 2007/01/26
1093         - added missing errno.h header to gui/src/util.cc
1094         - lots more endian fixes after testing on iMac  
1095         - iostream output size fixes
1096         - added option to btool to reset the device via software
1097         - beefed up exception handling in barrybackup
1098         - checked in opensync work-in-progress: trace logging, pointer bugfix
1099                 this is still experimental
1100         - added aboutdialog.* files from gtkmm24 2.10.6, so we have a dialog
1101                 class for systems running older versions of gtkmm, like
1102                 Debian stable
1103         - uncommented the about box menu handler
1104         - added "cleanall" option to root buildgen.sh script
1105         - update ReleaseChecklist.txt
1106         - removed CVS auto-history strings from aboutdialog.*
1107 2007/01/25
1108         - found a link between the unknown field in tagged protocol headers
1109                 and the unknown field in RecordStateTable entries.  This
1110                 field matters when uploading certain databases, such as
1111                 Browser Options.  It is unknown what this field really
1112                 means, but we're calling it RecType.  Updated the API
1113                 to use this in all parser objects and builder objects
1114                 and record objects that use it.
1115         - changed some uses of uint64_t to uint32_t, in Contact and
1116                 Calendar record objects... unique IDs only seem to be
1117                 32 bits
1118         - added new static function to record classes: GetDefaultRecType()
1119                 This returns the default rectype that should work
1120                 for that record.  Ideally this should be retrieved from
1121                 the device, but in the case where a database has no
1122                 records, this info would be good to know.
1123         - updated convenience template function Controller::AddRecordByType()
1124                 to use GetDefaultRecType()
1125         - documented the recurrence data and how to use it in Calendar objects
1126         - added data debug output for incoming USB packets in the
1127                 socket class... when we ported to the stable libusb
1128                 we lost some of the verbose output... this should get it
1129                 back.  (In the official release, you need to uncomment
1130                 ddout() in debug.h for the full blast of debug output).
1131         - backup GUI updates:
1132                 - changed error_done signal into a pure error signal,
1133                         and changed the logic so the restore continues
1134                         even if there was a protocol error on one database
1135                 - changed status bar messages to show what's happening
1136                         i.e. Backup or Restore
1137                 - default to not restore the "Handheld Agent" database as
1138                         it appears to be read-only on the device
1139                 - added temporary Restore & Backup mode for debugging
1140                 - added extra hyphen to backup files to show date/time better
1141                 - updated GUI to save and restore the new RecType field
1142                         supported now by the library
1143 2007/01/21
1144         - added future considerations to doc/ReleaseChecklist.txt
1145         - applied big endian patch from Jonathan Hudson
1146         - changes to patch:
1147                 - removed endian.h include from barry.h, since applications
1148                         using the library should not care about endianness
1149                 - hard coded the path to config.h in endian.h
1150                         so that endian.h never makes it into the final
1151                         install
1152                 - removed DEFAULT_INCLUDES setting from src/Makefile.am
1153                         for the same reason
1154                 - removed config.h dependency in btool.cc and used library
1155                         Version call instead
1156         - added big/little endian text to the Barry::Version call
1157         - updated AUTHORS
1158         - fixed install location of bcharge when building with ./configure;
1159                 now goes to sbin/ for both source compile and binary packages
1160                 Thanks to Jonathan Hudson for reporting this bug.
1161 2007/01/20
1162         - added smarter timeout values to controller, and allowed
1163                 timeout overrides in the packet, socket, and usbwrap code...
1164                 extra timeouts are needed for erasing databases for
1165                 some older devices
1166         - added an explicit DataDumpParser class to btool.cc, as the
1167                 library doesn't always have extreme verbose debugging on...
1168                 this makes sure anyone can always get raw database packets
1169                 through btool, for development
1170         - added thread callback signals for error finishes and erase_db
1171                 operations, so the GUI is updated properly
1172         - more GUI cleanups (status bar updates, etc)
1173         - finished implementation of GUI restore
1174         - fixed gtkmm/glibmm exception handling when the exceptions
1175                 occur in sigc signal handlers... in that case,
1176                 exceptions need to be handled with
1177                 Glib::add_exception_handler()
1178         - added filename-only reading support to TarFile class
1179         - added pending gui/TODO items
1180 2007/01/19
1181         - backup GUI now properly shows progress
1182         - the buttons become insensitive when backup is busy
1183         - refactored directory check code, and added mkdir check
1184                 when to the backup setup (so the directory exists
1185                 when we try to write to it)
1186         - updated code to use Barry::Data in new namespace
1187 2007/01/18
1188         - moved Data class into Barry namespace
1189 2007/01/13
1190         - updated copyright dates for the new year
1191         - clarified exception message in controller.cc
1192         - fixed pointer initialization bug in controller.cc
1193         - added documentation comments to parser.h and builder.h
1194         - updated ReleaseChecklist.txt
1195         - updated README
1196         - changed Barry library configure scripts to make better
1197                 use of pkg-config for autodetecting dependencies
1198         - added initial Barry Backup GUI (gui/ directory), capable of making
1199                 backups only at this point
1200 2007/01/11
1201         - added doc/ReleaseChecklist.txt
1202         - added version API, returning version number and string
1203         - added Troy Engel to AUTHORS
1204         - added special case to bcharge.cc for the Blackberry Pearl,
1205                 which doesn't reset itself after the charge handshake
1206                 Thanks to Troy Engel for testing.
1207 2007/01/05
1208         - added pkg-config support for the library (libbarry-0.pc.in)
1209         - fixed compile error on g++ 3.3 systems (missing stdint.h
1210                 in probe.h)
1211         - fixed protocol hang at end of Controller operation... in
1212                 controller destructor, it was deleting the USB interface
1213                 before closing the socket at the BlackBerry level, thereby
1214                 leaving the device in Desktop mode
1215 2007/01/04
1216         - support the newer udev packages on Ubuntu, which need slightly
1217                 different rules
1218         - modified bcharge.cc to search for Pearl devices too.
1219                 USB product ID 6
1220         - added Pearl product ID to probe code, but likely not functional
1221                 yet until we find someone able to get a USB capture for us
1222 2006/12/29
1223         - version bump in configure.ac and src/Makefile.am
1225 Release: version 0.4 - 2006/12/29
1226 ------------------------------------------------------------------------------
1227 2006/12/29
1228         - added bcharge.cc to the tools/ directory (whoohoo!)
1229         - added initial release version of rpm/barry.spec (aka bcharge.spec)
1230                 This begins the barry binary release, currently only
1231                 including the bcharge utility, but possibly more in
1232                 the future.  Future binary packages will likely include
1233                 libbarry, libbarry-devel, etc, which barry will then
1234                 depend on.
1235         - added udev rule script for BlackBerry devices
1236         - added man/ directory and bcharge.1 manpage
1237         - added debian/ directory for building deb packages, with initial
1238                 package scripts
1239         - added rpm/make-rpm-tarball.sh for building RPMs
1240         - split out technical docs into separate libbarry.docs file for
1241                 a future Debian install
1242         - added more cleaning to buildgen.sh
1243         - added new udev rule file for Debian stable
1244         - hardcoded g++ to 3.3 in debian/rules as I have multiple versions
1245                 on my system and need to compile releases with stable
1246 2006/12/21
1247         - ported Barry to use the stable branch of libusb
1248                 NOTE: no longer depends on the devel libusb tarball!
1249                         Just use your distro's libusb packages.
1250         - fixed more endian issues
1251         - minor update to TODO
1252 2006/12/15
1253         - moved Exceptions, Hacking, and VersionNotes to doc/
1254         - added doc/USB-capture.txt
1255 2006/12/08
1256         - added Controller::AddRecord() and template helper
1257         - added beginning version of generic RecordFetch<> template
1258         - set default of Barry::Init() to false (no data dump mode)
1259         - added examples/ directory, with first addcontact.cc example
1260 2006/12/07
1261         - added autoconf support based on Peter McAlpine's patch
1262         - renamed Makefiles to Makefile.orig and added script to turn
1263                 on old build system if wanted
1264         - fixed boost-specific error path in btool
1265         - moved platform specific code out of time.h and into time.cc
1266         - moved btool.cc, translate.cc, and upldif.cc out of src/ and
1267                 into their own tools/ subdirectory
1268         - added NEWS file to make autotools happy
1269         - added a "clean" option to the buildgen.sh script... maintainer's
1270                 use only
1271         - reworked autoconf and automake files, to support
1272                 barry as a library, to move the programs into their
1273                 own tools directory, and support a proper installation
1274         - fixed headers in parser.h, btool.cc, and upldif.cc to work
1275                 properly when installed standalone
1276         - added tools/Makefile.plain for testing compiling against
1277                 installed barry library
1278         - added commentary on version number system
1279         - removed Makefile.conf and Makefile.orig, as new autoconf
1280                 system supercedes it
1281         - added support for boost serialization library in autoconf build
1282         - added library version number to autoconf build
1283         - changed boost flag to __BARRY_BOOST_MODE__ to avoid collisions
1284         - removed debug.h dependency from btool.cc
1285         - removed libusb check in favour of specific --with-libusb
1286                 option... may need to revisit this later
1287         - quick installation update in README
1288 2006/12/01
1289         - fixed some missed endian conversions in record.cc and added
1290                 some size checks
1291         - fixed endian issues in time.h
1292         - added 2 more functions to the time zone API, and adjusted
1293                 the time zone table for better defaults in North America
1294         - added btool and upldif to the make install sequence
1295         - added support for Calendar recurrence data
1296         - small doc/TimeZones.txt update
1297 2006/11/24
1298         - added BlackBerry time zone code list, reverse engineered from a 7750
1299         - added GetTimeZone() to convert device time zone codes to useful data
1301 Release: version 0.0.3 - 2006/11/24
1302 ------------------------------------------------------------------------------
1303 2006/11/23
1304         - added return code check to Controller::SaveDatabase()
1305         - fixed Data() class constructor, so it doesn't auto-convert
1306                 from any int
1307         - fixed size checking bug in Packet::ReturnCode() that caused
1308                 uploading to device to fail
1309 2006/11/10
1310         - added Exceptions doc file, documenting the C++ exceptions used,
1311                 and their hierarchy
1312         - fixed small bug in 'make install' which didn't build first
1313         - minor documentation and cleanup in upldif.cc
1314         - added utility functions to the RecordStateTable class,
1315                 GetIndex() and MakeNewRecordId()
1316         - changed btool so that the -d command modifiers can be
1317                 specified multiple times to work with multiple records
1318                 at once
1319         - added Calendar sync code to the opensync module (not complete)
1320         - cleaned up exception handling in the opensync module, making
1321                 more use of the base exception to make sure no
1322                 exceptions leak into the C library code
1324 Release: version 0.0.2 - 2006/10/12
1325 ------------------------------------------------------------------------------
1326 2006/10/12
1327         - fixed casting error in opensync module
1328         - minor updates to documentation to prepare for release
1329 2006/09/29
1330         - added stdint.h to parser.h for uint32_t.  Thanks Ron Gage for
1331                 the bug report
1332 2006/09/08
1333         - large refactoring of the packet parsing and building code,
1334                 splitting the code into 3 groups:
1335                 - record: handles record specific parsing and building...
1336                         this is mostly subfields with CommonField structs
1337                         as their headers, but sometimes has a specific
1338                         header of its own, in the case of email
1339                         Note: email's header is as yet undecoded.
1340                         Record does not know the details of the packet
1341                         formats, only the formats of its own record data.
1342                 - packet: handles building of complete command packets
1343                         and handles parsing of commonly used header values,
1344                         providing an API for it... packet does not know
1345                         the record format details, but does know the
1346                         details of each Database Operation (protocol.h)
1347                         packet format.
1348                         So far, it seems that there is a real separation
1349                         of operation formats and record formats, with the
1350                         record formats being the same even with different
1351                         database operation codes (GET_RECORDS /
1352                         OLD_GET_RECORDS), which was not confirmed before.
1353                         See the header size of the email record after
1354                         refactoring.
1355                 - controller: handles device state, and the management of
1356                         sockets, commands, and checking for response values.
1357                         The Controller object does not know the format
1358                         of either the record or the packet it is sending,
1359                         but does know the protocol handshake logic used
1360                         to talk to the device.
1361         - implemented SetRecord (SET_RECORD_BY_INDEX)... syncing, here
1362                 we come!
1363         - spelling correction in opensync-plugin/AUTHORS
1364 2006/09/01
1365         - added sample hotplug scripts
1366         - added .cvsignore files for doxygen and opensync directories
1367         - added src/endian.h... still need to add configure support to
1368                 handle non-little-endian machines
1369         - added exception handler in opensync plugin commit_change()
1370         - removed the device reset code in probe.cc, as resetting a device
1371                 can renumber the devices in /proc on kernel 2.4.x,
1372                 and cause a failure to reach the device...
1373                 FIXME - this should be changed someday to reset if probing
1374                 fails, and restart the probe on reset, as sometimes
1375                 the blackberry devices respond differently when not reset
1376                 Ideally, the probe protocol should be properly reverse
1377                 engineered.
1378         - added support for retrieving record state table, which is needed
1379                 for smarter syncing
1380         - added support for retrieving, deleting, and clearing the dirty
1381                 flags of individual blackberry device records
1382         - added endian macros throughout the code
1383 2006/07/13
1384         - added opensync-plugin to root Makefile's clean
1385         - updated time conversion calls to match opensync's latest SVN
1386         - added opensync_change_set_changetype() (only add for now,
1387                 for development)
1388         - removed slow sync functions for now
1389 2006/07/07
1390         - added quick "install" makefile target, to src/install by default
1391         - added static library target... this is temporary until autoconf
1392                 stuff is added properly... needed for the opensync plugin
1393         - documented in comments that Barry::BError is intended to be
1394                 the base classes for all exceptions
1395         - added first round of implementation of an opensync plugin, based
1396                 on the example plugin code from the opensync sources
1397 2006/06/22
1398         - added to Contact record class:
1399                 - Clear()
1400                 - ReadLdif() to load and parse LDAP data
1401         - added fragmented send support to Socket class
1402         - added Probe::FindActive() to make client programs more streamlined
1403         - fixed hex/decimal printing of record counts in btool
1404         - added upldif.cc, a utility to take ldapsearch output on stdin
1405                 and upload it to a blackberry
1406         - updated src/.cvsignore
1407 2006/06/16
1408         - added parsing of service book fields:
1409                 - old and new name
1410                 - old and new unique ID (UID)
1411                 - content ID (CID)
1412                 - old and new description
1413                 - DSID
1414                 - bes domain / domain
1415         - date change in legal.txt
1416         - added initial parsing of ServiceBook field 0x09, and calling it
1417                 ServiceBookConfig for now, for lack of a better name
1418         - added parsing for ServiceBook field 0x02 on 72xx Blackberries...
1419                 seems to be a name or description, but doesn't appear
1420                 in the device's own GUI... called "Hidden Name" for now
1421 2006/06/09
1422         - added ServiceBook record class and parser code, based on some
1423                 of Ron Gage's reverse engineering... code is by Chris Frey
1424         - added AUTHORS file
1425         - fixed the libusb set_configuration/claim_interface order
1426                 bug in controller.{h,cc}... already fixed in probe,
1427                 but not controller.  Thanks Ron Gage for finding this.
1428 2006/05/25
1429         - renamed Changelog to ChangeLog in preparation for autoconf
1430         - renamed Todo to TODO in preparation for autoconf
1431 2006/05/18
1432         - make clean cleans up tests properly now
1433 2006/03/31
1434         - turned source code browsing on in Doxyfile
1435         - added LoadDatabaseByName() and LoadDatabaseByType() template members
1436                 to the Controller class
1437                 - new file: controllertmpl.h
1438         - documentation fixes in builder.h
1439         - added static GetDBName() functions to all record classes, in
1440                 support of the template Controller functions
1441         - fleshed out DatabaseDatabase::GetDBNumber() and GetDBName(),
1442                 returning errors properly
1443         - documented sample btool.cc code better, and added example
1444                 of Controller template member usage
1445 2006/03/29
1446         - copyright dates updated for 2006
1447 2006/01/05
1448         - backed out update to latest libusb DEVEL tree, since it is buggy.
1449                 Stick with libusb 2005/11/26
1450 2005/12/30
1451         - added clean target to convenience Makefile
1452         - added Boost to list of dependencies in README
1453         - fixed minor compile warnings in base64.cc
1454         - fixed new USB discovery code, and changed endpoint usage to use
1455                 it, instead of the READ_ENDPOINT and WRITE_ENDPOINT
1456                 constants... constants are now removed
1457                 common.h, controller.cc, probe.cc, probe.h, usbwrap.cc
1458         - added ClearHalt() to Usb::Device (usbwrap.cc)
1459         - updated usbwrap.h to match latest libusb CVS devel tree
1460         - updated README to refer to 2005/12/30 libusb CVS devel tree
1461         - added roadmap to Todo list
1462 2005/12/29
1463         - added convenience Makefile in root directory
1464         - added Hacking document
1465         - minor touchups to README
1466         - added caution warning to README, since this release will support
1467                 delete / overwrite / upload functionality
1468         - minor compile order change in Makefile (speed reasons)
1469         - added dynamic endpoint discovery to probe.cc
1470         - changed claim_interface/set_configuration() function call order in
1471                 probe.cc based on feedback on the libusb mailing list
1472         - added USB discovery code to usbwrap.{h,cc}
1473 2005/12/23
1474         - fixed packing bug in new upload header struct
1475         - renamed CommonField union from data to u to be consistent
1476         - added return_code field to DBAccess struct, for error checking
1477         - added response checking during upload: if response is non-zero
1478                 throw exception in controller.cc
1479         - added sorting operators to record parser classes... when writing
1480                 contact data to the device, it may be important to write
1481                 group link items last, since they reference other contacts...
1482                 This needs to be tested, and if not required, removed.
1483         - added GROUP_FLAG field code to Contact parser class
1484         - fixed offset bug in Contact and Calendar Build() functions
1485         - fixed name bug in Contact::Build(), now output only with data
1486         - added appointment type flag support to Calendar record parser
1487                 class, and "all day event" flag support
1488 2005/12/22
1489         - added autoconf to Todo list
1490         - refactored the protocol structures so that record structs can
1491                 be reused for upload and download
1492         - with new protostructs, more header control is handled by
1493                 controller.cc instead of record.cc parsers and builders
1494         - parser code now accepts an offset, to govern start of record data
1495         - changed Data sizes from int to size_t and removed casts
1496         - removed unneeded Parser::GetHeaderSize() (new protostructs make
1497                 this obsolete)
1498         - added Calendar::Build() for calendar uploads
1499 2005/12/10
1500         - added s11n-boost.h serialization templates for boost::serialization
1501         - added boost::serialization to build
1502         - minor change in usbwrap.cc to display error codes in decimal
1503         - added SizePacket special case code to Socket::Send()... this is
1504                 required when uploaded packet size is a multiple of 0x40,
1505                 a special 3 byte size packet is sent
1506         - moved some record class variables to public: so they can be
1507                 properly serialized
1508         - fixed variable name but in RecordBuilder template
1509         - added -f switch to btool, for saving and loading of record data
1510         - added -s switch to btool, for uploading saved data back to handheld
1511         - added Controller::SaveDatabase()
1512 2005/12/08
1513         - fixed potential casting / pointer bug in controller.cc
1514         - added builder.h, to support uploading
1515         - minor comment fixes in parser.h
1516         - added preliminary Contact protocol record building support
1517         - fixed field order bug in ContactRecord protocol struct
1518         - Contact record.h class now saves unknown Group Link field,
1519                 for later saving
1520 2005/12/07
1521         - added -fno-strict-aliasing to compiler flags so gcc-4.0.x won't
1522                 optimize away protocol struct casts
1523                 see: 
1524                 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25235
1525                 http://mail-index.netbsd.org/tech-kern/2003/08/11/0001.html
1526                 http://groups.google.ca/group/comp.lang.c++.moderated/ \
1527                         browse_thread/thread/e7bf096832526f8e/5714701b \
1528                         02a2a3cc?hl=en#5714701b02a2a3cc
1529         - changed headers so that any low level protocol-specific sizes and
1530                 structs are completely hidden in the library...
1531                 this adds library-only header: protostructs.h
1533 Release: version 0.0.1 - 2005/11/25
1534 ------------------------------------------------------------------------------
1535 2005/11/25
1536         - added barry.h for documentation purposes and application usage
1537         - updated README for release
1538         - renamed SBError exception class to BError
1539         - updated Doxyfile to version 1.4.5
1540         - added more doxygen comments
1541 2005/11/24
1542         - added conversion routines (and tests) between time_t and min1900_t
1543         - added -v option to btool to dynamically control protocol dumping
1544         - removed duplicated database database table display in controller.cc
1545         - minor spelling corrections
1546         - added copyright to usbwrap.{h,cc} as per earlier meeting
1547         - added support for Old protocol Calendar entries
1548 2005/11/20
1549         - added legal.txt, to save typing when adding new source files
1550         - ignore test-base64 file (cvsignore)
1551         - added contact-to-ldif generation, and updated supporting code
1552         - added argument to btool to support contact-to-ldif operation
1553         - added Contact::GetPostalAddress()
1554         - added README documentation in preparation for future release
1555 2005/11/19
1556         - added parser.{h,cc} virtual wrapper to generalize LoadDatabase()
1557         - added code to socket.cc's Packet() command to re-receive on
1558                 reception of empty packets... this seems to be a signal
1559                 from the device that it needs more time for long transfers
1560                 Current limit: 10 blank packets before exception is thrown
1561                 Observed maximum blank count: 1
1562         - added MessageRecord and OldMessageRecord to protocol.h
1563         - changed common record field structs to one CommonField struct
1564         - increased default USB timeout to 10 seconds (some loaded devices
1565                 seem to need more time...)
1566         - reorganized record.{h,cc} to try to reduce the code duplication
1567         - record.h classes now "know" the sizes of their corresponding
1568                 protocol structs... this may cause trouble down the line
1569                 with Python, if used(?)
1570         - added Message class for Email records
1571         - removed the "Get*" database functions and replaced with
1572                 general LoadDatabase() call, which loads any database
1573                 available, and parses it with a Parser object
1574         - added GetDBID() for searching for database numbers via name
1575         - added test code to retrieve and display all email
1576         - cleaned up comments
1577         - renamed blackberry.{h,cc} to controller.{h,cc}
1578         - renamed bbtool.cc to btool.cc
1579         - added Makefile.conf
1580         - added copyright notices to source files
1581         - added COPYING file with GPL
1582         - put parser in Barry namespace, and added auto_ptr-like mode for
1583                 store object pointers
1584         - added doxygen docs
1585         - added header comments to convo.awk script
1586         - removed Test() function in Controller object, and made class
1587                 better suited to its general API purpose
1588         - changed OpenMode() so it loads command table and DBDB... it is now
1589                 a public API function
1590         - moved Controller test code to btool.cc and made tool more
1591                 generically useful... can now download any DB by name on
1592                 the command line
1593         - added mode checks to Controller
1594         - added -t and -d command line options to btool
1595         - added base64 routines from John Walker / Fourmilab and Citadel/UX
1596         - converted base64 routines into an API, instead of hardcoded
1597                 file based
1598 2005/11/18
1599         - changed project name to Barry, including namespaces
1600         - renamed sbcommon.* to common.*
1601         - increased USB default timeout to 2 seconds
1602         - fixed formatting bug in Data operator<< output
1603         - cleaned up the protocol packet structs, getting rid of the
1604                 confusing param/simple split... param is now the tableCmd
1605                 from the Command Table
1606         - moved protocol structs from record.h to protocol.h
1607         - added support for older version of the USB protocol, which matches
1608                 the Cassis spec more closely
1609         - fixed the hardcoded offsets in blackberry.cc's protocol parsing
1610         - fixed Socket::Close() so on error, socket flags are reset.
1611                 This stops Close() from being called twice on exception
1612                 destructors
1613 2005/11/17
1614         - added Doxyfile to the project
1615         - tuned Makefile
1616         - added mode selection support to Blackberry class (RIM Desktop,
1617                 RIM Bypass, and RIM_JavaLoader)
1618                 Mode selection governs which socket is used in subsequent
1619                 data transfers.
1620         - added Command Table parsing and protocol support
1621                 Blackberry class, and CommandTable record class
1622         - added Database database parsing and protocol support
1623                 Blackberry class and DatabaseDatabase record class
1624         - added Address book retrieval support - dumps data to stdout for now
1625         - fixed bug in CopyOnWrite mode in Data class, where could allocate
1626                 less buffer than data copied
1627         - added "easy exception" debug output macro
1628         - fixed minor spelling error in protocol.cc
1629         - fixed ModeSelectCommand protocol structure - it is not a parameter
1630                 command, but uses the unknown slots for socket and flag
1631                 data
1632         - removed hardcoded socket numbers from protocol.h
1633         - fixed bug in socket.cc:Open() where packet size was not properly
1634                 saved
1635         - implemented socket::Close()
1636         - fixed sequence number checks, so it is reset properly on socket 0
1637         - added Socket::NextRecord() for multiple record data transfers
1638         - fixed input handling bug in translate.cc
1639 2005/11/11
1640         - added .cvsignore files to project
1641         - added README notes to document the source architecture
1642         - added dbsetup data script, which shows how to get into database
1643                 mode, using the RIM Desktop mode, and open a socket
1644         - added blackberry.{h,cc} class
1645         - added command line parameters to bbtool.cc
1646                 -l = list only
1647                 -p = specify pin of blackberry device
1648         - added blackberry test code in bbtool.cc - debugging the initial
1649                 opening protocol: sockets, modes, etc... see dbsetup for
1650                 results
1651         - added copy-on-write functionality to Data class, so it can be used
1652                 with plain data buffers with little performance impact
1653         - added eout() and ddout() debugging - to separate:
1654                 - regular debug output
1655                 - exception debug output (should probably be logged to
1656                         syslog someday, and never turned off)
1657                 - raw data dump output
1658         - changed errno SBError exception handler to try to decode the error
1659                 numbers into english (limited success)
1660         - fixed probe and socket USB Bulk message handling, so they don't
1661                 use PollCompletions(), but use IO::Wait() (libusb_io_wait())
1662         - added common packet size checker in protocol.cc
1663         - fixed unpacked protocol packet structs... using gcc's
1664                 __attribute__ ((packed)) ... see protocol.h
1665         - added ModeSelectCommand structure (protocol.h)
1666         - finished Socket::Open() call  (Close() not yet implemented)
1667         - moved Socket::Send/Receive() out of private, as they can be used
1668                 for socket 0 operations.
1669         - cleaned up pointer management with macros:
1670                 MAKE_PACKET()
1671                 COMMAND()
1672                 IS_COMMAND()
1673         - added IO::Wait() and IO::Cancel() to correspond with libusb API
1674         - added datadumping in usbwrap for easy protocol capture
1675         - added preliminary record.{h,cc} classes
1676         - added Contact record parsing, and test code
1677 2005/10/20
1678         - syncberry tree started