- moved Interface implementation to usbwrap.cc file
[barry.git] / ChangeLog
blobee8e002ac4efdb922ec868ed3d4834048f8f800f
1 Release: version 0.8 - 2007/05/??
2 ------------------------------------------------------------------------------
3 2007/08/03
4         - moved Interface implementation to usbwrap.cc file
5         - added dout debugging messages to usbwrap.cc
6         - clarified unhandled packet error message in socket.cc
7         - added temporary workaround in opensync-plugin environment's
8                 Reconnect(), for odd message seen on newer Blackberry
9                 devices
10 2007/08/01
11         - added entry to doc/TroubleShooting.txt
12 2007/07/28
13         - added doc/TroubleShooting.txt
14 2007/07/27
15         - opensync plugin:
16                 - fixed bug in vcard.cc that was using the FN field
17                         for the broken-down name instead of N
18                 - added dbId and dbName to DatabaseSyncState
19                 - added Reconnect() functionality to BarryEnvironment class
20                         and moved connect logic out of barry_sync.cc
21                 - changed the batch commit functionality in barry_sync.cc
22                         to single-change-commit.  Why?  Because opensync
23                         0.22 groups all batch changes into one group
24                         and calls one batch commit function, even if you
25                         registered two.  Moving to single change commit
26                         mode removes a chunk of unneccessary code
27                         from the plugin as well, and can in theory
28                         ease memory pressure in the library.
29                 - added FinishSync() to perform actions needed on successful
30                         syncing completion
31                 - disconnect on successful sync completion, and reconnect,
32                         since the device's dirty flags don't seem to
33                         be updated until a disconnect occurs.
34 2007/07/26
35         - added ReadDataArray() to data.h, using an istream instead of
36                 requiring a file
37         - added raw data version of BuildField() to record-internal.h
38                 This is so that btool doesn't add extra null terminators
39                 to unknown data, when restoring with option -s
40         - fixed bugs in r_contact.cc:
41                 - fixed bug that caused a LastName/FirstName swap
42                         if FirstName was empty and you wrote a contact
43                         record into the device.... First/Last Name
44                         fields are position sensitive, and the code
45                         was missing the empty FirstName case on writing
46                 - fixed bug in BuildFields() and Dump() where they
47                         were not updated to handle the new field
48                         table added for the postal address changes
49                         on 2007/07/20, oops
50         - opensync plugin:
51                 - changed the plugin config file, so it is possible to
52                         turn debug output on/off without recompiling
53                 - moved the standalone Map2Uid() function into
54                         the DatabaseSyncState class, and changed the
55                         code to produce "contact-#" and "calendar-#"
56                         UID strings, instead of just numbers
57                 - changed default PIN to -1, so that if the user doesn't
58                         configure properly, it will fail... this is a
59                         safety measure to avoid syncing with different
60                         devices and corrupting the cache/idmap...
61                         this should be fixed someday, to handle this
62                         automatically
63                         On second thought... is this right?  Perhaps
64                         it is better to fail if the PIN is not what
65                         is expected, so a user doesn't accidentally
66                         sync the wrong device and lose data.
67                         Actions to take on new PIN:
68                                 - force slow_sync, or
69                                 - fail
70                 - incorporated the new VCardConverter code into the
71                         main barry_sync.cc plugin code
72                 - fixed bug that did not clear the devices dirty flags
73                         in the case where a sync only read data from it,
74                         and didn't write
75                 - changed PIN error message number to hex
76 2007/07/20
77         - minor wording change in backup GUI prompt: "Backup working..." to
78                 "Backup in progress..."
79         - renamed Contact class's Title field to JobTitle for clarity
80         - added record function ParseFieldString(), which properly handles
81                 strings from the device that have multiple null terminators,
82                 and changed the record parsing code to use this new function
83         - moved FullName() function from ldif.cc to r_contact.cc since it
84                 is generally useful in areas outside of LDIF processing
85         - refactored postal addresses in the Contact record class into
86                 a new class called PostalAddress
87         - renamed Address class in record.h to EmailAddress
88         - moved Contact::GetPostalAddress() to record.cc as part of the
89                 new PostalAddress class and renamed it
90                 PostalAddress::GetLabel()
91         - opensync plugin:
92                 - refactored vformat helpers into separate base class
93                         called vBase
94                 - added vCard converter class
95                 - commented out the code that skipped over the adding
96                         of empty attribute values and parameters,
97                         since VCARD depends on some of this behaviour
98                 - movified vformat.c:vformat_find_attribute() to take
99                         an extra nth argument, in order to search
100                         for multiple attributes with the same name...
101                         the way this is coded is a bit inefficient...
102                         but we're moving away from vformat when we move
103                         to OpenSync 0.3x / 0.40, so this is just temporary
104                         pain
105 2007/07/19
106         - added SUBSYSTEM=="usb_device" to example udev rules, in order
107                 to avoid running bcharge for each endpoint that is
108                 added by udev, when first plugged in.  Running bcharge
109                 back-to-back multiple times can crash some
110                 Blackberries.
111 2007/07/14
112         - opensync plugin:
113                 - fixed ID mapping bug in the case of a non-numeric UID
114                         from syncing external -> Barry, and then the
115                         new Barry ID would look like a new change
116                         when syncing back from Barry -> external.
117                 - added support for slow sync
118                 - added clear() to idmap class
119                 - added vformat attr parameter extraction class
120                 - added more trace logging during vformat/Barry conversions
121                 - added Notification time support
122                 - handled "all day" vformat special case, when DTEND
123                         does not exist in a vformat data block
124         - changed the min1900_t time conversion functions to handle
125                 the 0xffffffff special case, when notifications
126                 are turned off on a calendar event (src/time.cc)
127         - also made the calendar data dump output clearer for
128                 disabled timestamps, and added debug output
129                 for the raw min1900 value, in case there are more
130                 special cases in the future
131 2007/07/13
132         - fixed null pointer access in opensync's HasMultipleVEvents()
133 2007/07/12
134         - upper management directive: revert all OpenSync 0.3x changes
135                 and proceed with OpenSync 0.22.  Reverting the
136                 opensync-plugin/src tree to Barry 0.7 status.
137 2007/07/06
138         - reorganized exception and trace code in opensync plugin
139         - added XmlToCalendar() function, based on unfinished opensync
140                 library API that is not yet finished... will be
141                 committed to opensync svn tree when complete
142         - added OSyncXMLField logger to plugin trace class
143 2007/06/29
144         - applied email MessageRecord patch from Brian Edginton (thanks!)
145         - updated Message::Dump() to output more valid mbox data...
146                 the goal is to be able to do:
147                         btool -d "Messages" > email.mbox
148                         mutt -f email.mbox
149         - changed some TODO's to FIXME's to keep it grep-consistent
150         - applied Folder support patch from Brian Edginton
151         - fixed pedantic compile warnings, and changed order in src/Makefile.am
152         - removed unneeded cast in src/r_folder.cc
153 2007/06/28
154         - minor adjustment to ctags building in buildgen.sh
155         - applied patch from Brian Edginton for better boost detection
156                 in configure.ac
157         - added boost usage message to btool -h output
158 2007/06/21
159         - more porting of OpenSync module to 0.30
160         - added ctags build for opensync source tree to buildgen.sh
161 2007/06/14
162         - changed PKG_CONFIG_PATH setting in rpm script, so that systems
163                 like SuSE that have an extensive PKG_CONFIG_PATH
164                 in general use will not break on build
165         - added PKG_CONFIG_PATH to debian script too, just in case :-)
166         - added debian/changelog to doc/ReleaseChecklist.txt
167         - added comment to rpm/barry.spec regarding SuSE RPM builds
168 2007/06/08
169         - applied patch from Niels de Vos fixing debian package build
170                 dependency
171         - applied Brian Edginton's Saved Email Messages patch
172         - updated r_saved_messages.cc comment to match header
173         - added GetRecType()/GetUniqueId() to r_saved_messages.h, since
174                 SetIds() is already there
175         - removed Address version of operator<<() from message related headers
176                 and moved into record.h
177         - added std::hex to message related dumps, and changed output to
178                 be more mbox-like
179         - updated doc/CodingStyle.txt to cover switch() statements
180         - opensync compiles again, with 0.30!  (not functional yet)
181                 - moving closer to more modular and reusable plugin functions
182         - updated release checklist for opensync version number
183 2007/06/07
184         - added doc/CodingStyle.txt... preliminary version
185 2007/06/06
186         - applied Brian Edginton's PIN message patch
187         - changes to PIN message patch:
188                 - fixed missing backslash in src/Makefile.am
189                 - fixed tab alignment throughout
190                 - removed typedef from Address struct
191                 - added clear() to Address... might as well, if it it is
192                         going to be a standalone type
193                 - fixed missing comma in PINMessageFieldLinks table
194                 - changed MessageRecordId in PINMessage to load from a new
195                         uint32_t field in CommonField, instead of piggy
196                         backing on a field for other use
197         - did some testing and found that PINMessage's MessageRecordId
198                 is the same as the RecordId given through the SetIds()
199                 API... but these Id's are duplicated in the protocol...
200                 RecordId is stored in the protocol header, while
201                 MessageRecordId is stored in the record it self as
202                 a common field... added RecType and RecordId to
203                 PIN Message so that we store both of these
204         - updated AUTHORS
205 2007/05/27
206         - added item to gui/TODO
207         - applied Brian Edginton's s11n-boost.h patch
208 2007/05/25
209         - renamed template values to more consistent naming scheme
210         - applied memos and tasks patch from Brian Edginton, slightly
211                 modified to split into the new separate files system
212         - changes to memos and tasks classes:
213                 - reformatted the code to match coding style
214                         (come on Brian) :-)
215                 - added copyright notice
216                 - changed class to singular (Memo, not Memos)
217                 - placed in Barry namespace
218                 - added #ifdef header protectors
219                 - added new files to Makefile.am
220                 - added new r_*.h headers to record.h
221         - added support for Memos and Tasks to tools/btool.cc, based on
222                 Brian Edginton's patch
223                 (currently commented out, for Boost library reasons):
224         - added doc/CommitPolicy.txt
225         - updated AUTHORS
226 2007/05/24
227         - added ctags generation to buildgen.sh
228         - applied record.{h,cc} fix patch from Brian Edginton
229                 - ClassFlag
230                 - FreeBusyFlag
231                 - Clear() fixes
232         - fixed broken formatting in above patch
233         - refactored record parser classes into separate files for each
234         - changed the ConvertHtoB<> template to inline, as it caused
235                 linker errors with the new file layout
236 2007/05/17
237         - fixed bug in Debian packaging that put util commands in
238                 /bin and /sbin instead of /usr/bin and /usr/sbin
239         - commited byteswap.h replacement code from gm2net
240         - backup gui:
241                 - removed unneeded debug messages on stdout
242                 - changed the default for debug output to "off"
243                         and added a command line option to turn
244                         it on if necessary  (--debug-output)
245                 - command line option --help now also works
246         - fixed bug in Calendar class where it didn't initialize
247                 RecType properly... and cleaned up other RecType
248                 code to use the GetDefaultRecType() functions,
249                 localizing the constants in one place
250 2007/05/11
251         - applied patches from Brian Edginton, parsing more
252                 fields in Contact and Calendar records
253         - added Brian Edginton to AUTHORS
254         - reformatted record.{h,cc} to match the rest of the code,
255                 removed commented out code, and removed mention of
256                 Outlook from the comments.
257         - updated udev/10-blackberry.rules.Debian for Debian Etch
258         - updated debian/rules to use new udev rules file
259         - removed debian/postinst, as stable versions of Debian now
260                 have a recent udev, and don't need the special handling
261         - updated Debian build scripts to build separate packages:
262                 libbarry
263                 libbarry-dev
264                 barry-util
265                 barrybackup-gui
266         - added menu support to Debian barrybackup-gui package
267         - made the buttons bigger in the backup GUI, as they were too
268                 small on Debian Etch
269         - opensync plugin:
270                 - more progress in porting to opensync 0.30, heavily
271                         based on the example plugin in the opensync
272                         svn tree...  this is a work in progress, and so far
273                         is incomplete
274 2007/05/04
275         - opensync plugin:
276                 - partial porting to opensync 0.30 (in progress!)
277                 - fixed bug in sync_done where it reported context error
278                         and then success afterward
279         - checking in new INSTALL files based on Etch's autoconf run
280         - added item to gui's todo list
281         - bumped version numbers to 0.8 in:
282                 - configure.ac
283                 - src/Makefile.am
284                 - src/version.cc
285                 - gui/src/BackupWindow.cc (about dialog)
286                 - src/Doxygen
287                 - rpm/barry*.spec
289 Release: version 0.7 - 2007/05/02
290 ------------------------------------------------------------------------------
291 2007/05/02
292         - added rpm building to maintainer/release scripts
293         - added "HEAD" feature to tarball creation script, for easier testing
294         - updated maintainer/README
295         - updated maintainer/release.sh to use new HEAD feature too
296 2007/05/01
297         - added pppob to rpm barry.spec
298         - bumped release number in barry.spec
299 2007/04/30
300         - opensync plugin:
301                 - fixed size check bugs (strlen() == 0 when empty)
302                 - finished refactoring calendar conversion routines
303                 - started timezone parsing, but this may go away
304                         if we use opensync 0.30's time functions and
305                         xml data format...
306                 - added development note to README
307 2007/04/29
308         - updated README and opensync-plugin/README with more current
309                 build instructions
310         - opensync plugin:
311                 - refactored some calendar conversion routines
312                 - added Barry->vCalendar conversion for recurring appointments
313 2007/04/27
314         - opensync module:
315                 - removed some unneeded trace logs
316                 - fixed VEventConverter constructor bug, with uninitialized
317                         m_Data pointer
318                 - eased up the requirement that every calendar event
319                         must have a summary... defaults to "<blank subject>"
320                         if empty
321                 - added more VCALENDAR fields to match Barry::Calendar record
322                 - fixed case sensitive compares in vformat.c
323 2007/04/26
324         - opensync module work:
325                 - added id map class to map string uid's from OpenSync to
326                         numeric ID's from the Blackberry
327                 - fixed bug in CommitChange() where it was still using
328                         a hard coded calendar record state table
329                 - added lots of logging throughout
330                 - fixed bug where newly added records didn't use the
331                         change object's uid, but created a new ID,
332                         causing another sync on the next run
333                         i.e. (CommitData_t was missing an argument)
334                 - fixed bug where uninitialized notification time was
335                         written to the Blackberry
336         - more opensync module work:
337                 - refactored the environment class into another subclass
338                         called DatabaseSyncState, and moved some stand-
339                         alone functions from barry_sync.cc into
340                         the environment classes
341                 - added a tagged constructor to the trace class
342                 - fixed idmap::Load() to clear map before loading
343 2007/04/20
344         - renamed barry-config to barry-sync, the default configuration
345                 file for the opensync module... and filled it with
346                 a sample configuration
347         - added code to update the calendar cache, and write it to disk
348                 on success (opensync module)
349         - added code to clear dirty flags in the device (opensync module)
350         - allowed comments in the config file
351         - added vformat.c from libopensync 0.22, since the vformat
352                 routines are not available from the plugin side
353 2007/04/19
354         - updated gui/TODO
355         - added -d switch to bcharge to switch back from 0001 to 0004 mode,
356                 changed the auto-detection logic to ignore iProduct and
357                 only use idProduct, and updated man page
358         - updated breset to recognize the Pearl in 00004 mode as well
359         - changed src/probe.cc logic to assume that the second endpoint
360                 pair is the one needed for database communication, instead
361                 of doing a reverse search from the end... newer Pearls
362                 in Dual mode seem to have at least 3 or 4 endpoint pairs,
363                 and the old search didn't always work
364         - applied sourceforge patch #1696884 from Peter Silva, updating
365                 the Debian build for Etch, and including all files in one deb
366         - added Peter Silva to AUTHORS file
367         - uncommented the "make distclean" in debian/rules, and removed
368                 the reliance on /tmp when installing 99-barry-perms.rules
369         - applied bb_task_format.txt patch from Peter Silva
370         - fixed each misspelling of "recurrance" to "recurrence"
371         - tweaked src/probe.cc again for paranoia's sake... start at
372                 offset 1 if more than 1 endpoint pair, otherwise start
373                 search at 0
374         - split up opensync module into multiple source files, and started
375                 using the opensync vformat routines for parsing and building
376                 the vevent20 data (experimental)
377 2007/04/04
378         - more incremental work on the opensync plugin, adding ADDED
379                 and MODIFIED functionality... (experimental!)
380 2007/03/30
381         - added code to dump extra descriptors during device discovery,
382                 if found
383         - bumped opensync version number in configure.ac, and made
384                 the configure scripts more consistent with the rest
385                 of the project
386         - fixed printf-format size bug in opensync module
387 2007/03/29
388         - applied patch from Niels de Vos, fixing deb udev rules for Pearl
389         - updated AUTHORS
390         - fixed extra space bug in LDIF output (added space when creating
391                 FullName, even if there was no last name)
392         - fixed Address Book record parsing in Contact class... the
393                 Blackberry database uses field id 0x20 for both the
394                 first and last names, and if only a last name exists,
395                 the first name will be empty.  Fixed parser to handle
396                 this special case, without relying on string length.
397                 Thanks to Troy Engel for reporting above two LDIF bugs.
398         - added a few more constants to bcharge.cc
399         - renamed opensync's configure.in to configure.ac
400 2007/03/17
401         - fixed bcharge to avoid endless reset loop... oops
402 2007/03/16
403         - reorganized bcharge.cc to make it possible to switch between
404                 Pearl modes 0004 and 0001
405         - added flag to BadPassword exception class, to signal whether
406                 the library considers the device "out of retries" or not
407         - updated socket.cc for new BadPassword exception
408         - added special case to Controller class destructor to reset the
409                 device if being destroyed in a half-open state... this is
410                 a temporary fix until we understand how to handle
411                 the "already open" message we get when opening the Desktop
412                 in some cases
413         - added password prompt dialog to the backup GUI
414         - fixed possible memory leak in GUI's DeviceInterface::Connect()
415 2007/03/08
416         - committed Troy Engel's bbrules_mass_symlinks.patch, fixing
417                 udev rules for the Pearl
418         - updated 10-blackberry.rules.Debian to match 10-blackberry.rules's
419                 functionality
420         - applied Troy Engel's barry.spec patch to generate all required
421                 RPM's... Thank you!  Notes in the README taken from
422                 the sourceforge tracker entry containing the patch.
423         - added libusb lib flags to tools/ and examples/ makefiles,
424                 and tweaked configure.ac with a better default,
425                 to build cleanly on RHEL 4
426         - modified rpm/barry.spec:
427                 - does not create doc-only barry base package anymore
428                 - fixed "barry-backup" typo
429                 - removed the patch step, as version 0.7 shouldn't need it
430                 - added license file to each package
431                 - commented out console perms scripts, pending mailing list
432                         discussion
433         - updated AUTHORS
434         - applied Troy Engel's barry.spec patch to fix RHEL4 compile issues
435         - fixed 80 column wrapping error in barry.spec, thanks to Troy Engel
436                 for the bug report
437         - applied Troy Engel's udev permissions patch for Redhat/Fedora
438                 systems, which automatically set the ownership of a
439                 newly plugged in device to the currently logged in console
440                 user.
441         - added udev/README to document what all those files are for...
442                 part of the text comes from the sourceforge comment
443                 on the above udev permissions patch from Troy Engel
444         - uncommented the console perms scripts for rpm/barry.spec
445         - added libglademm-2.4 to gui/README's dependency list
446         - made usbwrap.* calls more threadsafe
447         - added Usb::Timeout exception for timeout errors
448         - added preliminary UsbSerData support to library for GPRS modem
449                 functionality, using Rick Scott's XmBlackBerry's serdata.c
450                 as a guide
451         - added overloaded Socket::Send() for sending without receiving
452         - added preliminary pppob command line tool
453 2007/03/02
454         - version bump in:
455                 - configure.ac
456                 - src/Makefile.am
457                 - src/version.cc
458                 - gui/src/BackupWindow.cc (about dialog)
459                 - src/Doxyfile
460                 - rpm/barry.spec
461         - build system tweaks for opensync-plugin, and added a buildgen.sh
462                 for it
463         - added better debug messages in probe.cc and usbwrap.cc's
464                 device discovery code
465         - changed error handling for null interface->altsetting pointers
466                 when doing device discovery in usbwrap.cc.  Seems that
467                 some devices report a higher number in bNumInterfaces
468                 than are really available... in this case, let's
469                 just ignore the missing data and assume success
470         - applied udev script patch #1663986 from Troy Engel
471         - applied barry-bcharge.spec patch #1672178 from Troy Engel
472         - ReleaseChecklist update
473         - added rpm/README based on Troy Engel's patch notes
474         - updated new barry-bcharge.spec for version 0.7, removing patch
475                 dependency
477 Release: version 0.6 - 2007/02/28
478 ------------------------------------------------------------------------------
479 2007/02/28
480         - fixed size checks for device database records larger than 64K
481                 Thanks to Michael Brown for the bug report.
482         - added initial release maintainer scripts
483         - fixed odd backup success message in GUI when doing a backup with
484                 no databases selected in configuration
485                 Thanks to Michael Brown for the bug report.
486         - added udev permissions file patch from Michael Brown
487         - added Michael Brown to AUTHORS
488         - updated README, gui/README, and doc/USB-capture.txt
489         - added -o command line switch to bcharge.cc, and updated man page
490 2007/02/23
491         - changed library behaviour so it only turns on libusb debug output
492                 if in data dump mode.  In btool, -v controls this output.
493         - minor stream formatting fix in btool
494         - added OpenSSL dependency to build for password hash support
495         - made debug dout() output conditional on Init() flag... In btool,
496                 -v now controls this as well
497         - reverse engineered more of the initial probe packets, and
498                 implemented probing in struct based code... changes include:
499                 - added support for "attribute fetch" packets, used at
500                         the beginning of USB conversations
501                 - defined object/attribute id codes for the PIN number
502                 - made Protocol::SocketCommand more robust, and implemented
503                         its sequence number behaviour
504                 - moved ModeSelectCommand into SocketCommand, as it is a
505                         socket 0 level command
506                 - added initial protocol struct: PasswordChallenge
507                 - renamed Barry::Packet to DBPacket
508                 - added ZeroPacket for socket 0 packet creation and analysis
509                 - Barry::Packet is now the base class for the above
510                 - implemented socket 0 behaviour in socket.cc
511                 - changed return values for Send/Receive/Packet/NextRecord
512                         members in the Socket class from bool to void, as they
513                         don't generate errors themselves, but only can
514                         have an error if Usb::Device throws an exception.
515                         Cleaned up all code that called these members as well.
516                 - removed "last status" from Socket class as it was unused
517                 - updated probe.cc to use new socket 0 implementation
518                 - removed two of the hard coded packet handshakes in favour
519                         of socket 0 packets
520                 - updated controller.cc:
521                         - uses new socket 0 implementation
522                         - removed "flag" hack when opening sockets and
523                                 selecting modes, as it should use the
524                                 socket 0 sequence number
525         - added initial, incomplete prototype header for the C API
526         - updated some .cvsignore files
527         - updated TODO
528         - updated ReleaseChecklist.txt, adding rpm spec file
529         - added the following to ZeroPacket:
530                 - ChallengeSeed()
531                 - RemainingTries()
532                 - SocketResponse()
533                 - SocketSqeuence()
534         - moved Command() to base Packet class
535         - added comments to protostructs.h and size constants for the
536                 new PasswordChallenge struct
537         - added password support to Socket and Controller classes
538                 Thanks to Rick Scott's XmBlackBerry for the openssl
539                 password hashing logic.
540         - updated btool to use new password support, and updated its man page
541 2007/02/22
542         - updated Doxygen input files and version, and added to ReleaseChecklist
543         - fixed btool PIN output for LDIF mode, now commented in output
544         - major LDIF overhaul:
545                 - split LDIF specific code out of the record class and
546                         into its own
547                 - fixed "full name" behaviour that added an extra space
548                         in dn attributes, as reported by Troy Engel
549                 - added support for mapping of LDIF attributes to Barry
550                         contact field names
551                 - fixed base64 handling, so attributes are only so encoded
552                         if necessary
553                 - fixed base64 attribute reading inconsistency... some
554                         notes fields were missed in old version if not
555                         encoded
556                 - added support for specifying alternate attribute for
557                         constructing a FQDN, instead of just "cn"
558                 - updated btool and upldif to use new features
559         - large update to btool manpage
560         - fixed initialization bug in Contact constructor (missed RecType)
561 2007/02/15
562         - added ktrans.cc to make reading of kernel usbfs_snoop logs easier
563         - removed commented code from translate.cc
564         - added Pearl handshake support to bcharge.cc, which resets the
565                 Pearl so that the vendor specific 0xFF class exists.
566                 This should allow use of btool on the Pearl.
567         - added Data::AppendHexString to data.cc
568         - added better probing support for the Pearl, so it detects the
569                 Product ID 0x0004 mode, and does a search for class 0xFF
570                 instead of hardcoding it.
571 2007/02/10
572         - applied README patch from Ian Darwin
573         - minor tweaks to README
574         - added missing errno.h header in src/usbwrap.cc for AMD64
575                 Thanks to Jonathan Hudson for reporting the bug.
576         - tightened up size checks in Data::ReleaseBuffer()
577         - stable libusb *does* return the actual length of the USB packet...
578                 fixed this in usbwrap.cc to set the actual size of read data,
579                 and removed the size hacks elsewhere in the code:
580                 probe.cc, protocol.cc, socket.cc, usbwrap.cc
581 2007/02/09
582         - added proper return codes for error conditions in btool.cc
583         - clarified some stream output code in the library, for hex/dec numbers
584         - removed old, non-working connect.cc test program
585         - added iomanip to debug.h
586         - changed usbwrap to call libusb again if EINTR and EAGAIN
587                 This should fix one of the OpenBSD issues
588 2007/02/04
589         - updated AUTHORS
590         - fixed bug in barrybackup GUI that didn't create the target path
591                 if the user didn't do Edit | Config first.
592                 Thanks to Ian Darwin for reporting the bug.
593         - applied gui/src/ConfigFile.cc header fix patch for OpenBSD
594                 from Ian Darwin
595 2007/02/03
596         - added initial btool.1 man page from Ian Darwin
597         - updated man/Makefile.am for new btool.1
598         - updated AUTHORS
599         - applied btool -h help clarification patch from Ian Darwin
600 2007/02/02
601         - reworked exception hierarchy, so applications can handle all
602                 Barry related exceptions, including Usb errors, with
603                 one base class: Barry::Error
604         - fixed all the ripple changes this caused throughout the codebase
605         - added BadPassword exception
606 2007/02/01
607         - version bump in:
608                 - configure.ac
609                 - src/Makefile.am
610                 - src/version.cc
611                 - gui/src/BackupWindow.cc (about dialog)
612         - updated doc/ReleaseChecklist.txt
613         - added usb-level breset.cc command line tool
614         - fixed bug in gui/src/tarfile.* for systems where
615                 sizeof(int) != sizeof(void*)
616                 - TarFile class now uses a plugin style for the compression
617                         operations, to allow for threadsafe versions if needed
618                         in the future.
619                 - also fixed leaked file handle bug in open_compressed()
620                 - Thanks to Jonathan Hudson for reporting this for 64bit systems
621         - minor signed comparison fixes in the library
622         - added better protocol data dumping code in probe.cc
623         - added Usb::Device::BulkDrain(), to prevent Barry from hanging
624                 due to pending reads
626 Release: version 0.5 - 2007/01/26
627 ------------------------------------------------------------------------------
628 2007/01/26
629         - added missing errno.h header to gui/src/util.cc
630         - lots more endian fixes after testing on iMac  
631         - iostream output size fixes
632         - added option to btool to reset the device via software
633         - beefed up exception handling in barrybackup
634         - checked in opensync work-in-progress: trace logging, pointer bugfix
635                 this is still experimental
636         - added aboutdialog.* files from gtkmm24 2.10.6, so we have a dialog
637                 class for systems running older versions of gtkmm, like
638                 Debian stable
639         - uncommented the about box menu handler
640         - added "cleanall" option to root buildgen.sh script
641         - update ReleaseChecklist.txt
642         - removed CVS auto-history strings from aboutdialog.*
643 2007/01/25
644         - found a link between the unknown field in tagged protocol headers
645                 and the unknown field in RecordStateTable entries.  This
646                 field matters when uploading certain databases, such as
647                 Browser Options.  It is unknown what this field really
648                 means, but we're calling it RecType.  Updated the API
649                 to use this in all parser objects and builder objects
650                 and record objects that use it.
651         - changed some uses of uint64_t to uint32_t, in Contact and
652                 Calendar record objects... unique IDs only seem to be
653                 32 bits
654         - added new static function to record classes: GetDefaultRecType()
655                 This returns the default rectype that should work
656                 for that record.  Ideally this should be retrieved from
657                 the device, but in the case where a database has no
658                 records, this info would be good to know.
659         - updated convenience template function Controller::AddRecordByType()
660                 to use GetDefaultRecType()
661         - documented the recurrence data and how to use it in Calendar objects
662         - added data debug output for incoming USB packets in the
663                 socket class... when we ported to the stable libusb
664                 we lost some of the verbose output... this should get it
665                 back.  (In the official release, you need to uncomment
666                 ddout() in debug.h for the full blast of debug output).
667         - backup GUI updates:
668                 - changed error_done signal into a pure error signal,
669                         and changed the logic so the restore continues
670                         even if there was a protocol error on one database
671                 - changed status bar messages to show what's happening
672                         i.e. Backup or Restore
673                 - default to not restore the "Handheld Agent" database as
674                         it appears to be read-only on the device
675                 - added temporary Restore & Backup mode for debugging
676                 - added extra hyphen to backup files to show date/time better
677                 - updated GUI to save and restore the new RecType field
678                         supported now by the library
679 2007/01/21
680         - added future considerations to doc/ReleaseChecklist.txt
681         - applied big endian patch from Jonathan Hudson
682         - changes to patch:
683                 - removed endian.h include from barry.h, since applications
684                         using the library should not care about endianness
685                 - hard coded the path to config.h in endian.h
686                         so that endian.h never makes it into the final
687                         install
688                 - removed DEFAULT_INCLUDES setting from src/Makefile.am
689                         for the same reason
690                 - removed config.h dependency in btool.cc and used library
691                         Version call instead
692         - added big/little endian text to the Barry::Version call
693         - updated AUTHORS
694         - fixed install location of bcharge when building with ./configure;
695                 now goes to sbin/ for both source compile and binary packages
696                 Thanks to Jonathan Hudson for reporting this bug.
697 2007/01/20
698         - added smarter timeout values to controller, and allowed
699                 timeout overrides in the packet, socket, and usbwrap code...
700                 extra timeouts are needed for erasing databases for
701                 some older devices
702         - added an explicit DataDumpParser class to btool.cc, as the
703                 library doesn't always have extreme verbose debugging on...
704                 this makes sure anyone can always get raw database packets
705                 through btool, for development
706         - added thread callback signals for error finishes and erase_db
707                 operations, so the GUI is updated properly
708         - more GUI cleanups (status bar updates, etc)
709         - finished implementation of GUI restore
710         - fixed gtkmm/glibmm exception handling when the exceptions
711                 occur in sigc signal handlers... in that case,
712                 exceptions need to be handled with
713                 Glib::add_exception_handler()
714         - added filename-only reading support to TarFile class
715         - added pending gui/TODO items
716 2007/01/19
717         - backup GUI now properly shows progress
718         - the buttons become insensitive when backup is busy
719         - refactored directory check code, and added mkdir check
720                 when to the backup setup (so the directory exists
721                 when we try to write to it)
722         - updated code to use Barry::Data in new namespace
723 2007/01/18
724         - moved Data class into Barry namespace
725 2007/01/13
726         - updated copyright dates for the new year
727         - clarified exception message in controller.cc
728         - fixed pointer initialization bug in controller.cc
729         - added documentation comments to parser.h and builder.h
730         - updated ReleaseChecklist.txt
731         - updated README
732         - changed Barry library configure scripts to make better
733                 use of pkg-config for autodetecting dependencies
734         - added initial Barry Backup GUI (gui/ directory), capable of making
735                 backups only at this point
736 2007/01/11
737         - added doc/ReleaseChecklist.txt
738         - added version API, returning version number and string
739         - added Troy Engel to AUTHORS
740         - added special case to bcharge.cc for the Blackberry Pearl,
741                 which doesn't reset itself after the charge handshake
742                 Thanks to Troy Engel for testing.
743 2007/01/05
744         - added pkg-config support for the library (libbarry-0.pc.in)
745         - fixed compile error on g++ 3.3 systems (missing stdint.h
746                 in probe.h)
747         - fixed protocol hang at end of Controller operation... in
748                 controller destructor, it was deleting the USB interface
749                 before closing the socket at the BlackBerry level, thereby
750                 leaving the device in Desktop mode
751 2007/01/04
752         - support the newer udev packages on Ubuntu, which need slightly
753                 different rules
754         - modified bcharge.cc to search for Pearl devices too.
755                 USB product ID 6
756         - added Pearl product ID to probe code, but likely not functional
757                 yet until we find someone able to get a USB capture for us
758 2006/12/29
759         - version bump in configure.ac and src/Makefile.am
761 Release: version 0.4 - 2006/12/29
762 ------------------------------------------------------------------------------
763 2006/12/29
764         - added bcharge.cc to the tools/ directory (whoohoo!)
765         - added initial release version of rpm/barry.spec (aka bcharge.spec)
766                 This begins the barry binary release, currently only
767                 including the bcharge utility, but possibly more in
768                 the future.  Future binary packages will likely include
769                 libbarry, libbarry-devel, etc, which barry will then
770                 depend on.
771         - added udev rule script for BlackBerry devices
772         - added man/ directory and bcharge.1 manpage
773         - added debian/ directory for building deb packages, with initial
774                 package scripts
775         - added rpm/make-rpm-tarball.sh for building RPMs
776         - split out technical docs into separate libbarry.docs file for
777                 a future Debian install
778         - added more cleaning to buildgen.sh
779         - added new udev rule file for Debian stable
780         - hardcoded g++ to 3.3 in debian/rules as I have multiple versions
781                 on my system and need to compile releases with stable
782 2006/12/21
783         - ported Barry to use the stable branch of libusb
784                 NOTE: no longer depends on the devel libusb tarball!
785                         Just use your distro's libusb packages.
786         - fixed more endian issues
787         - minor update to TODO
788 2006/12/15
789         - moved Exceptions, Hacking, and VersionNotes to doc/
790         - added doc/USB-capture.txt
791 2006/12/08
792         - added Controller::AddRecord() and template helper
793         - added beginning version of generic RecordFetch<> template
794         - set default of Barry::Init() to false (no data dump mode)
795         - added examples/ directory, with first addcontact.cc example
796 2006/12/07
797         - added autoconf support based on Peter McAlpine's patch
798         - renamed Makefiles to Makefile.orig and added script to turn
799                 on old build system if wanted
800         - fixed boost-specific error path in btool
801         - moved platform specific code out of time.h and into time.cc
802         - moved btool.cc, translate.cc, and upldif.cc out of src/ and
803                 into their own tools/ subdirectory
804         - added NEWS file to make autotools happy
805         - added a "clean" option to the buildgen.sh script... maintainer's
806                 use only
807         - reworked autoconf and automake files, to support
808                 barry as a library, to move the programs into their
809                 own tools directory, and support a proper installation
810         - fixed headers in parser.h, btool.cc, and upldif.cc to work
811                 properly when installed standalone
812         - added tools/Makefile.plain for testing compiling against
813                 installed barry library
814         - added commentary on version number system
815         - removed Makefile.conf and Makefile.orig, as new autoconf
816                 system supercedes it
817         - added support for boost serialization library in autoconf build
818         - added library version number to autoconf build
819         - changed boost flag to __BARRY_BOOST_MODE__ to avoid collisions
820         - removed debug.h dependency from btool.cc
821         - removed libusb check in favour of specific --with-libusb
822                 option... may need to revisit this later
823         - quick installation update in README
824 2006/12/01
825         - fixed some missed endian conversions in record.cc and added
826                 some size checks
827         - fixed endian issues in time.h
828         - added 2 more functions to the time zone API, and adjusted
829                 the time zone table for better defaults in North America
830         - added btool and upldif to the make install sequence
831         - added support for Calendar recurrence data
832         - small doc/TimeZones.txt update
833 2006/11/24
834         - added BlackBerry time zone code list, reverse engineered from a 7750
835         - added GetTimeZone() to convert device time zone codes to useful data
837 Release: version 0.0.3 - 2006/11/24
838 ------------------------------------------------------------------------------
839 2006/11/23
840         - added return code check to Controller::SaveDatabase()
841         - fixed Data() class constructor, so it doesn't auto-convert
842                 from any int
843         - fixed size checking bug in Packet::ReturnCode() that caused
844                 uploading to device to fail
845 2006/11/10
846         - added Exceptions doc file, documenting the C++ exceptions used,
847                 and their hierarchy
848         - fixed small bug in 'make install' which didn't build first
849         - minor documentation and cleanup in upldif.cc
850         - added utility functions to the RecordStateTable class,
851                 GetIndex() and MakeNewRecordId()
852         - changed btool so that the -d command modifiers can be
853                 specified multiple times to work with multiple records
854                 at once
855         - added Calendar sync code to the opensync module (not complete)
856         - cleaned up exception handling in the opensync module, making
857                 more use of the base exception to make sure no
858                 exceptions leak into the C library code
860 Release: version 0.0.2 - 2006/10/12
861 ------------------------------------------------------------------------------
862 2006/10/12
863         - fixed casting error in opensync module
864         - minor updates to documentation to prepare for release
865 2006/09/29
866         - added stdint.h to parser.h for uint32_t.  Thanks Ron Gage for
867                 the bug report
868 2006/09/08
869         - large refactoring of the packet parsing and building code,
870                 splitting the code into 3 groups:
871                 - record: handles record specific parsing and building...
872                         this is mostly subfields with CommonField structs
873                         as their headers, but sometimes has a specific
874                         header of its own, in the case of email
875                         Note: email's header is as yet undecoded.
876                         Record does not know the details of the packet
877                         formats, only the formats of its own record data.
878                 - packet: handles building of complete command packets
879                         and handles parsing of commonly used header values,
880                         providing an API for it... packet does not know
881                         the record format details, but does know the
882                         details of each Database Operation (protocol.h)
883                         packet format.
884                         So far, it seems that there is a real separation
885                         of operation formats and record formats, with the
886                         record formats being the same even with different
887                         database operation codes (GET_RECORDS /
888                         OLD_GET_RECORDS), which was not confirmed before.
889                         See the header size of the email record after
890                         refactoring.
891                 - controller: handles device state, and the management of
892                         sockets, commands, and checking for response values.
893                         The Controller object does not know the format
894                         of either the record or the packet it is sending,
895                         but does know the protocol handshake logic used
896                         to talk to the device.
897         - implemented SetRecord (SET_RECORD_BY_INDEX)... syncing, here
898                 we come!
899         - spelling correction in opensync-plugin/AUTHORS
900 2006/09/01
901         - added sample hotplug scripts
902         - added .cvsignore files for doxygen and opensync directories
903         - added src/endian.h... still need to add configure support to
904                 handle non-little-endian machines
905         - added exception handler in opensync plugin commit_change()
906         - removed the device reset code in probe.cc, as resetting a device
907                 can renumber the devices in /proc on kernel 2.4.x,
908                 and cause a failure to reach the device...
909                 FIXME - this should be changed someday to reset if probing
910                 fails, and restart the probe on reset, as sometimes
911                 the blackberry devices respond differently when not reset
912                 Ideally, the probe protocol should be properly reverse
913                 engineered.
914         - added support for retrieving record state table, which is needed
915                 for smarter syncing
916         - added support for retrieving, deleting, and clearing the dirty
917                 flags of individual blackberry device records
918         - added endian macros throughout the code
919 2006/07/13
920         - added opensync-plugin to root Makefile's clean
921         - updated time conversion calls to match opensync's latest SVN
922         - added opensync_change_set_changetype() (only add for now,
923                 for development)
924         - removed slow sync functions for now
925 2006/07/07
926         - added quick "install" makefile target, to src/install by default
927         - added static library target... this is temporary until autoconf
928                 stuff is added properly... needed for the opensync plugin
929         - documented in comments that Barry::BError is intended to be
930                 the base classes for all exceptions
931         - added first round of implementation of an opensync plugin, based
932                 on the example plugin code from the opensync sources
933 2006/06/22
934         - added to Contact record class:
935                 - Clear()
936                 - ReadLdif() to load and parse LDAP data
937         - added fragmented send support to Socket class
938         - added Probe::FindActive() to make client programs more streamlined
939         - fixed hex/decimal printing of record counts in btool
940         - added upldif.cc, a utility to take ldapsearch output on stdin
941                 and upload it to a blackberry
942         - updated src/.cvsignore
943 2006/06/16
944         - added parsing of service book fields:
945                 - old and new name
946                 - old and new unique ID (UID)
947                 - content ID (CID)
948                 - old and new description
949                 - DSID
950                 - bes domain / domain
951         - date change in legal.txt
952         - added initial parsing of ServiceBook field 0x09, and calling it
953                 ServiceBookConfig for now, for lack of a better name
954         - added parsing for ServiceBook field 0x02 on 72xx Blackberries...
955                 seems to be a name or description, but doesn't appear
956                 in the device's own GUI... called "Hidden Name" for now
957 2006/06/09
958         - added ServiceBook record class and parser code, based on some
959                 of Ron Gage's reverse engineering... code is by Chris Frey
960         - added AUTHORS file
961         - fixed the libusb set_configuration/claim_interface order
962                 bug in controller.{h,cc}... already fixed in probe,
963                 but not controller.  Thanks Ron Gage for finding this.
964 2006/05/25
965         - renamed Changelog to ChangeLog in preparation for autoconf
966         - renamed Todo to TODO in preparation for autoconf
967 2006/05/18
968         - make clean cleans up tests properly now
969 2006/03/31
970         - turned source code browsing on in Doxyfile
971         - added LoadDatabaseByName() and LoadDatabaseByType() template members
972                 to the Controller class
973                 - new file: controllertmpl.h
974         - documentation fixes in builder.h
975         - added static GetDBName() functions to all record classes, in
976                 support of the template Controller functions
977         - fleshed out DatabaseDatabase::GetDBNumber() and GetDBName(),
978                 returning errors properly
979         - documented sample btool.cc code better, and added example
980                 of Controller template member usage
981 2006/03/29
982         - copyright dates updated for 2006
983 2006/01/05
984         - backed out update to latest libusb DEVEL tree, since it is buggy.
985                 Stick with libusb 2005/11/26
986 2005/12/30
987         - added clean target to convenience Makefile
988         - added Boost to list of dependencies in README
989         - fixed minor compile warnings in base64.cc
990         - fixed new USB discovery code, and changed endpoint usage to use
991                 it, instead of the READ_ENDPOINT and WRITE_ENDPOINT
992                 constants... constants are now removed
993                 common.h, controller.cc, probe.cc, probe.h, usbwrap.cc
994         - added ClearHalt() to Usb::Device (usbwrap.cc)
995         - updated usbwrap.h to match latest libusb CVS devel tree
996         - updated README to refer to 2005/12/30 libusb CVS devel tree
997         - added roadmap to Todo list
998 2005/12/29
999         - added convenience Makefile in root directory
1000         - added Hacking document
1001         - minor touchups to README
1002         - added caution warning to README, since this release will support
1003                 delete / overwrite / upload functionality
1004         - minor compile order change in Makefile (speed reasons)
1005         - added dynamic endpoint discovery to probe.cc
1006         - changed claim_interface/set_configuration() function call order in
1007                 probe.cc based on feedback on the libusb mailing list
1008         - added USB discovery code to usbwrap.{h,cc}
1009 2005/12/23
1010         - fixed packing bug in new upload header struct
1011         - renamed CommonField union from data to u to be consistent
1012         - added return_code field to DBAccess struct, for error checking
1013         - added response checking during upload: if response is non-zero
1014                 throw exception in controller.cc
1015         - added sorting operators to record parser classes... when writing
1016                 contact data to the device, it may be important to write
1017                 group link items last, since they reference other contacts...
1018                 This needs to be tested, and if not required, removed.
1019         - added GROUP_FLAG field code to Contact parser class
1020         - fixed offset bug in Contact and Calendar Build() functions
1021         - fixed name bug in Contact::Build(), now output only with data
1022         - added appointment type flag support to Calendar record parser
1023                 class, and "all day event" flag support
1024 2005/12/22
1025         - added autoconf to Todo list
1026         - refactored the protocol structures so that record structs can
1027                 be reused for upload and download
1028         - with new protostructs, more header control is handled by
1029                 controller.cc instead of record.cc parsers and builders
1030         - parser code now accepts an offset, to govern start of record data
1031         - changed Data sizes from int to size_t and removed casts
1032         - removed unneeded Parser::GetHeaderSize() (new protostructs make
1033                 this obsolete)
1034         - added Calendar::Build() for calendar uploads
1035 2005/12/10
1036         - added s11n-boost.h serialization templates for boost::serialization
1037         - added boost::serialization to build
1038         - minor change in usbwrap.cc to display error codes in decimal
1039         - added SizePacket special case code to Socket::Send()... this is
1040                 required when uploaded packet size is a multiple of 0x40,
1041                 a special 3 byte size packet is sent
1042         - moved some record class variables to public: so they can be
1043                 properly serialized
1044         - fixed variable name but in RecordBuilder template
1045         - added -f switch to btool, for saving and loading of record data
1046         - added -s switch to btool, for uploading saved data back to handheld
1047         - added Controller::SaveDatabase()
1048 2005/12/08
1049         - fixed potential casting / pointer bug in controller.cc
1050         - added builder.h, to support uploading
1051         - minor comment fixes in parser.h
1052         - added preliminary Contact protocol record building support
1053         - fixed field order bug in ContactRecord protocol struct
1054         - Contact record.h class now saves unknown Group Link field,
1055                 for later saving
1056 2005/12/07
1057         - added -fno-strict-aliasing to compiler flags so gcc-4.0.x won't
1058                 optimize away protocol struct casts
1059                 see: 
1060                 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25235
1061                 http://mail-index.netbsd.org/tech-kern/2003/08/11/0001.html
1062                 http://groups.google.ca/group/comp.lang.c++.moderated/ \
1063                         browse_thread/thread/e7bf096832526f8e/5714701b \
1064                         02a2a3cc?hl=en#5714701b02a2a3cc
1065         - changed headers so that any low level protocol-specific sizes and
1066                 structs are completely hidden in the library...
1067                 this adds library-only header: protostructs.h
1069 Release: version 0.0.1 - 2005/11/25
1070 ------------------------------------------------------------------------------
1071 2005/11/25
1072         - added barry.h for documentation purposes and application usage
1073         - updated README for release
1074         - renamed SBError exception class to BError
1075         - updated Doxyfile to version 1.4.5
1076         - added more doxygen comments
1077 2005/11/24
1078         - added conversion routines (and tests) between time_t and min1900_t
1079         - added -v option to btool to dynamically control protocol dumping
1080         - removed duplicated database database table display in controller.cc
1081         - minor spelling corrections
1082         - added copyright to usbwrap.{h,cc} as per earlier meeting
1083         - added support for Old protocol Calendar entries
1084 2005/11/20
1085         - added legal.txt, to save typing when adding new source files
1086         - ignore test-base64 file (cvsignore)
1087         - added contact-to-ldif generation, and updated supporting code
1088         - added argument to btool to support contact-to-ldif operation
1089         - added Contact::GetPostalAddress()
1090         - added README documentation in preparation for future release
1091 2005/11/19
1092         - added parser.{h,cc} virtual wrapper to generalize LoadDatabase()
1093         - added code to socket.cc's Packet() command to re-receive on
1094                 reception of empty packets... this seems to be a signal
1095                 from the device that it needs more time for long transfers
1096                 Current limit: 10 blank packets before exception is thrown
1097                 Observed maximum blank count: 1
1098         - added MessageRecord and OldMessageRecord to protocol.h
1099         - changed common record field structs to one CommonField struct
1100         - increased default USB timeout to 10 seconds (some loaded devices
1101                 seem to need more time...)
1102         - reorganized record.{h,cc} to try to reduce the code duplication
1103         - record.h classes now "know" the sizes of their corresponding
1104                 protocol structs... this may cause trouble down the line
1105                 with Python, if used(?)
1106         - added Message class for Email records
1107         - removed the "Get*" database functions and replaced with
1108                 general LoadDatabase() call, which loads any database
1109                 available, and parses it with a Parser object
1110         - added GetDBID() for searching for database numbers via name
1111         - added test code to retrieve and display all email
1112         - cleaned up comments
1113         - renamed blackberry.{h,cc} to controller.{h,cc}
1114         - renamed bbtool.cc to btool.cc
1115         - added Makefile.conf
1116         - added copyright notices to source files
1117         - added COPYING file with GPL
1118         - put parser in Barry namespace, and added auto_ptr-like mode for
1119                 store object pointers
1120         - added doxygen docs
1121         - added header comments to convo.awk script
1122         - removed Test() function in Controller object, and made class
1123                 better suited to its general API purpose
1124         - changed OpenMode() so it loads command table and DBDB... it is now
1125                 a public API function
1126         - moved Controller test code to btool.cc and made tool more
1127                 generically useful... can now download any DB by name on
1128                 the command line
1129         - added mode checks to Controller
1130         - added -t and -d command line options to btool
1131         - added base64 routines from John Walker / Fourmilab and Citadel/UX
1132         - converted base64 routines into an API, instead of hardcoded
1133                 file based
1134 2005/11/18
1135         - changed project name to Barry, including namespaces
1136         - renamed sbcommon.* to common.*
1137         - increased USB default timeout to 2 seconds
1138         - fixed formatting bug in Data operator<< output
1139         - cleaned up the protocol packet structs, getting rid of the
1140                 confusing param/simple split... param is now the tableCmd
1141                 from the Command Table
1142         - moved protocol structs from record.h to protocol.h
1143         - added support for older version of the USB protocol, which matches
1144                 the Cassis spec more closely
1145         - fixed the hardcoded offsets in blackberry.cc's protocol parsing
1146         - fixed Socket::Close() so on error, socket flags are reset.
1147                 This stops Close() from being called twice on exception
1148                 destructors
1149 2005/11/17
1150         - added Doxyfile to the project
1151         - tuned Makefile
1152         - added mode selection support to Blackberry class (RIM Desktop,
1153                 RIM Bypass, and RIM_JavaLoader)
1154                 Mode selection governs which socket is used in subsequent
1155                 data transfers.
1156         - added Command Table parsing and protocol support
1157                 Blackberry class, and CommandTable record class
1158         - added Database database parsing and protocol support
1159                 Blackberry class and DatabaseDatabase record class
1160         - added Address book retrieval support - dumps data to stdout for now
1161         - fixed bug in CopyOnWrite mode in Data class, where could allocate
1162                 less buffer than data copied
1163         - added "easy exception" debug output macro
1164         - fixed minor spelling error in protocol.cc
1165         - fixed ModeSelectCommand protocol structure - it is not a parameter
1166                 command, but uses the unknown slots for socket and flag
1167                 data
1168         - removed hardcoded socket numbers from protocol.h
1169         - fixed bug in socket.cc:Open() where packet size was not properly
1170                 saved
1171         - implemented socket::Close()
1172         - fixed sequence number checks, so it is reset properly on socket 0
1173         - added Socket::NextRecord() for multiple record data transfers
1174         - fixed input handling bug in translate.cc
1175 2005/11/11
1176         - added .cvsignore files to project
1177         - added README notes to document the source architecture
1178         - added dbsetup data script, which shows how to get into database
1179                 mode, using the RIM Desktop mode, and open a socket
1180         - added blackberry.{h,cc} class
1181         - added command line parameters to bbtool.cc
1182                 -l = list only
1183                 -p = specify pin of blackberry device
1184         - added blackberry test code in bbtool.cc - debugging the initial
1185                 opening protocol: sockets, modes, etc... see dbsetup for
1186                 results
1187         - added copy-on-write functionality to Data class, so it can be used
1188                 with plain data buffers with little performance impact
1189         - added eout() and ddout() debugging - to separate:
1190                 - regular debug output
1191                 - exception debug output (should probably be logged to
1192                         syslog someday, and never turned off)
1193                 - raw data dump output
1194         - changed errno SBError exception handler to try to decode the error
1195                 numbers into english (limited success)
1196         - fixed probe and socket USB Bulk message handling, so they don't
1197                 use PollCompletions(), but use IO::Wait() (libusb_io_wait())
1198         - added common packet size checker in protocol.cc
1199         - fixed unpacked protocol packet structs... using gcc's
1200                 __attribute__ ((packed)) ... see protocol.h
1201         - added ModeSelectCommand structure (protocol.h)
1202         - finished Socket::Open() call  (Close() not yet implemented)
1203         - moved Socket::Send/Receive() out of private, as they can be used
1204                 for socket 0 operations.
1205         - cleaned up pointer management with macros:
1206                 MAKE_PACKET()
1207                 COMMAND()
1208                 IS_COMMAND()
1209         - added IO::Wait() and IO::Cancel() to correspond with libusb API
1210         - added datadumping in usbwrap for easy protocol capture
1211         - added preliminary record.{h,cc} classes
1212         - added Contact record parsing, and test code
1213 2005/10/20
1214         - syncberry tree started