lib: added belt-and-suspenders fix to usb Read functions
[barry.git] / ChangeLog
blob383b35daa6dbb8ca9b8b20474b25dba36a871d5c
1 Release: version 0.17 - 2010/01/??
2 ------------------------------------------------------------------------------
3 2010/09/21
4         - merged constant and timeout fixes from Toby Gray
5         - lib: added belt-and-suspenders fix to usb Read functions
6                 This is to avoid the possibility of inappropriate asserts
7 2010/09/20
8         - removed ppa_build.sh per request by Martin Owens
9         - debian: added autopoint to build deps
10                 The new Debian Squeeze and Ubuntu Maverick have split out
11                 the autopoint script from the gettext package.  On systems
12                 with gettext 0.18 or newer, we require autopoint, and hope
13                 that autopoint depends on gettext.
14 2010/09/19
15         - further split up the m4 directories to make the submodules
16                 yet more independent
17         - debian: added back the autoreconf targets, but not cleanup targets
18 2010/09/18
19         - debian: remove all autoreconf and cleanup targets
20                 Having the debian/rules files try to manage their own
21                 autoreconf is too much of a headache.  Binary packages
22                 should start with a valid autoconf and gettext / autopoint
23                 system already in place.
24                 This patch removes any temptation to believe otherwise.
25                 If you have been building source packages from git
26                 already, just add a call to "./buildgen.sh" before your
27                 debian binary build.
28         - maint: overhaul of release / test build scripts
29                 Made scripts configurable by user, in case others have
30                 chroot build systems of their own.
31 2010/09/16
32         - debian: updated rules to allow for building with an external debian/
33         - applied Martin Owens' patch to add a debian directory to
34                 the opensync-plugin-0.4x plugin
35         - debian: moved 0.22 plugin packaging to its own directory
36 2010/09/15
37         - set AC_CONFIG_AUX_DIR to [.] instead of parent directory, to make
38                 the submodules more independent
39         - lib: fixed Makefile.am to install semaphore.h and scoped_lock.h
40                 This is needed for the raw channel code.
41 2010/09/11
42         - added -A option to bjavaloader save
43 2010/09/07
44         - added hardware contribution section to AUTHORS
45 2010/09/03
46         - merged Toby Gray's and Adrian Taylor's RAW channel support code
47         - updated debian binary package with brawchannel and examples and
48                 ppp chat scripts as docs
49         - updated rpm barry.spec with brawchannel and ppp README
50 2010/08/31
51         - os4x: optimized dirty flag clearing
52                 Clearing the dirty flags on newly updated records requires
53                 a reconnect, but it only requires one reconnect, and no
54                 reconnect it needed if nothing is written to the device,
55                 so skip the reconnect whenever possible, which makes syncing
56                 much faster
57 2010/08/30
58         - lib: use thread-safe getpwuid_r() in config file code
59 2010/08/18
60         - fixed build bug, where libbarrysync was still used even if glib2
61                 was not found on the system.  Thanks to Eric Arseneau
62                 for finding this during his Mac build testing.
63         - added LTLIBINTL and LTLIBICONV to tools/Makefile.am for systems
64                 that have separate libraries for these features, such as
65                 the Mac
66         - buildgen.sh calls libtoolize and glibtoolize now (Mac support)
67 2010/08/15
68         - lib: fixed bug in ISO timezone detection... must be in [-+]HH[:]MM
69                 format, with 2 digits for the hours and minutes
70 2010/08/12
71         - lib: added better ISO timestamp support... Now handles timestamps
72                 with dashes and colons, including timestamps with their
73                 own timezone offsets
74         - lib: fixed vsnprintf() error check bug in log.cc... and added
75                 code to allocate memory if message is too long for
76                 static buffer
77 2010/07/29
78         - applied patch from Martin Owens fixing version dependencies in
79                 debian binary packages
80 2010/07/22
81         - gettext: removed autogenerated files and generate them in buildgen.sh
82                 Not sure if the version will matter, but since gettext 0.17
83                 is the only gettext version in common use (Ubuntu 10.04
84                 doesn't even have 0.18 yet) we'll stick with it for now.
85                 Hopefully 0.18's autopoint is smart enough to update things
86                 automatically.  I don't have 0.18 to test with.
87 2010/07/21
88         - applied Nicolas Vivien's compile fix and French translation patches
89 2010/07/20
90         - sync: added 1 second wait during Reconnect() to let firmware settle
91                 This seems to help prevent the firmware hang fixed yesterday,
92                 which ultimately speeds up the whole sync
93         - os4x: reverted run-as-process undo commit... now runs as process
94                 again... I believe the timeout was the firmware issue, not
95                 an opensync issue
96 2010/07/19
97         - lib: added ability to do a USB ClearHalt() from socket level
98         - lib: added ability to override USB default timeout from controller
99         - sync: added workarounds for firmware hang issue
100                 This workaround overrides the timeout due to a firmware
101                 issue: sometimes the firmware will hang during a plugin
102                 Reconnect(), during the shutdown stage when the plugin
103                 attempts to update the device's dirty flags.  When the
104                 device hangs like this, it fails to respond to a
105                 Desktop::Open().  To work around this, we set the default
106                 timeout to 15 seconds so that we find this failure early
107                 enough to fix it within opensync's 30 second timeout.
108                 Then if we get such a timeout, we do the Reconnect again and
109                 hope for the best... this often fixes it.
110 2010/07/17
111         - lib: added tm_to_iso() to tzwrapper functions
112         - lib: vbase now has default implementation of vTimeConverter (was
113                 vTimeZone) with a simpler API, based on TzWrapper underneath
114         - lib: pulled in os4x vbase code, so both plugins are using one
115                 set of vformat code
116         - lib: added vtodo and vjournal vformat support from os4x plugin
117         - deb: added new libbarrysync library to debian binary package
118         - tools: added -V option to btool, to output in the new MIME vformat
119                 mode for records that are supported
120 2010/07/16
121         - lib: added BARRY_GCC_FORMAT_CHECK() for printf() style arg checking
122         - lib: added C-style BarryLogf() function for internal use
123         - libsync: moved vformat-related code from os22 to library
124         - lib: included tzwrapper in Barry and Barrified the namespace
125 2010/07/13
126         - os4x: undo run-as-process setting, since some tests indicate that
127                 sync will timeout
128 2010/07/10
129         - ppp: copied barry-sprint to barry-telus, which also works
130                 Thanks to Matt McGirr who confirmed it works with Telus
131         - os4x: run plugin as process... other opensync plugins seem to run
132                 better with this, and it seems like a good idea to isolate
133                 plugins as much as possible
134 2010/07/08
135         - fixed bug in both opensync plugins where they would attempt to
136                 access a database, even if it was disabled in the config.
137                 Thanks to R. Brent Clements for reporting this bug.
138 2010/06/26
139         - added Pete Zaitcev's usbmon-6, with some minor changes to
140                 remove root requirements and pretty up the hex dump format
141 2010/06/12
142         - applied chat scripts for Orange Spain from Adrian Gibanel
143         - updated debian and rpm packages with new chatscripts
144 2010/06/04
145         - os22: ported Nicolas Vivien's multi-calendar patch to 0.22 plugin
146                 From commit: eb4d68df8d06f734e79e13ea05f7755aa5b0a5f3
147                 This patch is untested with multiple calendars as I don't
148                 have a device for such testing, but is identical to
149                 the 0.4x plugin code.
150 2010/06/03
151         - doc: added wireshark USB capture method to USB-capture.txt
152         - lib: added GetStore() access function to RecordParser template class
153         - lib: Improved the record class operator<() member functions, basing
154                 the sort order on multiple fields in many cases.  This should
155                 produce a fairly stable sort for a given data set, regardless
156                 of RecordId.  This should be useful for scripted tests.
157         - tools: Added -I command line option to make use of new sort order
158         - man: Updated btool manpage
159 2010/05/29
160         - applied 3 patches from Nicolas Vivien that add:
161                 - Calendar - All parser
162                 - special handling for syncing of multiple calendars
163                 - compiler fixes
164         - lib: updated src/s11n-boost.h with new CalendarID and CalendarAll
165         - lib: refactored Calendar*::Dump() functions
166                 note: this introduces a change in my earlier policy that
167                 avoided virtual functions in the record classes...
168                 the duplicate code overhead is just too heavy, and
169                 I think I was wrong to be afraid of virtual functions
170                 in containers anyway... vive la virtual! :-)
171 2010/05/28
172         - rpm: added Fedora 13 support, and cleaned up conditionals
173         - udev: fixed permissions issue, so device shows up in lsusb
174                 output even for users not in plugdev
175         - applied two patches from Nicolas Vivien, one fixing a precision
176                 bug in BuildField() and another adding a 64bit BuildField()
177 2010/05/13
178         - lib: fixed compile error in j_message.h
179                 Thanks to Raymond Blostein for the bug report and the
180                 link to the explanation of the C++ standard change:
181                 https://bugs.launchpad.net/inkscape/+bug/522327/comments/1
182 2010/05/11
183         - ppp: cleaned up ppp options files and put notes in README
184                 Thanks to feedback from Matt Machado for Rogers specific
185                 notes, and for recommendation to have one copy of
186                 comments for the PPP options.
187 2010/04/19
188         - lib: added LDIF mapping support for Contact::Image fields
189         - lib: fixed signed extension bug in base64 encoder
190         - sync: ported Photo support from 0.4x plugin to 0.22 plugin
191 2010/03/30
192         - updated Fedora and Mandriva maintainer info
193 2010/03/18
194         - added chat script for FIDO from Sujay D'Souza
195 2010/03/11
196         - added Probe::Find(), for simple searching of probe results
197 2010/02/09
198         - added message during restore, to let user know that the erased
199                 database was restored (requested by Pierre Pietri)
200 2010/01/29
201         - added product ID 8001 (Pearl Flip) to udev rules
202 2010/01/26
203         - examples: added dbdump.cc example for extracting database data
204         - bumped the copyright dates for 2010
205         - added F12 build target to maintainer scripts
206         - added missing BXEXPORT to src/configfile.h that shows up
207                 on ubuntu 7.10
208         - added headers to sources list in src/Makefile.am, since header
209                 changes didn't always cause a library rebuild
210 2010/01/15
211         - updated barry.spec to install 69-blackberry.rules on Fedora 12
212                 note that this further breaks the opensuse build, but
213                 that is not currently supported anyway, due to lack of time
214         - doc: added notes on tools to use for building RPMs in homedir
215 2010/01/04
216         - udev: added 69-blackberry.rules for Fedora 12 systems. Thanks
217                 to Nathanael Noblet (list email dated 2009/12/30)
218                 for hunting this down!
219 2009/12/15
220         - lib: added operator==() to ProbeResult, and operator!= to Pin
221         - os22: fixed bug while loading opensync config file (may not load
222                 the pin number correctly, or may rely on luck)
223         - added 'addmemo' example, to test newline behaviour
224         - lib: Memo::Dump() now translates \r chars into prettier output
225                 Requested by Michael Brown
226         - doc: added some notes on how to tether via Bluetooth
227 2009/12/04
228         - tools: added libbarry to bdptest build (needed on opensuse?)
229 2009/12/03
230         - lib: added GetKey/SetKey support in GlobalConfigFile
231 2009/12/02
232         - gettextize BarryBackup by Nicolas VIVIEN
233         - lib: added support for a global config file
234                 Barry::ConfigFile now supports a per-device configuration (as
235                 usual) as well as a global config file.  Both are loaded
236                 by default, but they can be saved and loaded separately.
237                 This new global config file is for global defaults,
238                 preferences, etc.
239         - lib: added IsVerbose() API call
240         - lib: added VerboseLogging setting to global config
241         - lib: made Probe results more storage friendly
242 2009/11/27
243         - made Barry::Init() safe to be called multiple times
244         - added Barry::Verbose() for controlling debug output on the fly
245 2009/11/26
246         - moved the Pin and ConfigFile classes from gui/ to the library
247         - Probe now loads ConfigFile's device name if available
248 2009/11/24
249         - added '-P' password option to upldif tool, and updated manpage
250                 including applying Nicolas Vivien's bugfix patch
251         - applied Nicolas Vivien's "NOT_ENOUGH_MEMORY" javaloader patch
252         - added gettext support to RPM and DEB packages
253 2009/11/19  
254         - gettextize by Nicolas VIVIEN
255 2009/10/02
256         - doc: added list of reasons why to submit patches, and notes
257                 on how to create a forked tree on repo.or.cz
258 2009/10/01
259         - removed redundant library dependencies from autoconf build
260         - version bump:
261                 - configure.ac
262                 - src/Makefile.am
263                 - src/version.cc
264                 - gui/src/BackupWindow.cc
265                 - Doxyfile
266                 - rpm/barry.spec
267                 - debian/changelog
268                 - opensync-plugin/src/barry_sync.cc
269                 - opensync-plugin-0.4x/src/barry_sync.cc
271 Release: version 0.16 - 2009/10/01
272 ------------------------------------------------------------------------------
273 2009/09/30
274         - added PNG generated icon based on SVG source files
275         - added barry logo to barrybackup-gui Debian and RPM packages
276         - applied new barry logo and icon from Martin Owens
277         - gui: use short barry URL in About box
278         - gui: fixed bug where actual finished records were overwritten
279                 with the starting total... don't overwrite the actual
280                 with the estimated
281         - gui: added thread state, to determine what operation finished
282                 Also improved status message, specifying exact operation
283         - gui: added code to check that actual # of backed up records
284                 matches the total number reported by the device, and
285                 display a warning to the user if they don't match
286         - www: added known issue about international chars and protocol change
287 2009/09/29
288         - os4x plugin: updated for the pkgconfig libopensync -> libopensync1
289                 rename
290         - added bjdwp.1 manpage
291         - added bjdwp and manpage to rpm and debian packages
292         - added bash and zsh completion scripts to debian & rpm packages
293 2009/09/26
294         - gui: fixed status text during restore (said "Backup" instead
295                 of "Restore")
296 2009/09/24
297         - updated various URLs to point to netdirect.ca
298         - lib: moved vSmartPtr<> from opensync plugin code to main library
299         - lib: fixed memory leaks in vSmartPtr (doh!)
300         - lib: added vLateSmartPtr<> for setting of FreeFunc after construction
301 2009/09/18
302         - updated opensync 0.4x plugin to compile against latest SVN
303                 - removed unneeded osync_error_unref() from get_sync_info()
304                 - updated plugin to support the new OSyncError** arguments
305                         scattered all over the code
306 2009/09/17
307         - added IRC info to contact www doc page
308 2009/09/16
309         - changed all the ancient SYSFS{} keynames into ATTRS{} keynames
310                 in all udev rules files
311         - added udev rule for BB Tour Product ID 8007
312                 Thanks to Theodore Charles III for testing and suggested
313                 rules.
314         - removed obsolete duplicate SUBSYSTEM keynames from udev rules
315         - created new cross-distro udev rules set, with documentation
316                 in udev/README
317         - updated deb and rpm package rules with new udev rules set
318                 note: opensuse needs work
319 2009/09/15
320         - merged Josh Kropf's brimtrans fix: 59abfa6959eb350221fa56a03ba5816
321         - applied bash-completion scripts by Ryan Li
322 2009/09/14
323         - merged Josh Kropf's compile fixes
324         - applied zsh missing bracket patch from Ryan Li
325 2009/09/11
326         - merged Nicolas Vivien's debug parser lib updates
327                 with change:
328                 - fixed API spelling typo and capitalization
329         - added firmware upgrade to TODO list
330         - added checks for pthread function errors in Thread class
331         - moved #defines out of public dp_codinfo.h into dp_codinfo.cc
332                 Applications probably don't care about these.
333         - changed string arguments to const references
334         - added STL-style typedefs to list classes to make looping easier
335                 and easier to change types if needed
336         - added libbarrydp as dependency for libbarryjdwp
337         - replaced direct cout usage with dout() in dp_codinfo.cc
338                 - added Barry::Init to bdptest.cc, defaulting to verbose
339                   mode, to keep the same behaviour as expected
340         - use more generic std::istream in dp_codinfo, instead of ifstream
341         - use references with iterator looping to avoid copies, and
342                 use const where appropriate
343         - added typedef for j_server.cc's ConsoleCallbackType
344         - tightened up member variable init and cleanup in JDWServer class
345         - added exceptions in JDWServer class where marked TODO
346         - made setup sequence dependent on previous steps, in acceptThread,
347                 so that the logic doesn't assume success where it could
348                 have failed
349 2009/09/10
350         - added copyright notices to all source files in bjdwp/
351                 This is based on the initial README included in
352                 the patches from Nicolas Vivien stating that bjdwp
353                 was under the GPL.
354         - added GPL license as file bjdwp/COPYING, since bjdwp is
355                 somewhat standalone, like the plugins and the gui
356         - bjdwp: removed jdwplog() in favour of identical barryverbose()
357         - bjdwp: moved into main tree from bjdwp/ and created two new
358                 libraries: libbarrydp and libbarryjdwp
359 2009/09/09
360         - fixed potential loss of serial data during PPP init
361                 when seding the AT test, usually the OK response is
362                 sent to the callback, but if the expected non-serial
363                 response doesn't appear, the OK is lost... this fix
364                 passes the OK to the callback, which fixes some chatscript
365                 behaviour
366         - gui: updated web documentation and screenshots
367 2009/09/08
368         - changed wording on GUI reload button to clarify what it does
369         - added documentation on how to change the theme for GTK+ apps
370                 when not using the Gnome desktop environment
371         - fixed broken links in web doc generation
372 2009/09/05
373         - applied backup GUI patches from Ryan Li:
374                 - resolved crash while disconnecting from no devices
375                 - added confirmation dialog before quitting
376         - gui: handled case where the user exits via window manager Close
377                 button
378                 - also refactored 'working' confirmation logic
379 2009/09/04
380         - fixed socket RawReceive verbose log message
381                 when reading from the default queue, the queue knows the
382                 endpoint, not the socket object
383 2009/09/03
384         - added version output when -v is used in pppob
385 2009/09/02
386         - fixed syncing of 8 contact phone numbers. Reported by
387                 Ian B. MacDonald, 2009/08/22
388         - ported above syncing fix to opensync 0.4x plugin
389         - applied Martin Owens' Barry logos 'patch'
390 2009/09/01
391         - applied chatscript patch from Andrew Nording
392                 Sourceforge tracker #2848549
393         - added KPN chatscripts to DEB and RPM binary packages
394         - added KPN to script list in doc/www/modem.php
395         - pulled from Nicolas Vivien: a909925ef6bf3d75b1597a9ddd16f52201690cbb
396                 Fixes for library and bjdwp documentation
397         - moved bjdwp/doc/* to doc/bjdwp/ to keep docs in one spot
398 2009/08/31
399         - pulled from Nicolas Vivien's repo.or.cz repo: bjvmdebug support
400                 With rebase changes and fixes to library.
401                 Fixes to library:
402                 - fixed buffer size checks in m_jvmdebug.cc
403                 - used #defines instead of hard coded numbers where possible
404                 - added FIXME to tidy up the Unknowns in the API
405                 - commented out Mode::Close(): not convinced that applications
406                         should have to worry about socket-level details
407                 - added #define for JVM STOP command
408                 - removed unused Socket::PacketJVM() functions
409                 - made sizeof check in JVMPacket::Size() more specific
410                 Rebase changes:
411                 - removed executable chmod bits from BarryDemo java samples
412                 - removed copyrighted Sun documentation from bjdwp/doc/
413         - fixed longstanding buffer size check bug in CheckSize()
414         - updated AUTHORS
415         - applied Ryan Li's latest threaded GUI patch (2009/08/25 email)
416                 - gui: added a wrapper around pStatusbar->push() to avoid
417                         the never ending push syndrome
418         - gui: added PIN to the "please name new device" dialog
419         - gui: added statusbar workaround: normally the statusbar shows
420                 Ready after initialization, but since the initial Scan()
421                 happens right away, and the statusbar doesn't seem to
422                 update the screen until the handler is finished,
423                 we update the status bar during init instead
424 2009/08/30
425         - applied Martin Owens' ppa_build.sh patch
426         - added version output when -v is used in btool
427         - changed USB verbose bus tree dump (i.e. btool -v) so the
428                 hex/decimal values look more like lsusb -v output,
429                 for ease of debugging
430 2009/08/29
431         - version bump:
432                 - configure.ac
433                 - src/Makefile.am
434                 - src/version.cc
435                 - gui/src/BackupWindow.cc
436                 - Doxyfile
437                 - rpm/barry.spec
438                 - debian/changelog
439                 - opensync-plugin/src/barry_sync.cc
440                 - opensync-plugin-0.4x/src/barry_sync.cc
442 Release: version 0.15 - 2009/08/28
443 ------------------------------------------------------------------------------
444 2009/08/28
445         - added binary build for Ubuntu 9.04 to maintainer scripts
446 2009/08/27
447         - added binary build for Fedora 11 to maintainer scripts
448 2009/08/21
449         - updated www documentation for upcoming release
450         - applied Nicolas Vivien's phone duplication patch (opensync 0.4x)
451         - fixed missing conflict check in vcard code in opensync 0.4x plugin
452         - backported new TYPE parsing code from opensync-0.4x plugin to
453                 old opensync 0.22 plugin
454         - added X-EVOLUTION-UI-SLOT support in both sync plugins to retain
455                 phone number order
456 2009/08/17
457         - added pin and password command line support to bfuse
458         - updated bfuse man page
459 2009/07/29
460         - added border to barrybackup doc images
461 2009/07/28
462         - updated license and URL in barry.spec
463         - updated barrybackup Credits dialog to reference AUTHORS file
464         - updated barrybackup.1 man page
465         - updated doc/www scripts to generate more dynamic pages,
466                 so subheaders are not hard coded... this helps support
467                 updating the new NetDirect website
468         - commented out out-of-date docs in hacking.php
469         - marked milestone 4 complete (javaloader)
470         - linked device compatibility list from index.php
471 2009/07/10
472         - changed pppob to report if Serial was fallback or command line
473         - started device compatibility list in web docs
474 2009/07/07
475         - applied Ryan Li's GUI enhancement patches, which let the user
476                 switch devices without restarting, with fixes:
477                 - reorganized BackupWindow.glade for better spacing
478                         - fixed width issue (main window was set to 275
479                           width, which made things too narrow on Debian
480                           Lenny
481                         - moved buttons beside the drop down box, to
482                           mimic old GUI behaviour
483                         - added space around the middle controls, but
484                           not around the menu bar or status bar, which
485                           should be right against the outer window.
486                 - renamed m_device_num to m_device_count for clarity
487                 - changed m_device_count to unsigned int to fix compiler
488                   warnings
489                 - removed gtkmm call to unset_model()
490                   The function unset_model() is only available in gtkmm
491                   2.16, and Debian Lenny only has 2.12, and won't compile.
492                   Since set_model() automatically does the unset for us,
493                   just reorganize the calls so Lenny is supported.
494 2009/07/06
495         - applied Ryan Li's SMS clarification patch
496 2009/07/02
497         - added Martin Owens' new Ubuntu PPA link to docs
498         - added DEPUTY documentation and updated AUTHORS
499 2009/06/30
500         - documentation updates
501                 - added SMS to list of parsers in documentation
502                 - updated sync notes for Fedora 9 and 10 in documentation
503                 - removed Martin Owens' PPA binary package link, since
504                         I can't find the binaries anymore
505         - reverted commit 2d0e60d1: put hal fdi files back
506         - updated HAL FDI files for Fedora 11
507                 - duplicated directory hierarchy under hal
508                 - added 19-blackberry-acl.fdi to add the access_control
509                         capability to blackberry devices when they are
510                         plugged in.  As long as this file is under
511                         the 10osvendor directory, then
512                         20-acl-management.fdi runs after it, adding
513                         the hal-acl-tool callout, which does the low
514                         level getfacl/setfacl work on the /dev/bus/usb/*/*
515                         device file.
516                 related thread:
517         http://lists.freedesktop.org/archives/devkit-devel/2009-June/000247.html
518         - changed hal fdi policy to use "pda" instead of "scanner"
519         - applied Ryan Li's 7-bit GSM conversion patch for SMS records
520         - applied Ryan Li's barrybackup patch: can now select backup path
521 2009/06/26
522         - fixed install location of hal fdi files in debian and rpm
523                 HAL reserves /usr/share/hal/fdi/information/10freedesktop
524                 for files that the project itself distributes, so
525                 we get to use 20thirdparty.
526 2009/06/24
527         - cleaning up autoconf warnings on Fedora 11
528         - changed buildgen.sh to run libtoolize first for all subprojects,
529                 otherwise, a later project's run may copy files into ../m4
530                 after having created configure for a previous project.
531                 This would cause a makefile discrepency during the build
532                 on some systems (Fedora 11), and cause configure to be
533                 incorrectly regenerated mid-build, due to timestamps.
534 2009/06/21
535         - updated dependencies documentation page
536 2009/06/20
537         - added BadPacket exception, for socket errors that need to meddle
538                 with the response code
539         - added special case for JavaLoader's Goodbye packet
540                 On older devices, such as the 7750 and 7130, they respond
541                 with a NOT_SUPPORTED error instead of an ACK, for Goodbye
542                 packet commands.  This is seen in Windows traffic as well,
543                 so should not be considered an error.  Thanks to Josh Kropf
544                 for confirming this protocol behaviour.
545         - updated socket.cc to use new BadPacket exception where appropriate
546         - pulled from Josh Kropf: 0f1cca2fa69d0810d439ade4fb3dd0dfa15c89a6
547                 - fixed size issue with deviceinfo command on 7130 devices
548 2009/06/19
549         - reworked autoconf rules to handle every kind of Boost dependency:
550                 - let user enable/disable from configure, default to
551                         disable, but error if enabled and not available
552                 - let user specify separate include and lib paths, since
553                         some Boost installations have an additional
554                         boost-1.34.1 style directory in them
555                         - default to no path overrides, using system defaults
556                 - let user specify name of serialization library, since
557                         the name of the library can change whether you're
558                         building from source or not
559                         - default to searching for boost_serialization or
560                                 boost_serialization-mt, and error if not found
561                 - New configure switches are:
562                   --enable-boost                   Handles enable/disable
563                   --with-boost-include=path        Override the include path
564                   --with-boost-lib=path            Override the lib path
565                   --with-boost-serialization=name  Override the name of
566                                                    serialization library
567                                                    to link with
568         - updated documentation, build test, and binary packages to use
569                 new switches
570 2009/06/18
571         - added non-backward-compatibility note to man/btool.1
572         - applied Nicolas Vivien's LDIF patches, clarifying split
573                 between work and home addresses, and adding support
574                 for the homePostalAddress LDAP field
575         - fixed missing #includes for Fedora 11.  Thanks to
576                 Nathanael Noblet for reporting this.
577         - applied Ryan Li's PPP chat script for China Mobile
578         - added barry-chinamobile chat script to RPM and Debian packages
579         - renamed blacklist-berry_charge to blacklist-berry_charge.conf
580                 for Debian sid and Fedora 11.  Thanks to Rodrigo Linfati
581                 for reporting.
582         - applied Nicolas Vivien's autoconf patch to automatically
583                 search for boost_serialization or boost_serialization-mt
584 2009/05/12
585         - applied Dr. J A Gow's category patches (task + memo)
586                 - fixed compile error when using Boost
587                 - cleaned up Categories handling:
588                         - s11n-boost.h
589                         - Dump() should be consistent across Calendar, Memo, Task
590                         - fixed i18n support to category names
591                 - cleaned up code formatting to match surrounding code
592         - moved CategoryList to its own class, and removed duplicated
593                 string conversion code
594         - removed protocol-specific MemoType and TaskType fields from
595                 their corresponding record classes
596 2009/05/09
597         - applied Nicolas Vivien's Task builder patch for the Storm
598                 and Bookmark documentation patch
599 2009/05/08
600         - applied most of Dr. J A Gow's recurring iCal sync patch
601                 - did not include the pure upper case changes, since
602                   it is an RFC bug in SynCE
603                   see http://www.mail-archive.com/barry-devel@lists.sourceforge.net/msg01109.html
604                 - added starttime to RecurToBarryCal() args, to make the
605                   prerequisites clear (StartTime must be determined before
606                   recurrence is parsed)
607                 - added check that COUNT is not zero (RFC requirement)
608                 - fixed timezone drift: using gmtime() + mktime() uses two
609                   different timezones... use localtime() + mktime()  instead
610                 - comment resizing
611                 - reformatted if/else FREQ tests into a more readable
612                   sequence, and fixed a logic error in the yearly count
613                   advance, which should only happen when FREQ == YEARLY
614         - updated AUTHORS
615 2009/05/06
616         - going through www documentation, updating for 0.15
617         - updated man/btool.1 with new -a option
618         - updated TODO list with new reality
619         - applied Nicolas Vivien's phone call log parser patches
620                 - added CallLog to s11n-boost.h
621                 - added size checks to parser
622                 - removed CallLogType, since it is protocol specific
623                 - added and tidied comments
624                 - made CallLog::Clear() match the class declaration order,
625                   fixed missing member, and used enum names to set
626                   enum defaults
627 2009/05/05
628         - applied Nicolas Vivien's task sync patches, with btool updates
629                 - fixed "VTOTO" typo
630                 - now that there's a Desktop::ClearDatabase() call,
631                   use it in SaveDatabase() to reduce code duplication
632                 - use separate vector<> clearDbNames in btool
633                   to eliminate chance of mixing -d and -a argument
634                   types and losing data
635                 - reverted VNOTE change in vformat.c
636                 - added VFORMAT_JOURNAL support to vformat.c based on
637                   r2795 of the opensync vformat plugin
638         - fixed some TimeZoneValid flag mistakes in Task and Calendar
639         - display DueDateFlag in src/r_task.cc
640         - changed vtodo.cc so DTSTART is only set if available in BB data
641 2009/05/01
642         - applied Nicolas Vivien's zsh patch
643         - applied Nicolas Vivien's memo sync patch
644                 - added MEMO_TYPE 'm' to built memo record
645         - updated btool to include new Memo builder
646         - updated config.rpath to latest from Debian stable
647 2009/04/27
648         - removed free() in tarfile.cc, since some distros have bugs in
649                 th_get_pathname() that doesn't return a freeable string
650 2009/04/22
651         - fixed some missing headers as reported by Christopher Stover
652         - applied Ryan Li's SMS body null terminator strip patch
653                 - fixed code formatting issues
654                 - added comment on why we're stripping out nulls
655                 - fixed potential single byte buffer overflow
656         - pulled from Josh Kropf: 8266c95a94
657                 added "reset to factory" command to bjavaloader
658         - split creation of deb src tarballs into separate script
659                 instead of tar-create.sh
660         - added more statements for the m4/ directory in configure.ac
661                 and Makefile.am, attempting to eliminate build warnings
662                 on FC10, as reported by Christopher Stover
663 2009/04/14
664         - applied Nicolas Vivien's sscanf patch (opensync-0.4x)
665         - wrapped OSyncList in vSmartPtr<> to automatically handle
666                 all calls to new osync_list_free() API
667         - applied Ryan Li's updated SMS parser patch
668                 - moved SMS metadata structure into its own struct
669                         in protostructs.h
670                 - fixed some endian conversion errors
671                 - added strnlen() call to avoid null terminators in
672                         the Addresses strings
673 2009/04/10
674         - added brimtrans to rpm spec file and debian install
675 2009/04/09
676         - fixed OSyncList* leak in 0.4x plugin from call to
677                 osync_plugin_info_get_objtype_sinks()
678 2009/04/08
679         - added IConvHandle, making it possible to support more than one
680                 charset in Blackberry data
681         - removed patches from opensync-plugin-0.4x 'make dist' target
682         - updated buildtest.sh for opensync 0.4x
683 2009/04/06
684         - updated man/bjavaloader.1
685 2009/04/04
686         - added Product ID 8001 for the Pearl Flip.  Thanks to John Ladan
687                 for reporting the new ID.
688 2009/04/03
689         - removed 0.22 opensync patches from 0.4x tree
690         - applied opensync Photo support patches from Nicolas Vivien
691         - renamed SequencePacket() to HideSequencePacket() for clarity
692                 This is a temporary measure... this sequence packet
693                 code needs to be cleaned up.
694         - added Photo support to examples/addcontact.cc
695         - removed try/catch from vcard/vevent, pending feedback from Nicolas
696         - applied Ryan Li's SMS record parsing patch
697                 - changed capitalization to match other code
698                 - added Sms to s11n-boost.h and required operator
699                 - added Sms to btool.cc, record.h, and Makefile.am
700                 - added size checks to the parser code
701                 - cleaned up brackets and casting
702                 - made dump output prettier (at least to me) :-)
703                 - added "unknown" state for MessageStatus, as default
704                 - cleaned up whitespace
705         - updated AUTHORS
706         - added endpoint override to Probe class while testing the 7130
707                 When using btool's -e option, the Probe class still
708                 attempted to probe endpoints as it saw fit.
709 2009/04/02
710         - fixed double-free bug in opensync 0.4x plugin
711                 Can only report error or success once in a change.
712         - updated buildgen.sh to handle ctags for multiple opensyncs
713         - fixed inverted logic when doing a hashtable slowsync (opensync 0.4x)
714         - fixed uninitialized osync_trace args in both vformat.c files
715 2009/04/01
716         - opensync 0.4x changes due to upstream API updates
717                 - removed idmap and cache code, in favour of opensync's
718                         uid mapping and hashtables respectively
719 2009/03/31
720         - opensync 0.4x changes due to upstream API updates
721                 - removed deprecated opensync header
722                 - updated 0.4x plugin to use new slow-sync API
723                 - updated 0.4x plugin to use new function registration and
724                         user data API
725                 - updated 0.4x plugin to use new sink list (API change)
726 2009/03/27
727         - changed PIN format from decimal to hex in opensync-0.4x plugin
728                 config
729         - added special case so photo data does not print raw in btool dumps
730         - fixed call to trace.logf() in plugin code... should never call
731                 a printf-like function unless you use a constant "%s"
732         - made opensync-0.4x:vformat.c's base64 routines const-correct
733         - fixed free()-crash bug in both vformat.c files
734                 When generating the resulting VCARD data, vformat.c assigned
735                 static strings to a dynamic heap list pointer, and the
736                 later free always failed.
737         - merged some changes from Jose Sogo's Debian package work
738                 - menu changes to conform with policy
739                 - renamed opensync plugin package name to match Debian
740         - added Nicolas Vivien and Josh Kropf to debian/copyright
741         - fixed uninitialized variable in SocketZero
742         - fixed memory leak in tarfile.cc
743         - fixed uninitialized time struct in bjavaloader.cc (valgrind error)
744 2009/03/24
745         - fixed typo in zsh/_bjavaloader thanks to feedback from Nicolas V.
746         - pulled from Josh Kropf: 75b1a89e8b1eb9d89bcd8b5ecbed9a47af5a8930
747                 added logstacktraces support to bjavaloader
748         - updated TODO list with "- All" database parsing
749 2009/03/13
750         - added git tag signing to maintainer scripts
751         - added signed tagging to release checklist doc
752 2009/03/11
753         - updated opensync-plugin-0.4x/README with build help
754 2009/03/10
755         - pulled from Josh Kropf: d6c3173ccd87c6223647950963da79331a68d712
756                 added deviceinfo support to bjavaloader
757         - pulled from Josh Kropf: 272f371e8bb95b6c41a8293de657da45a782736f
758                 new tool: brimtrans for dealing with RIM USB logs
759         - pulled from Josh Kropf: 7ed1df560ea7cc6a2205d8f8627c00c7aaed2294
760                 added wipe support to bjavaloader
761         - added confirmation step to bjavaloader wipe, so it is harder to
762                 accidentally wipe your device
763         - applied zsh patch from Nicolas Vivien for bjavaloader wipe
764 2009/03
765         - changes inspired from Rick Scott's XmBlackberry
766                 - event log timestamp is a time_t in milliseconds
767 2009/03/07
768         - added Mode base class for common mode class code
769 2009/03/06
770         - reorganized external links by date and topic, and added link
771                 to Nicolas Vivien's Blackberry on Linux documentation
772 2009/03/05
773         - pulled from Josh Kropf: b3d3a6f48fe008e8842c057df4a653a04b9c56ce
774                 - compile fix when using __DEBUG_MODE__
775                 - fixed timeout when calling JavaLoader::GetDir on device
776                         with zero modules
777 2009/03/04
778         - fixed embarrassing incorrect exception messages in usbwrap.cc
779                 Fortunately, these didn't affect my timeout testing.
780         - added Data::QuickZap(), so that usb read errors don't
781                 return old data
782         - inlined Data::QuickZap()
783         - added usb_set_altinterface() call to Interface class
784                 This should hopefully workaround the change in 2.6.28
785                 kernels where set_interface is not called by the kernel
786                 automatically anymore.
787 2009/03/03
788         - applied Nicolas Vivien's opensync-0.4x API patch
789 2009/02/28
790         - applied Nicolas Vivien's zsh patches
791 2009/02/26
792         - added opensync-0.4x to tar-prepare.sh maintainer script
793 2009/02/24
794         - added note about novj option issue in barry-att_cingular
795         - added gettext to documentation dependency list (for iconv.m4)
796 2009/02/20
797         - clarified bjavaloader save behaviour
798         - updated bjavaloader man page
799         - added maintainer/build as exception for test/buildtest.sh
800         - merge opensync-0.4x branch into master:
801                 2009/02/20
802                         - removed nested m4 in preparation for merge into
803                           main Barry tree
804                 2009/02/18
805                         - applied Nicolas Vivien's opensync-0.4x
806                           Calendar+Contact patch
807                 2009/02/01
808                         - applied Nicolas Vivien's opensync-0.4x
809                           porting update patch
810         - removed unneeded ChangeLog.osync
811         - added opensync-plugin-0.4x to top level configure, but not to
812                 binary packages
813         - added old emails from Ron Gage from 2006 regarding Autotext
814                 and Service Book parsing
815 2009/02/19
816         - pulled from Josh Kropf: 9b63a99867b3314b8d42212cac05a6f28860d37b
817                 - saving large modules in pkzip format
818                 - cleaned up StartStream function; use JLPacket instance
819                 - refactored SendStream; use JLPacket instance and use simple
820                         function for seeking to next cod file in input stream
821         - made following changes to Josh Kropf's patches
822                 - Added CODFILE_TYPE_SIMPLE check back in
823                 - Minor change of c_str() to data() where a null terminator
824                         is not needed
825                 - Fixed unlikely buffer overflow in m_javaloader.cc
826                         Goal: never trust outside sources of
827                         information (including that from the device) when
828                         managing our own buffers.
829                 - Removed CodFile forward declaration, since class does not
830                         exist anymore
831                 - Fixed typo in configure.ac, and made missing zlib warning
832                         more emphatic
833                 - Added clarifying comment to CodFileBuilder
834                 - Fixed potential reference bug in CodFileBuilder constructor
835                         It is possible that the const std::string& passed
836                         into the constructor is a temporary, so make a copy
837                         of it instead of just holding a reference.
838                 - Removed multi-unget call in cod.cc -- only one unget() is
839                         guaranteed in C++.  It appears that the unget is
840                         unnecessary, since the following code seeks to end
841                         and back to beginning anyway.
842                 - Added copyright line for Josh Kropf in cod.cc and
843                         cod-internal.h
844                 - Fixed incorrect zlib check, since zlib doesn't support
845                         pkg-config on most systems yet.  Changed it to
846                         use AC_CHECK_LIB, and added a --with-zlib configure
847                         option which will cause configure to halt if
848                         zlib is not available.  Added --with-zlib to
849                         binary package builds, and to build test script.
850         - added zlib to rpm and deb build requirements list
851 2009/02/18
852         - updated USB capture logs archive page with new logs from Josh Kropf
853         - applied as patch Josh Kropf's annotated javaloader-reset.txt log
854         - added note about windows registry keys to USB-capture.txt
855 2009/02/17
856         - applied Josh Kropf's patch adding support for forced erase and
857                 load while module in use, properly handling when the
858                 device requests a reset
859 2009/02/15
860         - applied Nicolas Vivien's RecordId patch for Contact class...
861                 this updates Barry to deal with the new record ID behaviour
862                 on the Storm
863 2009/02/13
864         - removed unneeded call to .c_str() in EmailAddress stream operator
865         - added support for Calendar fields: Organizer, Accepted, Invited
866         - reorganized the udev/ script directory, based on distro,
867                 and added a specific rules file for openSUSE 11.1
868         - updated Debian and RPM binary scripts to point to correct udev files
869 2009/02/07
870         - applied Nicolas Vivien's patch to fix the timeout issue on the
871                 Blackberry Storm
872 2009/02/04
873         - applied Josh Kropf's save module patch
874                 - minor whitespace fixes
875                 - removed unneeded exception (fstream closes files
876                   automatically on exit of scope, or exception)
877                 - fixed compile error with variable sized array...
878                   replaced with std::vector<> instead of memcpy,
879                   in JavaLoader::SaveData()
880                 - commented out an unused variable
881 2009/02/03
882         - commented out AT+CREG? in barry-rogers.chat, since it causes some
883                 Blackberry devices to reboot
884         - applied Josh Kropf's eventlog and clear eventlog patches
885                 - capitalized JLEventlogEntry fields, to match other
886                   record classes
887                 - use constant when parsing entry
888                 - renamed a define
889         - sweeping cleanup of record classes and clarified all constant
890                 conversions i.e. whenever converting between a protocol
891                 constant and an API constant, do it through a function,
892                 in case the constants change on the Blackberry side
893 2009/01/31
894         - applied patch of binary VSM file from Robert Yaklin
895 2009/01/30
896         - moved Nicolas Vivien's codfile code into library class API
897                 - this change avoids having packed structs exposed in
898                   installable header files, and gives the library
899                   user an easy way to work with COD files
900                 - added CodFile class
901                 - added JavaLoader::LoadApp(CodFile&)
902                 - cleaned up bjavaloader to use new API
903                 - moved codfile_*_t structs to internal header
904                 - also fixed command line status output when exceptions
905                   are caught (unrelated fix)
906         - added / updated manpages: bfuse, bjavaloader, btool
907         - added fuse to build dependencies for rpm and deb packages
908         - updated web docs, adding libfuse to dependencies page
909                 - added libiconv as well
910 2009/01/29
911         - applied screenshot and zsh patch from Nicolas Vivien
912           His git log, as posted to the mailing list, was:
913                 Remove bscreenshot binary
914                 Add screenshot option to bjavaloader binary
915                 Add comments in the code
916                 Use defines beside of integer constant
917                 Use b2hons to be compliant with evrywhat host
918                 ZSH scripts completion
919                 Use BMP structs beside of unreadable buffer !
920           His changelog notes:
921                 - add command GetScreenShot to JLPacket class
922                 - add JLScreenInfo to protocol structures
923         - updated AUTHORS
924         - minor tweaks to Nicolas's screenshot+zsh patch:
925                 - renamed DIR_ENTRY and SS_ENTRY to DATA_ENTRY constant
926                   as suggested by comments
927                 - fixed some packet size checks
928                 - whitespace fixes
929                 - removed unneeded packet.GetReceive(), since response
930                   buffer is the same as what GetReceive() returns
931                 - used AutoClose for fopen() calls in bjavaloader.cc
932                   for exception safety
933                 - removed manual buffer handling in favour of Data object
934                   in JavaLoader::GetScreenshot()
935         - removed "unknown packet" exception from Socket::PacketData()
936                 I think it is probably better to handle javaloader-level
937                 errors and codes in the JavaLoader class, not the low-
938                 level Socket class.
939         - added erase and force erase support to bjavaloader, library, and zsh
940                 - force erase is experimental
941         - applied documentation patch from Robert Yaklin on VSM file format
942                 - did slight formatting changes before applying, for 80
943                   columns, and set file to unix format instead of DOS
944         - added links to new USB capture logs from Robert Yaklin to
945                 logs.php doc page
946         - cleaned up src/Makefile.am, regarding non-install headers
947         - moved Nicolas Vivien's bitmap conversion code into library API
948                 - added bmp.h api, and moved internal structs to bmp-internal.h
949                 - added size checks and endian conversion to bitmap
950                   conversion code, so this code should run anywhere
951 2009/01/27
952         - added link Josh Kropf's 'Blackberry development in linux' blog
953                 post to doc/www/index.php
954         - added USB capture log archive page to www docs
955         - added config.rpath, needed by new AM_ICONV check
956                 Thanks to Bill Paul for debugging this.
957         - applied Nicolas Vivien's opensync plugin 0.4x patch
958 2009/01/26
959         - added template wrapper for iconv() due to casting differences on
960                 various platforms... thanks to Bill Paul for FreeBSD testing
961         - added AM_ICONV automake/autoconf check to configure.ac
962                 This should take care of checking for libc or library
963                 iconv installs, and checking the iconv() prototype for whether
964                 const is needed or not.  This removes the need for the
965                 template added earlier.
966 2009/01/25
967         - applied patch from Josh Kropf making bjavaloader's syntax more
968                 compatible with the windows version, to make cross
969                 platform build scripts possible
970         - applied Josh Kropf's settime syntax patch
971         - clarified timezone behaviour in javaloader settime
972         - added flag to JavaLoader mode class, so StopStream() is called
973                 automatically in the destructor if not called manually
974 2009/01/24
975         - added another ctor to BadSize exception class
976         - fixed bug in SocketZero where it checked sequence on packets
977                 from non-zero sockets
978         - javaloader list mode updates:
979                 - added Dump() code to directory classes
980                 - fixed size issue with JLDirEntry header size define
981                 - fixed size checks in entry parser
982                 - fixed copy before in JLDirectory, now uses vector
983                 - moved bjavaloader's Start/StopStream calls to main()
984 2009/01/23
985         - removed default argument to CheckSize() so all code specifies
986                 the size it really needs
987         - fixed bug in ParseData() that didn't copy data to receive arg
988         - adding additional javaloader commands and refactoring
989                 this is a work in progress:
990                 - added JLPacket class, encapsulating javaloader protocol
991                 - added new defines for more JL commands
992                 - refactored socket class, using PacketData()
993                         for JL, and Packet() for Desktop (still needs
994                         some work to be really clean)
995                 - began implementing new commands (SetTime())
996                 - thanks to Rick Scott for his reverse engineering effort
997                         in XmBlackBerry, which inspired this code
998         - refactored packet.cc to make JLPacket even tighter
999         - updated doc/USB-capture.txt with link to vusb-analyzer
1000                 Thanks to Martin Owens for the link.
1001         - added a set of be_*() endian swap functions, for big endian data
1002                 JavaLoader code seems to use big endian a lot.
1003         - simplified bjavaloader.cc's command line args to make room for more
1004         - cleaned up big endian code to use new be_* swap macros
1005         - added protocol and packet code for directory / subdir commands
1006         - added preliminary directory support to JavaLoader class
1007 2009/01/22
1008         - reverted experimental handshaking in IpModem, since the session_key
1009                 patch fixed Bill Paul's issue
1010         - finished adding IConverter support to r_task and r_timezone
1011         - removed r_message_base.h from doxygen RecordParserClasses group
1012         - removed unused ClassType variable from Task record class
1013         - refactored Calendar and Task record classes, creating new
1014                 RecurBase to handle recurrence data
1015         - removed FIXME in Socket::Packet(), since socket is set in Send()
1016         - cleaned up socket handling and comments in packet.cc
1017 2009/01/20
1018         - applied Nicolas Vivien's javaloader patch, fixing constant defines
1019                 and other small fixes
1020         - minor whitespace and spelling fixes to above patch
1021         - changed m_ipmodem.cc to send the session key even without password
1022                 which should help reduce the "special packets" coming from
1023                 the device.
1024                 Thanks to Rick Scott and Andy Herkey.
1025 2009/01/17
1026         - refactored pthread timeout creation into ThreadTimeout() function
1027         - added experimental handshaking to IpModem.  This is in response
1028                 to Bill Paul's email regarding what he was seeing in the
1029                 logs with the special code packets which we dropped
1030                 on the floor.  This code is to test whether this handshaking
1031                 theory is true.
1032 2009/01/16
1033         - made maintainer script make-deb-local.sh more robust
1034         - added list of target binary packages in ReleaseChecklist.txt
1035         - changed to more general Fedora link to Chris Stover's packages
1036 2009/01/15
1037         - applied Andy Herkey's ipmodem password patch for the Bold
1038         - minor fixes to above patch, and in addition to above patch:
1039                 - use sizeof(seed), instead of type, in case of future changes
1040                 - removed commented out code
1041                 - added the null password check back to SendPassword(),
1042                   for historical reasons
1043                 - removed the null and zero default arguments to
1044                   SendPassword(), since they make no sense
1045                 - added define for session key size, and added size check
1046         - added missing string.h header to src/m_javaloader.cc
1047         - updated Debian and RPM packages to include bjavaloader
1048 2009/01/14
1049         - applied Nicolas Vivien's bjavaloader patch
1050         - small fixups to above patch:
1051                 - moved cod.h from installable headers to internal headers
1052                 - whitespace edits
1053                 - copyright statement tweaks
1054                 - added blog URLs to copyright list in cod.h where parts
1055                         of the structs appear to come from
1056                 - removed unused variables to compile with strict settings
1057                 - changed char to unsigned char to fix strict compiler
1058                         warnings
1059                 - removed duplicated a/b from Socket messages, and moved
1060                         read/write text to front, in socket.cc
1061                 - added NetDirect copyright notice to bjavaloader.cc, since
1062                         it is based on btool.cc
1063                 - removed unused boost-specific code from bjavaloader.cc
1064         - more fixes to above patch: (bjavaloader.cc specifically)
1065                 - moved cod.h back to installable headers, since tools/
1066                         programs depend on it... this should be fixed
1067                         or put in the library as a COD-reading API
1068                         so that applications don't need to worry about
1069                         packed files, etc.
1070                 - fixed potential buffer overflow: removed buffer read used
1071                         to skip ahead in file, and replaced with fseek()
1072                 - changed SendAppFile() to report errors by exception
1073                         instead of by return value, which wasn't checked
1074                         anyway... and C++'d the file handle closing
1075                 - removed unused StateTableCommand, leftover from btool
1076                 - added check for unlikely case of COD file being larger
1077                         than size_t, breaking the fread() assumption
1078                         for the type == 0xC0DE case
1079                 - added checks for fread() failures
1080                 - fixed compiler warnings when comparing signed/unsigned,
1081                         and changed file operation types from plain int
1082                         to size_t/off_t
1083         - changes to src/m_javaloader.cc:
1084                 - fixed comments to remove Desktop-oriented notes
1085                 - moved variables closer to their use point
1086                 - removed the duplicated response Data objects in favour
1087                         of just one (each default Data object uses 0x4000
1088                         bytes of heap)
1089                 - removed manual endian swap in favour of htobl()
1090                         - oops... this size field is actually big endian.
1091                           Since all Barry code assumes that Blackberry
1092                           protocol traffic is little endian, a special
1093                           case needs to be added in m_javaloader.cc for
1094                           this field.  The special case uses autoconf's
1095                           endian define.
1096                         - fixed long long problem in endian.h (ISO C++
1097                           compilers don't support long long) and made
1098                           the bswap() functions always available
1099                 - removed unused CommandType and m_commandTable members
1100                 - fixed exception error messages to indicate command #
1101                         instead of Desktop message
1102                 - changed Packet() call to PacketData() when sending
1103                         file size, since there is no command
1104         - added eout() data dump to socket::Packet() unknown send error
1105         - fixed my incorrect off_t/size_t check in bjavaloader.cc
1106         - removed the '0' JL_UNKNOWN4 command from src/protocol.h,
1107                 since the PacketData() change above now handles that,
1108                 and I don't think that byte is actually a command, but
1109                 really part of the uint32_t size
1110                 - Also fixed one remaining 0 command, to use PacketData()
1111 2009/01/09
1112         - added AT+CLAC note to contrib/modemtest.rb, recording tidbit
1113                 from mailing list
1114         - updated copyright dates for 2009
1115 2008/12/11
1116         - fixed missing slash in config sample in doc/www/sync.php
1117                 Thanks to sourceforge tracker #2413683 for reporting
1118 2008/12/01
1119         - added more notes to doc/USB-capture.txt, documenting my kernel
1120                 setup for capturing USB traffic, and added size-limiting
1121                 kernel patch
1122         - added TODO list item for the Blackberry Storm
1123 2008/11/30
1124         - moved Product ID constants into a single place (src/common.h)
1125                 and updated bcharge
1126         - added Product ID 8007 for the Blackberry Storm... needs testing
1127 2008/11/27
1128         - applied ppp chat script patch for AT&T Cingular from
1129                 Richard Esplin
1130         - added new chat scripts to debian and rpm packages
1131         - added known sources of additional Barry binary packages to index.php
1132         - turned on call/caller graph support in Doxygen output
1133 2008/11/23
1134         - applied 'patch' of Martin Owens' Content Store documentation
1135         - updated AUTHORS
1136 2008/11/22
1137         - large refactoring of all message/email record classes, and more
1138                 There is now a MessageBase base class, which combines
1139                 common email record parsing code in one class.  This base
1140                 class is reused by all the specific messages record classes.
1141                 This commit also includes support for multiple email
1142                 addresses per email, as well as giving IConverter support
1143                 to all message classes.
1144         - deleted empty *.cc files from project
1145         - updated TODO file, removing opensync i18n bug
1146         - added TODO item for password support in Opensync... try to avoid
1147                 storing the password in the sync config in plain text
1148         - fixed dll export bug on ErrnoError exception class
1149         - added BadPackedFormat exception for internal use
1150         - ServiceBook: added IConverter support, and general cleanup
1151                 Refactored ServiceBook class and added some experimental
1152                 template functions to generalize the FieldLink table
1153                 processing.  If possible, this needs to be expanded
1154                 to the general record classes, to reduce the amount of
1155                 code duplication during processing of FieldLinks and
1156                 CommonField structures.
1157                 Also, ServiceBook deals with packed fields, which should
1158                 also be extrapolated for general use, and reused if
1159                 possible for the new "Calendar - All" Blackberry databases
1160                 that are coming out on the new devices and firmare.
1161 2008/11/21
1162         - updated man/btool.1 with new -i option
1163         - fixed bug where opensync plugin didn't pass IConverter to Desktop
1164         - added IConverter support to r_calendar.cc
1165         - renamed utf8Needed to iconvNeeded, for consistency
1166         - added IConverter support to r_folder.cc
1167         - added IConverter support to r_memo.cc
1168         - added IConverter support to r_message.cc
1169         - added EmailAddressList, in preparation for multi-address email
1170 2008/11/20
1171         - changed Parser base class to pure abstract... this is so that
1172                 future API changes to the Parse base class will be
1173                 detected by the compiler as errors
1174         - added NullParser class, which performs the old Parser function
1175         - changed all FieldLink arrays to static
1176         - added new IConverter class to support converting the Blackberry's
1177                 WINDOWS-1252 charset to/from UTF-8 and more
1178         - fixed bug in IConverter that saved end of string instead of
1179                 beginning
1180         - reorganized barry.h app header and record.h header, so that
1181                 internal builds have fewer dependencies
1182         - large parser/builder API change, adding IConverter support
1183                 This change starts at the top (Mode::Desktop) which
1184                 takes an optional IConverter object for parsing and
1185                 building conversions.  The Desktop class passes
1186                 this IConverter object to Packet, Parser, and Builder (and
1187                 thereby, the corresponding Record classes) as needed.
1188                 This adds an extra pointer to a fair number of calls
1189                 in the stack, but maintains flexibility without putting
1190                 too much of a burden on Parser writers, which could be
1191                 application writers.
1192                 The primary use of this architecture is to pass in an
1193                 IConverter configured to convert to UTF-8... this is
1194                 basically the only useful conversion method, but others
1195                 are possible if you want to play.
1196         - first record class to support string conversions: Contact
1197         - reverted the barry.h and record.h reorganization, since
1198                 the gui depends on it
1199         - reorganized barry.h and record.h again, making inclusion of
1200                 the record headers dependent on whether it is a library
1201                 build or not
1202         - updated the gui with the parser/builder API change
1203         - added IConverter to opensync plugin, set to UTF-8
1204 2008/11/13
1205         - added comment to src/r_contact.h deprecating the Phone field
1206         - updated Doxyfile to 1.5.1
1207         - added Christopher D. Stover to AUTHORS file as Fedora contact
1208 2008/11/03
1209         - forgot #include <string.h> for memcpy/memset in tools/bfuse.cc
1210         - moved bfuse install point from /usr/sbin to /usr/bin
1211 2008/11/01
1212         - added FUSE filesystem "driver"
1213 2008/10/31
1214         - commented out the info.subsystem match level in HAL FDI file...
1215                 this should let the FDI work on old and new systems.
1216                 HAL version 0.5.8 (used by Debian Etch) has the deprecated
1217                 info.bus property, and doesn't have info.subsystem yet.
1218         - added HAL FDI scripts to rpm/barry.spec
1219         - fixed tools/Makefile.plain
1220 2008/10/30
1221         - added support for multiple work/home phone numbers to the
1222                 opensync plugin.
1223                 - Thanks to Richard Esplin for his test data.
1224                 - This fix has a conflict when a cell phone number is
1225                         marked as the preferred contact as well.
1226                         See http://sourceforge.net/mailarchive/message.php?msg_name=20081030231045.GA28989%40foursquare.net
1227                         for the full details.
1228                 - This fix also changes the VCARD output... pager phone
1229                         numbers are given the TYPE code of "pager"
1230                         instead of "msg".
1231                 - Added OtherPhone field as well
1232 2008/10/22
1233         - applied HAL FDI scripts and configuration from Martin Owens
1234         - updated AUTHORS file
1235         - added HAL FDI and python script to Debian package install
1236 2008/10/18
1237         - updated copyright notice and help text in contrib/modemtest.rb
1238         - changed barry-verizon.chat script according to Andy Herkey's
1239                 recommendation... this worked much better for Michael L.
1240                 Stokes, since his provider was getting stuck on the ATZ
1241 2008/10/16
1242         - applied Andy Herkey's modemtest.rb ruby script to contrib/
1243                 from his Aug 9, 2008 email to the mailing list
1244         - applied Andy Herkey's new modemtest.rb script to contrib/
1245                 from his Oct 8, 2008 email to the mailing list
1246         - added password pass-through code for pppob -s mode
1247         - clarified front page www doc, adding date of last release
1248                 and license
1249         - cherry-picked changes from Jose Carlos Garcia Sogo's debian git repo
1250                 - debian/rules was stripping wrong library names
1251                 - FSF address was incorrect (also updated other source
1252                         files throughout the tree myself)
1253                 - more complete debian/copyright file
1254 2008/09/24
1255         - version bump:
1256                 - configure.ac
1257                 - src/Makefile.am
1258                 - src/version.cc
1259                 - gui/src/BackupWindow.cc
1260                 - Doxyfile
1261                 - rpm/barry.spec
1262                 - debian/changelog
1263                 - opensync-plugin/src/barry_sync.cc
1264         - added link to doxygen documentation to www index.php
1266 Release: version 0.14 - 2008/09/24
1267 ------------------------------------------------------------------------------
1268 2008/09/24
1269         - changed Debian changelog version to 0.14-0 to make room for
1270                 official Debian packages which start at 0.14-1
1271         - moved Doxyfile from src/Makefile.am to Makefile.am
1272         - made RPM spec file match debian version number
1273         - www documentation updates for 0.14
1274 2008/09/19
1275         - fixed git-tagged-release.sh to not delete its own results... oops
1276 2008/09/18
1277         - fixed git command line in git-extract.sh for new 1.6.0.x behaviour
1278 2008/09/13
1279         - added notes in ReleaseChecklist.txt regarding the new tarball
1280                 tags in the git repos
1281 2008/09/12
1282         - updated doc/ReleaseChecklist.txt
1283         - moving items from private todo list to TODO file
1284         - removed unused variable from maintainer/git-release-tar.sh
1285         - added new maintainer/git-tagged-tar.sh, which puts more data
1286                 in the git repo, to make it easier for official Debian
1287                 package creation
1288         - moved src/Doxyfile to ./Doxyfile to avoid ".." in the config...
1289                 the ".." paths confused doxygen and caused it to generate
1290                 non-relative paths in the documentation.
1291         - added umask to maintainer/git-extract.sh, so it works even without
1292                 a pre-configured git
1293         - updated maintainer/tar-prepare.sh to match the new Doxyfile
1294         - added maintainer/tagged-release.sh, as replacement for the
1295                 release.sh top level script, when using git
1296         - removed CVS-style ID code from contrib/barry-unbind-storage.sh
1297                 since it made it look like cdfrey wrote it
1298         - removed doc/CodingStyle.txt as it is now documented in html
1299 2008/08/29
1300         - added device name and backup label support to the GUI
1301                 It is now possible to name devices, instead of just
1302                 operating by PIN number, and it is possible to now
1303                 add a text label to the backup tar filenames.
1304         - added the device names to the device selection dialog
1305 2008/08/26
1306         - updated TODO list with i18n opensync bug and general i18n support
1307         - added test suite to TODO list
1308 2008/08/23
1309         - renamed libbarry to libbarry0 in rpm/barry.spec
1310         - added %dump to rpm/barry.spec to match the OBS version
1311                 Makes it easier to track variable changes across
1312                 various distros.
1313         - added note to NEWS regarding binary package renaming
1314 2008/08/22
1315         - fixed logic error in breset that displayed error on success
1316                 Thanks to Richard Esplin for reporting this bug.
1317         - applied commit's from Jose Carlos Garcia Sogo's debian git repo
1318                 git://git.debian.org/git/users/jsogo/barry.git
1319                 - Add binary dependency of libbarry-dev on libusb-dev
1320                 - Rename libbarry to libbarry0, per debian policy
1321                 - Add exact dependency on binary:Version for every
1322                         -dbg and -dev package
1323                 - Bump Standards-Version to 3.8.0
1324         - updated AUTHORS
1325         - clarified barrybackup error message when no records available
1326                 Added a check so that "no databases selected" and
1327                 "no records available" are two distinct error messages.
1328 2008/08/21
1329         - applied ppp chat script patch from Mick Reed
1330         - updated RPM and Debian packages with new tmobileus ppp scripts
1331         - added T-Mobile US to web documentation
1332         - updated AUTHORS
1333         - clarified sync docs regarding slow-sync... avoid it if possible
1334         - tuned doxygen config, and moved generated files to doc/www/doxygen
1335         - added git-release-tar.sh, replacing CVS's make-release-tar.sh
1336                 Also added doxygen to the release tarball creation, so
1337                 the source code's doxygen documentation is automatically
1338                 generated upon release.
1339         - split git-release-tar.sh into reusable component scripts
1340 2008/08/14
1341         - added exception handler for invalid command line options in GUI
1342         - fixed barrybackup man page, removing bad -v option
1343         - added distro section to AUTHORS
1344         - fixed comment and whitespace problems in time.{h,cc}
1345         - Converted Birthday from string to Date, and added Anniversary
1346                 support.  Birthday and Anniversary fields now use a new
1347                 Date struct, and Barry validates the data to some extent.
1348                 - updated example code and opensync plugin to match
1349         - applied Lee Dixon's Location and Description plugin patch,
1350                 with minor whitespace edits
1351 2008/08/12
1352         - added Birthday field to examples/addcontact.cc for testing
1353 2008/08/11
1354         - applied Lee Dixon's Birthday field and opensync patch
1355                 - fixed coding format issues
1356         - updated AUTHORS
1357 2008/08/07
1358         - fixed bug in m_ipmodem.cc that included a null terminator in
1359                 first AT command
1360         - fixed RFC 2426 conformance bug...  RFC 2426, 3.1.1 states that FN
1361                 MUST be present in the vcard object.  If there is no name
1362                 available, then we use the Company name if available.  It
1363                 should be, since the Blackberry requires either name or Company
1364                 in order to create a new address.  If Company is blank too, then
1365                 we insert "(Blank Name)".
1366                 - On the flip side of this same bug, it is possible to receive
1367                         non-conformant vcard data from evolution / opensync
1368                         that does not include FN.  Since the Blackberry
1369                         doesn't require this information, remove the
1370                         exception, and only throw an exception if FN
1371                         or Company are both blank.
1372                 - REVERT: removed the Company and "(Blank Name)" workarounds,
1373                         and just produce an invalid vcard if no full name,
1374                         since with multiple syncing, this will come back
1375                         to bite us with duplicated Company name data
1376         - added sanity check to contact class for blank name and company
1377         - added BadData exception class, and documented it
1378 2008/08/06
1379         - fixed bug in vAttr::GetValue that ignored index for single valued
1380                 attributes... this should fix the endless loop / memory
1381                 exhaustion that some people have been seeing
1382                 Thanks to Lee Dixon for reporting this bug in detail!
1383         - added TODO list item for implementing recurring calendar items
1384 2008/08/01
1385         - version bump:
1386                 - configure.ac
1387                 - src/Makefile.am
1388                 - src/version.cc
1389                 - gui/src/BackupWindow.cc
1390                 - src/Doxyfile
1391                 - rpm/barry.spec
1392                 - debian/changelog
1393                 - opensync-plugin/src/barry_sync.cc
1394         - updated web docs showing how to set the password when using modem
1395         - added section to docs on how to test the modem connection
1397 Release: version 0.13 - 2008/07/28
1398 ------------------------------------------------------------------------------
1399 2008/07/28
1400         - web doc updates:
1401                 - removed extraneous "experimental" wording
1402                 - added section for external links to main index page
1403                 - fixed doc bug about how to install libtar
1404                 - added O2 Ireland to list of modem scripts
1405                 - removed ubuntu80464 and fc6 from binary package list
1406 2008/07/26
1407         - updated AUTHORS
1408 2008/07/25
1409         - applied barry-unbind-storage.sh script from Niels de Vos...
1410                 added to contrib for now, in the interests of getting
1411                 version 0.13 released soon... we can work on integrating
1412                 this better in 0.14, which hopefully won't take so long :-)
1413 2008/07/24
1414         - added g++ (>= 4.1) to Debian build dependency list
1415         - added support to base library and utilities for multiple email
1416                 addresses in Contact records
1417         - added opensync support for multiple contact email addresses
1418         - applied ppp chat scripts for O2 Ireland from Simon Kenyon
1419         - updated AUTHORS
1420         - integrated O2 Ireland scripts into binary package installs
1421 2008/07/16
1422         - applied David Mansfield's opensync module password patch (ported
1423                 manually to latest upcoming 0.13)
1424         - updated AUTHORS
1425         - added password documentation to sample barry-sync module config
1426         - updated web docs with new password sample config
1427 2008/07/05
1428         - removed old, unused spec file and scripts for bcharge-only release
1429         - fixed rpm build instructions in web docs
1430         - reduced minimum password retry level from 6 to 3... Reinhold Schoeb
1431                 reports that his 8800 device only lets him set a password
1432                 retry range between 3 and 5, instead of the usual 10 that
1433                 most devices have.
1434 2008/07/04
1435         - added "known issues" section to main www doc page
1436         - fixed virtual function mis-name bug in btool's null parser
1437         - added -i option to brecsum, to include record IDs in the sums
1438         - applied Ashley Willis's btool 0.12 null parser patch to CVS, which
1439                 required some manual porting changes...
1440                 - removed bool reference argument in GetParser()
1441         - updated AUTHORS
1442         - applied Ashley Willis's perlbarry package, putting it in the
1443                 new contrib/ directory
1444                 - updated AUTHORS
1445                 - now that btool patch is applied, don't need it in contrib
1446         - removed openssl from dependencies documentation, as barry now
1447                 has its own sha1 code
1448         - added libtool to dependencies documentation
1449         - rpm/barry.spec file now assumes gui and opensync, with conditional
1450                 checks depending which system it is being built on...
1451                 --with gui and --with opensync are no longer needed.
1452         - updated release scripts to build RPMs with the new spec file
1453 2008/06/26
1454         - updated udev rules to recognize devices with the 8004 Product ID
1455         - fixed bug in test/buildtest.sh when opensync is not pre-built
1456         - fixed more lintian warnings on Ubuntu
1457         - fixed tiny subheadings in modem web document
1458         - added syncing howto web document
1459         - updated TODO list, adding Troubleshooting item, and morphing
1460                 the modem item into the RPC daemon item
1461         - moved old doc/TroubleShooting.txt document to web, and updated
1462                 it in the process
1463         - added tip to sync web docs, for using DebugMode on hangs
1464 2008/06/23
1465         - changed test/buildtest.sh so it is safe to run from outside
1466                 the directory that contains it
1467         - added note to patch webpage regarding testing patches to the
1468                 build system
1469         - removed mis-configured 'make dist' check from buildtest.sh
1470         - added missing 'scoped_lock.h' to src/Makefile.am's non-installed
1471                 headers, as it is an internal header only
1472         - improved buildtest.sh: speed, accuracy
1473                 - added -j option to make to speed builds
1474                 - moved cleanall check above 'make dist' as dist doesn't
1475                         clean up after itself
1476                 - commented out 'make distcheck' for now, as it doesn't work
1477         - added DISTCHECK_CONFIGURE_FLAGS to root Makefile.am, similar to
1478                 David Everly's patch in tracker # 1973536
1479                 Thanks David!  'make distcheck' now works, but only in
1480                 an environment like buildtest.sh creates.
1481                 Also, buildtest.sh passes all tests now, including distcheck.
1482         - updated AUTHORS
1483         - removed unused src/controllertmpl.h
1484         - added ppp and test directories to Makefile.am EXTRA_DIST
1485 2008/06/21
1486         - added beginnings of a build system test script
1487         - fixed sha1.h so it is installed by src/Makefile.am
1488         - removed old Makefile.orig from src/Makefile.am
1489 2008/06/20
1490         - updated modem web documentation page with Sprint option, as
1491                 well as listing some network security concerns
1492 2008/06/19
1493         - added modem reset workaround to web documentation page
1494         - applied Andy Herkey's ipmodem password patch, round 1
1495         - applied Andy Herkey's ipmodem password patch, round 2
1496         - cleaning up some rough edges to the ipmodem patches:
1497                 - removed commented out code in pppob.cc
1498                 - added BXLOCAL to private member SendPasword()
1499                 - added try/catch in IpModem destructor
1500                 - removed FIXME comment about endian issues
1501                 - added data size checks to SendPassword()
1502                 - removed catch(...)
1503                 - renamed class variable session_key to match others
1504                 - added check to skip password if "" is passed in
1505                 - added the m_filter for ipmodem PPP 0x7e filtering
1506                   back, since the 8320 w/ rogers seems to need it
1507         - updated AUTHORS
1508 2008/06/06
1509         - added timeout argument to Device::BulkDrain()
1510         - added mozilla's sha1 code from git
1511         - removed openssl dependency due to license issues
1512                 Debian and Ubuntu have checks in their lintian tool that
1513                 check for GPL+OpenSSL linkage.  In order to remove any
1514                 potential obstacles to future inclusion in those distros,
1515                 the dependency is removed here in favour of the small
1516                 mozilla implementation which is GPL.
1517 2008/06/04
1518         - added notes to web documentation for OpenBSD
1519         - documentation updates:
1520                 - changed git patch command to use format-patch
1521                 - added instructions for building from tarball
1522                 - added bugs.php and contact.php pages
1523         - fixed missing and mis-dated copyright notices in src/
1524         - added ppp options and chat script for Sprint, based on
1525                 Andy Herkey's mailing list report
1526 2008/05/30
1527         - added Ubuntu 8.04 to release build scripts
1528 2008/05/29
1529         - fixed compile errors in gui when compiling with gcc 4.3.x
1530         - added ppp options and chatscript files to RPM build
1531         - updated docs with binary package default PPP scripts
1532         - added -P option to pppob to specify password
1533         - updated pppob manpage with -P option
1534         - fixed missing -P option in btool manpage
1535         - updated rpm spec file history
1536         - added pppob manpage to rpm spec file
1537         - added manpages for brecsum, breset, upldif, and barrybackup,
1538                 and updated the build process to support them.
1539                 Also updated date for pppob manpage.
1540         - updated rpm spec file with new manpages
1541         - added ProductID code 0x8004 to breset.cc
1542         - minor whitespace and usage text fix in upldif.cc
1543         - deleted old src/Makefile.orig
1544         - updated Debian binary package:
1545                 - added manpages for brecsum, breset, pppob, upldif,
1546                         and barrybackup
1547                 - added ppp options and chat scripts, with postinit
1548                         script to set permissions
1549                 - fixed descriptions in control file to avoid lintian warnings
1550 2008/05/27
1551         - fixed missing #includes in src/data.cc
1552         - fixed compile errors in library, utils, and plugin when compiling
1553                 with new gcc 4.3.x... gui not yet finished
1554 2008/05/24
1555         - added minimum g++ version to website dependency docs
1556 2008/05/23
1557         - added ppp/README
1558         - reorganized sample ppp options files so they are easier to compare,
1559                 enabled "usepeerdns" in both, and disabled the speed
1560                 setting in barry-verizon
1561         - updates to website documentation
1562                 - added FC9 to distro list
1563                 - added page for BarryBackup
1564                 - added page for USB modem / pppob
1565 2008/05/22
1566         - added sample ppp options files for Verizon Blackberries
1567                 Sample files from Michael L. Stokes
1568         - updated AUTHORS
1569         - renamed sample ppp peer files, in preparation for installing
1570                 them automatically in binary packages
1571         - modified verizon options file to use pppob
1572         - split the sample rogers options file into options and chat files
1573 2008/05/16
1574         - put sequence packet check directly in the SocketZero::RawReceive()
1575                 function, which now localizes all sequence packet
1576                 handling and checking, as well as avoids packet
1577                 order problems when multiple sockets are in use,
1578                 such as with pppob...
1579                 FIXME - this localized sequence checking may make all
1580                 the calls to CheckSequence() obsolete which
1581                 should probably be cleaned up someday, if so.
1582         - reorganized src/socket.cc to match class private/public
1583                 order (no code change, only move)
1584         - added verbose log message to Controller constructors, so it is
1585                 possible to determine whether a program is using
1586                 threaded or non-threaded sockets
1587         - added -z and -Z command line options to btool to control
1588                 the non-threaded/threaded behaviour, respectively;
1589                 and updated the man page
1590         - removed debug sleep() calls from pppob
1591         - added SIGINT signal handler so pppob shutsdown gracefully when
1592                 pppd is killed
1593 2008/05/15
1594         - mention CVS and git on main documentation "how to" list
1595         - moved PPP filter logic into its own class
1596         - enhanced PPP filter class to support prepending of
1597                 empty bytes if needed, in order to reduce data
1598                 copying, and clarified why there is no GetBuffer()
1599         - added ProbeResult::HasIpModem() to determine whether
1600                 IpModem endpoints are available
1601         - added pure virtual Modem base class for common
1602                 modem-oriented API (only Open and Write so far)
1603         - Mode::IpModem is now derived from Barry::Modem
1604         - experimental implementation for Mode::Serial,
1605                 which is now derived from Barry::Modem,
1606                 and uses PppFilter
1607         - pppob now supports IpModem and Serial modes, and logging
1608                 to file instead of stderr
1609         - added man page for pppob
1610 2008/05/10
1611         - modified the planned version numbering scheme in doc/VersionNotes,
1612                 so that a 1.0 is possible, with 1.50 as the devel series
1613 2008/05/09
1614         - continuing to update html documentation in preparation for
1615                 0.13 release
1616 2008/05/02
1617         - removed -fvisibility-inlines-hidden compile options since some
1618                 distros have old or broken compilers or libraries where
1619                 the build breaks looking for STL templates (Ubuntu 7.10,
1620                 I'm looking at you...)
1621         - changed brecsum so usage information is displayed automatically
1622                 if no command line arguments are specified
1623         - added opensync-plugin to maintainer test scripts, and added
1624                 ubuntu710 to the test build sequence
1625 2008/05/01
1626         - updated doc/TroubleShooting.txt
1627         - removed usb_control message check from IpModem endpoint probing
1628                 in src/probe.cc, since some devices, like the 8700
1629                 have both RIM_UsbSerData mode and IpModem mode.
1630         - fixed serialization code for Calendar record class, in s11n-boost.h
1631         - made UnknownField's data member into its own type,
1632                 so that when building records, it doesn't get processed
1633                 like a null terminated string... also added more
1634                 BuildField() helper functions for accuracy
1635         - fixed missing fields in the Calendar record build process
1636         - added Calendar to list of Builders in tools/btool...
1637                 it is now possible to run: btool -s "Calendar" -f datafile
1638         - added tools/brecsum program, which calculates SHA1 checksums
1639                 on database records, for testing
1640         - added brecsum to debian and rpm builds
1641         - added recurrence builder function to Calendar record builder code
1642                 which completes builder support
1643                 Checksums from the following commands now match:
1644                         brecsum -d Calendar > sum1.txt
1645                         btool -d Calendar -f calendar.dat
1646                         btool -s Calendar -f calendar.dat
1647                         brecsum -d Calendar > sum2.txt
1648                         diff -u <(sort sum1.txt) <(sort sum2.txt)
1649 2008/04/29
1650         - applied Jason Thomas's ACLOCAL_FLAGS patch to make autoreconf
1651                 work again... Thanks!
1652         - applied Jason Thomas's debian build dependency patch
1653         - updated AUTHORS
1654 2008/04/26
1655         - started documentation overhaul in doc/www, putting the commonly
1656                 asked questions right on the front page, and making it more
1657                 goal-oriented, so it is hopefully easier to use
1658 2008/04/25
1659         - updated NEWS file
1660         - fixed error messages in m_desktop.cc that still referred
1661                 to Controller
1662 2008/04/25
1663         - major merge of barry-b1-socket-arch-branch into MAIN.
1664           The following is the changelog from that branch, which is now MAIN.
1666         2008/04/25
1667                 - added thread-safe logging mechanism
1668                 - added preliminary IP modem support... requires a recent
1669                         device... serial mode is not yet supported
1670                 - merged HEAD changes
1671         2008/03/27
1672                 - changed Barry::Init() so programmer can choose where
1673                         debug and exception information goes, instead of
1674                         always to stdout
1675         2008/03/22
1676                 - merged HEAD changes
1677         2008/03/20
1678                 - fixed bug in probe class, which missed storing the PIN
1679                         number in ProbeResult
1680                 - also added ProbeResult constructor
1681                 - merged changes from visibility branch:
1682                         - GCC visibility support, limiting what symbols are
1683                           visible in the shared library, libbarry... this makes
1684                           a drastic reduction in the symbol table, and should
1685                           avoid future name clashes with other libraries such
1686                           as opensync
1687                           See: http://gcc.gnu.org/wiki/Visibility
1688                         - vformat_() function name changes
1689         2008/03/07
1690                 - merged HEAD changes
1691                 - added threads library to new bs11nread build
1692         2008/02/28
1693                 - fixed variable size issues in btranslate.cc, evident with
1694                         some compilers on 64 bit systems
1695                 - merged HEAD changes
1696                 - added comments for threaded usage in usbwrap.h
1697                 - changed router to use SocketId typedef, for clarity
1698         2008/02/22
1699                 - fixed const char warnings from newer gcc compilers
1700                 - controller object now saves a copy of the probe result
1701                         and provides an API to retrieve it
1702                 - added sanity checks to m_serial.cc
1703                 - fixed probe behaviour so that a USB probe on an endpoint
1704                         that doesn't respond won't halt everything
1705                 - refactored some of the probe code, and added checks for
1706                         IP modem endpoints
1707                 - added Probe::DumpAll()
1708                 - added Open() call to pppob.cc (not yet complete)
1709         2008/01/30
1710                 - implemented dataqueue.{h,cc}... looks ready for testing,
1711                         once things compile again
1712                 - changed free list copy in router.cc to use
1713                         DataQueue::append_from()
1714                 - finished packet.{h,cc} implementation, ready for testing
1715                 - finished controller.{h,cc}, ready for testing
1716                 - finished m_desktop.{h,cc}, ready for testing
1717                 - added skeleton m_serial.cc
1718                 - the base library and utilities compile again!
1719                 - added constructor for SocketZero(queue)
1720                 - fixed ErrnoError::GetMsg()
1721                 - updated GUI and opensync plugin to compile with new API
1722                 - moved Raw Send/Receive socket functions to private
1723                 - fixed packet header size bug in socket that caused
1724                         socket ID override to be skipped
1725                 - fixed incorrect use of gettimeofday()
1726                 - fixed race condition where Controller could destroy
1727                         the Usb::Device object before the SocketRoutingQueue
1728                         was done with it
1729                 - fixed segfault in SocketZero::RawSend() when a router
1730                         was in use
1731                 - fixed Open() bugs in btool... Open() must be outside of loops
1732                 - btool uses the router thread now, for testing
1733                 - partially implemented m_serial.{h,cc}... needs testing
1734                 - added automatic buffer allocation to SocketRoutingQueue
1735                         constructor
1736                 - made AllocateBuffers() a little smarter, so it was not
1737                         pure appending
1738                 - added a context data pointer to the SocketRoutingQueue
1739                         RegisterInterest callback
1740                 - added RegisterInterest functionality to Socket class
1741                 - added exceptions on router read errors in socketzero
1742         2008/01/26
1743                 - implemented router.{h,cc}... looks ready for testing,
1744                         once things compile again
1745         2008/01/25
1746                 - merged HEAD changes
1747                 - added router.cc and continued work on new arch
1748                 - merged HEAD changes for 2008 copyright statements
1749                 - added scoped_lock.h
1750                 - added ErrnoError exception class
1751                 - documented Controller / SocketRoutingQueue behaviour
1752                 - more router implementation
1753                 - simplified pppob
1754                 - audit and cleanup of socket.{h,cc} code... looks ready
1755                         for testing now, once things compile again
1756                 - removed FIXME in router.*
1757                 - removed pthread header from pppob as it is not needed
1758         2007/11/22
1759                 - merged HEAD changes
1760         2007/10/25
1761                 - merged HEAD changes
1762         2007/10/19
1763                 - branch started, to track development of the new socket
1764                         architecture, and new mode architecture, needed
1765                         to support GPRS modem support, and threaded
1766                         USB access
1767                 - committed work-in-progress... does not compile
1769 2008/04/10
1770         - added Tasks and Memos to TODO list
1771 2008/03/27
1772         - added support for Blackberry 8120, which has a unique Product ID
1773                 Sourceforge tracker ID: 1829537
1774 2008/03/22
1775         - removed TimeZones from TODO list, as it is done
1776 2008/03/21
1777         - version bump:
1778                 - configure.ac
1779                 - src/Makefile.am
1780                 - src/version.cc
1781                 - gui/src/BackupWindow.cc
1782                 - src/Doxyfile
1783                 - rpm/barry.spec
1784                 - debian/changelog
1785                 - opensync-plugin/src/barry_sync.cc
1786         - added GCC visibility support, limiting what symbols are visible
1787                 in the shared library, libbarry... this makes a drastic
1788                 reduction in the symbol table, and should avoid future
1789                 name clashes with other libraries such as opensync
1790                 See: http://gcc.gnu.org/wiki/Visibility
1792 Release: version 0.12 - 2008/03/21
1793 ------------------------------------------------------------------------------
1794 2008/03/21
1795         - changed maintainer script to use CVS export instead of checkout,
1796                 to avoid the CVS directories
1797         - added support for building Debian source packages with proper
1798                 diff.gz and dsc files
1799         - fixed find warning in maintainer/make-rpm.sh
1800         - added support for Ubuntu binary packages to the maintainer build
1801                 scripts
1802 2008/03/13
1803         - renamed all vformat_ and VFormat symbols in opensync plugin's
1804                 copy of vformat code, so they don't conflict with the
1805                 real opensync libraries
1806 2008/03/07
1807         - updated the install.php web page with Paul Dugas's notes on
1808                 building RPM's from CVS
1809         - fixed problem in tools/Makefile.am where bs11nread was included
1810                 in build, even if --with-boost was not specified
1811                 on ./configure command line
1812 2008/03/06
1813         - changed format of Boost serialization file output from btool,
1814                 so that the database name is stored as the first line
1815                 of the file
1816         - added tools/bs11nread.cc to read Boost serialization file data
1817                 written by btool
1818         - minor adjustments to r_message.h and r_timezone.h
1819         - updated s11n-boost.h header to match record classes
1820 2008/03/01
1821         - applied Time Zone parsing patches from Brian Edginton
1822         - added Time Zones to list of supported parsers in btool.cc
1823 2008/02/29
1824         - changed configure.ac to use bzip2 for "make dist".. thanks to
1825                 Paul Dugas for the tip
1826 2008/02/28
1827         - committed Chris Burgess's update to the roadmap document
1828         - applied Paul Dugas's x86-64 build patch, except the
1829                 tar.bz2/tar.gz change
1830         - updated AUTHORS file
1831 2008/02/22
1832         - fixed configure.ac's --with-boost option, so that without args,
1833                 it defaults to using --includedir and --libdir settings,
1834                 instead of hardcoding /usr/include and /usr/lib... this
1835                 should allow smarter compiling on 64 bit systems
1836         - updated RPM spec file to use new --with-boost behaviour
1837         - ahem, fixed configure.ac again... don't use --includedir and
1838                 --libdir, as those are install targets... oops.
1839                 Don't add path overrides at all if not specified.
1840 2008/01/25
1841         - fixed locale issues in src/data.cc
1842         - updated copyright statments for 2008
1843 2007/12/21
1844         - applied wording correction patch to btool from Matt LaPlante
1845 2007/12/07
1846         - changed hard coded databases names in btool to calls to
1847                 <recordclass>::GetDBName()
1848         - version bump:
1849                 - configure.ac
1850                 - src/Makefile.am
1851                 - src/version.cc
1852                 - gui/src/BackupWindow.cc
1853                 - src/Doxygen
1854                 - rpm/barry.spec
1855                 - debian/changelog
1856                 - opensync-plugin/src/barry_sync.cc
1857         - updated TODO
1859 Release: version 0.11 - 2007/12/01
1860 ------------------------------------------------------------------------------
1861 2007/12/01
1862         - fixed null pointer bug in Probe class (bug #1842407)
1863         - added pause to maintainer release script
1864 2007/11/30
1865         - version bump:
1866                 - configure.ac
1867                 - src/Makefile.am
1868                 - src/version.cc
1869                 - gui/src/BackupWindow.cc
1870                 - src/Doxygen
1871                 - rpm/barry.spec
1872                 - debian/changelog
1873                 - opensync-plugin/src/barry_sync.cc
1875 Release: version 0.10 - 2007/11/30
1876 ------------------------------------------------------------------------------
1877 2007/11/30
1878         - added support to the usbwrap Match class to limit its
1879                 search by busname / devname
1880         - added support to the Probe class to limit its search for
1881                 Blackberry devices to a given bus or device name
1882         - added command line options to btool for the above Probe
1883                 bus/device names, and updated the man page
1884         - updated the www docs with regard to the new usb_storage
1885                 behaviour and the new blacklist files... less
1886                 concern about berry_charge and usb_storage conflicts
1887         - added bidentify tool and accompanying man page
1888         - fixed bug in rpm maintenance script that used the wrong
1889                 spec file for opensuse
1890 2007/11/29
1891         - added better error checking to breset
1892         - commented the sleep() for the 8830
1893         - added code to handle the race condition where usb_storage
1894                 claims the device before bcharge arrives on the scene,
1895                 by asking the kernel to detach the driver from
1896                 the Mass Storage interface... this change makes it
1897                 possible to run bcharge, moving from 0006 to 0004
1898                 to 0001 and back to 0004, all *while* usb_storage
1899                 is loaded!
1900         - changed Probe class behaviour so that it will not throw an
1901                 exception on Device Busy (-EBUSY) but instead
1902                 log the error in an internal array and keep going.
1903                 This makes it possible to use btool and barrybackup
1904                 with two devices plugged in at the same time.
1905                 BACKWARD COMPATIBILITY NOTE: this changes initializaion
1906                         behaviour, but in practice, it should only
1907                         make applications look more capable, not less.
1908         - updated btool to show errors logged by Probe
1909         - added message to specify which PIN device is being used by btool
1910         - added explanatory comments to udev rules files, about why
1911                 they are so verbose
1912 2007/11/27
1913         - added ClearHalt() calls to probe and controller classes, just
1914                 before any communication happens... the 8830 seems
1915                 to need this
1916 2007/11/23
1917         - added usbwrap.cc:GetConfiguration()
1918         - added code to check whether the configuration is the one
1919                 we require, before calling SetConfiguration()... and not
1920                 to call it if unnecessary.  This allows us to run
1921                 at the same time as usb_storage.
1922                 Thanks to Martin Owens for not letting this issue go. :-)
1923         - added sleep to bcharge, before calling usb_reset()... the
1924                 Blackberry 8830 behaves like a Pearl device in that
1925                 it has mass storage support, but behaves like a Classic
1926                 in that it resets itself... the usb_reset() seems
1927                 to reset it back to 0006.  The sleep allows the device
1928                 to disappear via its own reset, and let usb_reset()
1929                 fail naturally on these devices.
1930                 This is not an ideal solution... mainly for testing.
1931 2007/11/09
1932         - added modprobe/blacklist-berry_charge as per Simon Ruggier's
1933                 suggestion.  Thanks also to Niels de Vos for a similar
1934                 suggestion.
1935         - fixed udev rules to work on both old and new distros
1936                 Thanks to Duncan Mak for the bug report.
1937         - AUTHORS update
1938         - fixed string comparison to use case insensitive compare in
1939                 opensync plugin
1940         - updated Debian package to include modprobe blacklist file
1941         - updated rpm spec file to include modprobe blacklist file
1942         - split the maintenance scripts into release and test, so
1943                 that release package builds can be done faster
1944 2007/10/26
1945         - opensync plugin fixes:
1946                 - fixed memory leak in vBase::GetAttr()
1947                 - added support in vformat parser to parse "blocks"
1948                         and keep track of the hierarchy when
1949                         parsing an iCalendar, etc.
1950                 - added support for searching for attributes only
1951                         inside certain blocks (i.e. find first
1952                         DTSTART in VEVENT block, not VTIMEZONE block)
1953 2007/10/25
1954         - fixed bug in Calendar::Clear, missing the Free / Class
1955                 member variables, leaving them uninitialized
1956         - added examples/addcalendar.cc
1957         - added more logging to the opensync plugin, logging the
1958                 ToBarry conversion results
1959         - added code to force struct tm.tm_isdst to -1 before calling
1960                 mktime, in vformat.c
1961                 - fixed typo in previous fix
1962 2007/10/12
1963         - renamed ktrans and translate to bktrans and btranslate to avoid
1964                 file name clashes with libtranslate of Gnome
1965                 Closes bug #1812410 reported by Troy Engel.
1966         - version bump:
1967                 - configure.ac
1968                 - src/Makefile.am
1969                 - src/version.cc
1970                 - gui/src/BackupWindow.cc
1971                 - src/Doxygen
1972                 - rpm/barry.spec
1973                 - debian/changelog
1974                 - opensync-plugin/src/barry_sync.cc
1975         - fixed missing default config file in the debian package for
1976                 the opensync plugin
1977                 Closes bug #1812224 reported by Ariel (adonatti).
1978         - added debian dbg packages for tracing segfaults
1979         - modified maintainer scripts so debug packages would reference
1980                 source code located in /usr/src/barry-0.9, etc.
1982 Release: version 0.9 - 2007/10/12
1983 ------------------------------------------------------------------------------
1984 2007/09/29
1985         - adjusted autosuspend disabling code in bcharge, based on new
1986                 information on how kernels 2.6.21 / 2.6.22 work.
1987                 See bcharge.cc for comments.  If device/power/level or
1988                 device/power/autosuspend exist, charging should now work
1989                 without recompiling the kernel.
1990         - updated website docs with autosuspend info
1991 2007/09/27
1992         - large update to the doc/www web pages, moving some of the
1993                 information in README files to html format, so that it
1994                 is commonly available on the web
1995         - added step in maintenance scripts to automatically build the
1996                 .html files in doc/www when making a tarball release
1997 2007/09/22
1998         - added libopensync 0.22 version requirement to barry.spec file,
1999                 but it doesn't seem to work on OpenSuSE 10.2, where it's
2000                 needed.... hmmmm
2001 2007/09/21
2002         - updated README to mention new tree build configure options
2003         - fixed the configure scripts and makefiles so that when building
2004                 with custom CXXFLAGS and LDFLAGS environment variables,
2005                 it doesn't break the full-tree build mode, when
2006                 using --enable-gui and/or --enable-opensync-plugin
2007         - added config.h.in~ to buildgen.sh clean target
2008         - converted Debian build scripts to use cdbs
2009         - added opensync plugin binary package for Debian
2010         - added "Getting Started" section to web pages, as well as an
2011                 explanatory document for various system requirements
2012         - turned on opensync build in RPM maintainer scripts
2013 2007/09/20
2014         - added filename to power/state error message in bcharge.cc
2015         - adjusted maintainer scripts to automatically adjust barry.spec
2016                 for opensuse rpm builds
2017 2007/09/13
2018         - fixed some of the release build scripts and added support for
2019                 automated opensuse 10.2 builds
2020                 - fixed build target to i386
2021                 - changed scripts to add to PKG_CONFIG_PATH variable instead
2022                         of overwriting it
2023 2007/09/07
2024         - added website docs to doc/www... these are out of date at the
2025                 moment, and hopefully by including them here, they
2026                 will be updated more frequently
2027 2007/09/05
2028         - applied Simon Ruggier's build system patch that allowed a build
2029                 of all 3 components from the root directory and fixed the
2030                 configure scripts to support external build directories
2031         - reordered clean commands in the buildgen.sh scripts, and removed
2032                 the INSTALL files, since they are auto-generated by autoconf
2033         - removed extraneous buildgen.sh calls in maintainer scripts
2034         - added Simon Ruggier to AUTHORS
2035         - added explanatory note to 3 stage test build process in
2036                 maintainer script
2037 2007/08/24
2038         - fixed Category handling in the Contact record class, to
2039                 parse the comma separated string into an array,
2040                 and back
2041                 Note: this involves a change to the boost serialization
2042                         and will affect backward compatibility with
2043                         old serialization datafiles
2044         - added Category to examples/addcontact.cc
2045         - added Category support to the opensync plugin
2046 2007/08/23
2047         - fixed wrong read/write in btool output (oops)
2048         - added BadSize exception, and changed CheckSize() function
2049                 to throw it on error
2050         - changed backup GUI to catch BadSize exceptions on initial
2051                 connect, and try a reset if that error occurs, since
2052                 that likely means the device didn't shutdown properly
2053         - fixed in opensync plugin:
2054                 - some vcard data contains types codes in capital letters,
2055                         so added lower case conversion routine
2056                 - changed the order of address lines, so that address1
2057                         is the street, address2 is the extended address,
2058                         and address3 is the PO Box.  The Blackberry
2059                         doesn't seem to have any PO Box field.
2060 2007/08/20
2061         - added -e endpoint override option to btool
2062         - added status message to endpoint override
2063 2007/08/18
2064         - added configure check for strnlen, and implementation for
2065                 systems that don't have it, or that have it implemented
2066                 incorrectly.  Went a little paranoid here, since
2067                 AC_FUNC_STRNLEN doesn't set a define in config.h,
2068                 so I had to do it manually, and check in case autoconf
2069                 changes in the future... ugh.  See src/strnlen.h for
2070                 the gory details.
2071         - added code in probe.cc to fetch the device's description.
2072                 The description is now part of the probe results
2073                 along with the PIN.  Updates to protocol.h, adding
2074                 a new attribute definition.
2075                 Thanks to Rick Scott for pointing out the code in
2076                 XmBlackberry where he implemented this first.
2077         - fixed header dependency in record-internal.h
2078         - updated the "required autoconf" version to 2.61 for root build
2079         - moved nested structs out of the record classes that contain them,
2080                 in order to better support SWIG and Python
2081 2007/08/17
2082         - changed bcharge to use getopt() for its argument processing
2083         - added options -p and -s to bcharge, to adjust usb suspend
2084                 settings automatically where possible
2085         - updated the udev rules to use the new bcharge settings
2086         - updated the bcharge man page with the new arguments
2087 2007/08/16
2088         - cleaned up Usb exception handling, moving libusb error code
2089                 processing into the Usb::Error exception class.
2090                 error.cc is now an empty shell
2091         - added return codes to the Usb::Error exceptions
2092         - removed aboutdialog.{h,cc} from the backup GUI since even
2093                 Debian stable now has up-to-date gtkmm libraries
2094         - added more user friendly error message for the "device busy"
2095                 case, recommending 'rmmod usb_storage'.
2096 2007/08/09
2097         - added better error checking to bcharge.cc
2098         - version bump:
2099                 - configure.ac
2100                 - src/Makefile.am
2101                 - src/version.cc
2102                 - gui/src/BackupWindow.cc
2103                 - src/Doxygen
2104                 - rpm/barry.spec
2105                 - debian/changelog
2106                 - opensync-plugin/src/barry_sync.cc
2107         - removed usb_set_configuration() check from bcharge.cc, since
2108                 that may fail under normal operation, in this case
2110 Release: version 0.8 - 2007/08/03
2111 ------------------------------------------------------------------------------
2112 2007/08/03
2113         - moved Interface implementation to usbwrap.cc file
2114         - added dout debugging messages to usbwrap.cc
2115         - clarified unhandled packet error message in socket.cc
2116         - added temporary workaround in opensync-plugin environment's
2117                 Reconnect(), for odd message seen on newer Blackberry
2118                 devices
2119         - fixing issues with Brian Edginton's MessageRecord patch (2007/06/29)
2120                 - fixed missing size check in message oriented ParseHeader()
2121                 - fixed endian conversion issues (also found one pre-existing
2122                         endian bug in the process)
2123                 - moved message timestamp converter code to time.cc
2124         - added Barry version number to opensync plugin name
2125         - changed maintainer scripts and rpm.spec to use bzip2 instead of gzip
2126         - added opensync-plugin to configure script build
2127         - added -S option to btool, to list supported parsers and builders
2128         - slight change to opensync-plugin/buildgen.sh to cleanup config.h.in~
2129         - opensync-plugin/README update
2130         - added opensync-plugin/patches for others who may be building and
2131                 testing the plugin with OpenSync 0.22
2132         - added debian package build scripts to maintainer/
2133 2007/08/01
2134         - added entry to doc/TroubleShooting.txt
2135 2007/07/28
2136         - added doc/TroubleShooting.txt
2137 2007/07/27
2138         - opensync plugin:
2139                 - fixed bug in vcard.cc that was using the FN field
2140                         for the broken-down name instead of N
2141                 - added dbId and dbName to DatabaseSyncState
2142                 - added Reconnect() functionality to BarryEnvironment class
2143                         and moved connect logic out of barry_sync.cc
2144                 - changed the batch commit functionality in barry_sync.cc
2145                         to single-change-commit.  Why?  Because opensync
2146                         0.22 groups all batch changes into one group
2147                         and calls one batch commit function, even if you
2148                         registered two.  Moving to single change commit
2149                         mode removes a chunk of unneccessary code
2150                         from the plugin as well, and can in theory
2151                         ease memory pressure in the library.
2152                 - added FinishSync() to perform actions needed on successful
2153                         syncing completion
2154                 - disconnect on successful sync completion, and reconnect,
2155                         since the device's dirty flags don't seem to
2156                         be updated until a disconnect occurs.
2157 2007/07/26
2158         - added ReadDataArray() to data.h, using an istream instead of
2159                 requiring a file
2160         - added raw data version of BuildField() to record-internal.h
2161                 This is so that btool doesn't add extra null terminators
2162                 to unknown data, when restoring with option -s
2163         - fixed bugs in r_contact.cc:
2164                 - fixed bug that caused a LastName/FirstName swap
2165                         if FirstName was empty and you wrote a contact
2166                         record into the device.... First/Last Name
2167                         fields are position sensitive, and the code
2168                         was missing the empty FirstName case on writing
2169                 - fixed bug in BuildFields() and Dump() where they
2170                         were not updated to handle the new field
2171                         table added for the postal address changes
2172                         on 2007/07/20, oops
2173         - opensync plugin:
2174                 - changed the plugin config file, so it is possible to
2175                         turn debug output on/off without recompiling
2176                 - moved the standalone Map2Uid() function into
2177                         the DatabaseSyncState class, and changed the
2178                         code to produce "contact-#" and "calendar-#"
2179                         UID strings, instead of just numbers
2180                 - changed default PIN to -1, so that if the user doesn't
2181                         configure properly, it will fail... this is a
2182                         safety measure to avoid syncing with different
2183                         devices and corrupting the cache/idmap...
2184                         this should be fixed someday, to handle this
2185                         automatically
2186                         On second thought... is this right?  Perhaps
2187                         it is better to fail if the PIN is not what
2188                         is expected, so a user doesn't accidentally
2189                         sync the wrong device and lose data.
2190                         Actions to take on new PIN:
2191                                 - force slow_sync, or
2192                                 - fail
2193                 - incorporated the new VCardConverter code into the
2194                         main barry_sync.cc plugin code
2195                 - fixed bug that did not clear the devices dirty flags
2196                         in the case where a sync only read data from it,
2197                         and didn't write
2198                 - changed PIN error message number to hex
2199 2007/07/20
2200         - minor wording change in backup GUI prompt: "Backup working..." to
2201                 "Backup in progress..."
2202         - renamed Contact class's Title field to JobTitle for clarity
2203         - added record function ParseFieldString(), which properly handles
2204                 strings from the device that have multiple null terminators,
2205                 and changed the record parsing code to use this new function
2206         - moved FullName() function from ldif.cc to r_contact.cc since it
2207                 is generally useful in areas outside of LDIF processing
2208         - refactored postal addresses in the Contact record class into
2209                 a new class called PostalAddress
2210         - renamed Address class in record.h to EmailAddress
2211         - moved Contact::GetPostalAddress() to record.cc as part of the
2212                 new PostalAddress class and renamed it
2213                 PostalAddress::GetLabel()
2214         - opensync plugin:
2215                 - refactored vformat helpers into separate base class
2216                         called vBase
2217                 - added vCard converter class
2218                 - commented out the code that skipped over the adding
2219                         of empty attribute values and parameters,
2220                         since VCARD depends on some of this behaviour
2221                 - movified vformat.c:vformat_find_attribute() to take
2222                         an extra nth argument, in order to search
2223                         for multiple attributes with the same name...
2224                         the way this is coded is a bit inefficient...
2225                         but we're moving away from vformat when we move
2226                         to OpenSync 0.3x / 0.40, so this is just temporary
2227                         pain
2228 2007/07/19
2229         - added SUBSYSTEM=="usb_device" to example udev rules, in order
2230                 to avoid running bcharge for each endpoint that is
2231                 added by udev, when first plugged in.  Running bcharge
2232                 back-to-back multiple times can crash some
2233                 Blackberries.
2234 2007/07/14
2235         - opensync plugin:
2236                 - fixed ID mapping bug in the case of a non-numeric UID
2237                         from syncing external -> Barry, and then the
2238                         new Barry ID would look like a new change
2239                         when syncing back from Barry -> external.
2240                 - added support for slow sync
2241                 - added clear() to idmap class
2242                 - added vformat attr parameter extraction class
2243                 - added more trace logging during vformat/Barry conversions
2244                 - added Notification time support
2245                 - handled "all day" vformat special case, when DTEND
2246                         does not exist in a vformat data block
2247         - changed the min1900_t time conversion functions to handle
2248                 the 0xffffffff special case, when notifications
2249                 are turned off on a calendar event (src/time.cc)
2250         - also made the calendar data dump output clearer for
2251                 disabled timestamps, and added debug output
2252                 for the raw min1900 value, in case there are more
2253                 special cases in the future
2254 2007/07/13
2255         - fixed null pointer access in opensync's HasMultipleVEvents()
2256 2007/07/12
2257         - upper management directive: revert all OpenSync 0.3x changes
2258                 and proceed with OpenSync 0.22.  Reverting the
2259                 opensync-plugin/src tree to Barry 0.7 status.
2260 2007/07/06
2261         - reorganized exception and trace code in opensync plugin
2262         - added XmlToCalendar() function, based on unfinished opensync
2263                 library API that is not yet finished... will be
2264                 committed to opensync svn tree when complete
2265         - added OSyncXMLField logger to plugin trace class
2266 2007/06/29
2267         - applied email MessageRecord patch from Brian Edginton (thanks!)
2268         - updated Message::Dump() to output more valid mbox data...
2269                 the goal is to be able to do:
2270                         btool -d "Messages" > email.mbox
2271                         mutt -f email.mbox
2272         - changed some TODO's to FIXME's to keep it grep-consistent
2273         - applied Folder support patch from Brian Edginton
2274         - fixed pedantic compile warnings, and changed order in src/Makefile.am
2275         - removed unneeded cast in src/r_folder.cc
2276 2007/06/28
2277         - minor adjustment to ctags building in buildgen.sh
2278         - applied patch from Brian Edginton for better boost detection
2279                 in configure.ac
2280         - added boost usage message to btool -h output
2281 2007/06/21
2282         - more porting of OpenSync module to 0.30
2283         - added ctags build for opensync source tree to buildgen.sh
2284 2007/06/14
2285         - changed PKG_CONFIG_PATH setting in rpm script, so that systems
2286                 like SuSE that have an extensive PKG_CONFIG_PATH
2287                 in general use will not break on build
2288         - added PKG_CONFIG_PATH to debian script too, just in case :-)
2289         - added debian/changelog to doc/ReleaseChecklist.txt
2290         - added comment to rpm/barry.spec regarding SuSE RPM builds
2291 2007/06/08
2292         - applied patch from Niels de Vos fixing debian package build
2293                 dependency
2294         - applied Brian Edginton's Saved Email Messages patch
2295         - updated r_saved_messages.cc comment to match header
2296         - added GetRecType()/GetUniqueId() to r_saved_messages.h, since
2297                 SetIds() is already there
2298         - removed Address version of operator<<() from message related headers
2299                 and moved into record.h
2300         - added std::hex to message related dumps, and changed output to
2301                 be more mbox-like
2302         - updated doc/CodingStyle.txt to cover switch() statements
2303         - opensync compiles again, with 0.30!  (not functional yet)
2304                 - moving closer to more modular and reusable plugin functions
2305         - updated release checklist for opensync version number
2306 2007/06/07
2307         - added doc/CodingStyle.txt... preliminary version
2308 2007/06/06
2309         - applied Brian Edginton's PIN message patch
2310         - changes to PIN message patch:
2311                 - fixed missing backslash in src/Makefile.am
2312                 - fixed tab alignment throughout
2313                 - removed typedef from Address struct
2314                 - added clear() to Address... might as well, if it it is
2315                         going to be a standalone type
2316                 - fixed missing comma in PINMessageFieldLinks table
2317                 - changed MessageRecordId in PINMessage to load from a new
2318                         uint32_t field in CommonField, instead of piggy
2319                         backing on a field for other use
2320         - did some testing and found that PINMessage's MessageRecordId
2321                 is the same as the RecordId given through the SetIds()
2322                 API... but these Id's are duplicated in the protocol...
2323                 RecordId is stored in the protocol header, while
2324                 MessageRecordId is stored in the record it self as
2325                 a common field... added RecType and RecordId to
2326                 PIN Message so that we store both of these
2327         - updated AUTHORS
2328 2007/05/27
2329         - added item to gui/TODO
2330         - applied Brian Edginton's s11n-boost.h patch
2331 2007/05/25
2332         - renamed template values to more consistent naming scheme
2333         - applied memos and tasks patch from Brian Edginton, slightly
2334                 modified to split into the new separate files system
2335         - changes to memos and tasks classes:
2336                 - reformatted the code to match coding style
2337                         (come on Brian) :-)
2338                 - added copyright notice
2339                 - changed class to singular (Memo, not Memos)
2340                 - placed in Barry namespace
2341                 - added #ifdef header protectors
2342                 - added new files to Makefile.am
2343                 - added new r_*.h headers to record.h
2344         - added support for Memos and Tasks to tools/btool.cc, based on
2345                 Brian Edginton's patch
2346                 (currently commented out, for Boost library reasons):
2347         - added doc/CommitPolicy.txt
2348         - updated AUTHORS
2349 2007/05/24
2350         - added ctags generation to buildgen.sh
2351         - applied record.{h,cc} fix patch from Brian Edginton
2352                 - ClassFlag
2353                 - FreeBusyFlag
2354                 - Clear() fixes
2355         - fixed broken formatting in above patch
2356         - refactored record parser classes into separate files for each
2357         - changed the ConvertHtoB<> template to inline, as it caused
2358                 linker errors with the new file layout
2359 2007/05/17
2360         - fixed bug in Debian packaging that put util commands in
2361                 /bin and /sbin instead of /usr/bin and /usr/sbin
2362         - commited byteswap.h replacement code from gm2net
2363         - backup gui:
2364                 - removed unneeded debug messages on stdout
2365                 - changed the default for debug output to "off"
2366                         and added a command line option to turn
2367                         it on if necessary  (--debug-output)
2368                 - command line option --help now also works
2369         - fixed bug in Calendar class where it didn't initialize
2370                 RecType properly... and cleaned up other RecType
2371                 code to use the GetDefaultRecType() functions,
2372                 localizing the constants in one place
2373 2007/05/11
2374         - applied patches from Brian Edginton, parsing more
2375                 fields in Contact and Calendar records
2376         - added Brian Edginton to AUTHORS
2377         - reformatted record.{h,cc} to match the rest of the code,
2378                 removed commented out code, and removed mention of
2379                 Outlook from the comments.
2380         - updated udev/10-blackberry.rules.Debian for Debian Etch
2381         - updated debian/rules to use new udev rules file
2382         - removed debian/postinst, as stable versions of Debian now
2383                 have a recent udev, and don't need the special handling
2384         - updated Debian build scripts to build separate packages:
2385                 libbarry
2386                 libbarry-dev
2387                 barry-util
2388                 barrybackup-gui
2389         - added menu support to Debian barrybackup-gui package
2390         - made the buttons bigger in the backup GUI, as they were too
2391                 small on Debian Etch
2392         - opensync plugin:
2393                 - more progress in porting to opensync 0.30, heavily
2394                         based on the example plugin in the opensync
2395                         svn tree...  this is a work in progress, and so far
2396                         is incomplete
2397 2007/05/04
2398         - opensync plugin:
2399                 - partial porting to opensync 0.30 (in progress!)
2400                 - fixed bug in sync_done where it reported context error
2401                         and then success afterward
2402         - checking in new INSTALL files based on Etch's autoconf run
2403         - added item to gui's todo list
2404         - bumped version numbers to 0.8 in:
2405                 - configure.ac
2406                 - src/Makefile.am
2407                 - src/version.cc
2408                 - gui/src/BackupWindow.cc (about dialog)
2409                 - src/Doxygen
2410                 - rpm/barry*.spec
2412 Release: version 0.7 - 2007/05/02
2413 ------------------------------------------------------------------------------
2414 2007/05/02
2415         - added rpm building to maintainer/release scripts
2416         - added "HEAD" feature to tarball creation script, for easier testing
2417         - updated maintainer/README
2418         - updated maintainer/release.sh to use new HEAD feature too
2419 2007/05/01
2420         - added pppob to rpm barry.spec
2421         - bumped release number in barry.spec
2422 2007/04/30
2423         - opensync plugin:
2424                 - fixed size check bugs (strlen() == 0 when empty)
2425                 - finished refactoring calendar conversion routines
2426                 - started timezone parsing, but this may go away
2427                         if we use opensync 0.30's time functions and
2428                         xml data format...
2429                 - added development note to README
2430 2007/04/29
2431         - updated README and opensync-plugin/README with more current
2432                 build instructions
2433         - opensync plugin:
2434                 - refactored some calendar conversion routines
2435                 - added Barry->vCalendar conversion for recurring appointments
2436 2007/04/27
2437         - opensync module:
2438                 - removed some unneeded trace logs
2439                 - fixed VEventConverter constructor bug, with uninitialized
2440                         m_Data pointer
2441                 - eased up the requirement that every calendar event
2442                         must have a summary... defaults to "<blank subject>"
2443                         if empty
2444                 - added more VCALENDAR fields to match Barry::Calendar record
2445                 - fixed case sensitive compares in vformat.c
2446 2007/04/26
2447         - opensync module work:
2448                 - added id map class to map string uid's from OpenSync to
2449                         numeric ID's from the Blackberry
2450                 - fixed bug in CommitChange() where it was still using
2451                         a hard coded calendar record state table
2452                 - added lots of logging throughout
2453                 - fixed bug where newly added records didn't use the
2454                         change object's uid, but created a new ID,
2455                         causing another sync on the next run
2456                         i.e. (CommitData_t was missing an argument)
2457                 - fixed bug where uninitialized notification time was
2458                         written to the Blackberry
2459         - more opensync module work:
2460                 - refactored the environment class into another subclass
2461                         called DatabaseSyncState, and moved some stand-
2462                         alone functions from barry_sync.cc into
2463                         the environment classes
2464                 - added a tagged constructor to the trace class
2465                 - fixed idmap::Load() to clear map before loading
2466 2007/04/20
2467         - renamed barry-config to barry-sync, the default configuration
2468                 file for the opensync module... and filled it with
2469                 a sample configuration
2470         - added code to update the calendar cache, and write it to disk
2471                 on success (opensync module)
2472         - added code to clear dirty flags in the device (opensync module)
2473         - allowed comments in the config file
2474         - added vformat.c from libopensync 0.22, since the vformat
2475                 routines are not available from the plugin side
2476 2007/04/19
2477         - updated gui/TODO
2478         - added -d switch to bcharge to switch back from 0001 to 0004 mode,
2479                 changed the auto-detection logic to ignore iProduct and
2480                 only use idProduct, and updated man page
2481         - updated breset to recognize the Pearl in 00004 mode as well
2482         - changed src/probe.cc logic to assume that the second endpoint
2483                 pair is the one needed for database communication, instead
2484                 of doing a reverse search from the end... newer Pearls
2485                 in Dual mode seem to have at least 3 or 4 endpoint pairs,
2486                 and the old search didn't always work
2487         - applied sourceforge patch #1696884 from Peter Silva, updating
2488                 the Debian build for Etch, and including all files in one deb
2489         - added Peter Silva to AUTHORS file
2490         - uncommented the "make distclean" in debian/rules, and removed
2491                 the reliance on /tmp when installing 99-barry-perms.rules
2492         - applied bb_task_format.txt patch from Peter Silva
2493         - fixed each misspelling of "recurrance" to "recurrence"
2494         - tweaked src/probe.cc again for paranoia's sake... start at
2495                 offset 1 if more than 1 endpoint pair, otherwise start
2496                 search at 0
2497         - split up opensync module into multiple source files, and started
2498                 using the opensync vformat routines for parsing and building
2499                 the vevent20 data (experimental)
2500 2007/04/04
2501         - more incremental work on the opensync plugin, adding ADDED
2502                 and MODIFIED functionality... (experimental!)
2503 2007/03/30
2504         - added code to dump extra descriptors during device discovery,
2505                 if found
2506         - bumped opensync version number in configure.ac, and made
2507                 the configure scripts more consistent with the rest
2508                 of the project
2509         - fixed printf-format size bug in opensync module
2510 2007/03/29
2511         - applied patch from Niels de Vos, fixing deb udev rules for Pearl
2512         - updated AUTHORS
2513         - fixed extra space bug in LDIF output (added space when creating
2514                 FullName, even if there was no last name)
2515         - fixed Address Book record parsing in Contact class... the
2516                 Blackberry database uses field id 0x20 for both the
2517                 first and last names, and if only a last name exists,
2518                 the first name will be empty.  Fixed parser to handle
2519                 this special case, without relying on string length.
2520                 Thanks to Troy Engel for reporting above two LDIF bugs.
2521         - added a few more constants to bcharge.cc
2522         - renamed opensync's configure.in to configure.ac
2523 2007/03/17
2524         - fixed bcharge to avoid endless reset loop... oops
2525 2007/03/16
2526         - reorganized bcharge.cc to make it possible to switch between
2527                 Pearl modes 0004 and 0001
2528         - added flag to BadPassword exception class, to signal whether
2529                 the library considers the device "out of retries" or not
2530         - updated socket.cc for new BadPassword exception
2531         - added special case to Controller class destructor to reset the
2532                 device if being destroyed in a half-open state... this is
2533                 a temporary fix until we understand how to handle
2534                 the "already open" message we get when opening the Desktop
2535                 in some cases
2536         - added password prompt dialog to the backup GUI
2537         - fixed possible memory leak in GUI's DeviceInterface::Connect()
2538 2007/03/08
2539         - committed Troy Engel's bbrules_mass_symlinks.patch, fixing
2540                 udev rules for the Pearl
2541         - updated 10-blackberry.rules.Debian to match 10-blackberry.rules's
2542                 functionality
2543         - applied Troy Engel's barry.spec patch to generate all required
2544                 RPM's... Thank you!  Notes in the README taken from
2545                 the sourceforge tracker entry containing the patch.
2546         - added libusb lib flags to tools/ and examples/ makefiles,
2547                 and tweaked configure.ac with a better default,
2548                 to build cleanly on RHEL 4
2549         - modified rpm/barry.spec:
2550                 - does not create doc-only barry base package anymore
2551                 - fixed "barry-backup" typo
2552                 - removed the patch step, as version 0.7 shouldn't need it
2553                 - added license file to each package
2554                 - commented out console perms scripts, pending mailing list
2555                         discussion
2556         - updated AUTHORS
2557         - applied Troy Engel's barry.spec patch to fix RHEL4 compile issues
2558         - fixed 80 column wrapping error in barry.spec, thanks to Troy Engel
2559                 for the bug report
2560         - applied Troy Engel's udev permissions patch for Redhat/Fedora
2561                 systems, which automatically set the ownership of a
2562                 newly plugged in device to the currently logged in console
2563                 user.
2564         - added udev/README to document what all those files are for...
2565                 part of the text comes from the sourceforge comment
2566                 on the above udev permissions patch from Troy Engel
2567         - uncommented the console perms scripts for rpm/barry.spec
2568         - added libglademm-2.4 to gui/README's dependency list
2569         - made usbwrap.* calls more threadsafe
2570         - added Usb::Timeout exception for timeout errors
2571         - added preliminary UsbSerData support to library for GPRS modem
2572                 functionality, using Rick Scott's XmBlackBerry's serdata.c
2573                 as a guide
2574         - added overloaded Socket::Send() for sending without receiving
2575         - added preliminary pppob command line tool
2576 2007/03/02
2577         - version bump in:
2578                 - configure.ac
2579                 - src/Makefile.am
2580                 - src/version.cc
2581                 - gui/src/BackupWindow.cc (about dialog)
2582                 - src/Doxyfile
2583                 - rpm/barry.spec
2584         - build system tweaks for opensync-plugin, and added a buildgen.sh
2585                 for it
2586         - added better debug messages in probe.cc and usbwrap.cc's
2587                 device discovery code
2588         - changed error handling for null interface->altsetting pointers
2589                 when doing device discovery in usbwrap.cc.  Seems that
2590                 some devices report a higher number in bNumInterfaces
2591                 than are really available... in this case, let's
2592                 just ignore the missing data and assume success
2593         - applied udev script patch #1663986 from Troy Engel
2594         - applied barry-bcharge.spec patch #1672178 from Troy Engel
2595         - ReleaseChecklist update
2596         - added rpm/README based on Troy Engel's patch notes
2597         - updated new barry-bcharge.spec for version 0.7, removing patch
2598                 dependency
2600 Release: version 0.6 - 2007/02/28
2601 ------------------------------------------------------------------------------
2602 2007/02/28
2603         - fixed size checks for device database records larger than 64K
2604                 Thanks to Michael Brown for the bug report.
2605         - added initial release maintainer scripts
2606         - fixed odd backup success message in GUI when doing a backup with
2607                 no databases selected in configuration
2608                 Thanks to Michael Brown for the bug report.
2609         - added udev permissions file patch from Michael Brown
2610         - added Michael Brown to AUTHORS
2611         - updated README, gui/README, and doc/USB-capture.txt
2612         - added -o command line switch to bcharge.cc, and updated man page
2613 2007/02/23
2614         - changed library behaviour so it only turns on libusb debug output
2615                 if in data dump mode.  In btool, -v controls this output.
2616         - minor stream formatting fix in btool
2617         - added OpenSSL dependency to build for password hash support
2618         - made debug dout() output conditional on Init() flag... In btool,
2619                 -v now controls this as well
2620         - reverse engineered more of the initial probe packets, and
2621                 implemented probing in struct based code... changes include:
2622                 - added support for "attribute fetch" packets, used at
2623                         the beginning of USB conversations
2624                 - defined object/attribute id codes for the PIN number
2625                 - made Protocol::SocketCommand more robust, and implemented
2626                         its sequence number behaviour
2627                 - moved ModeSelectCommand into SocketCommand, as it is a
2628                         socket 0 level command
2629                 - added initial protocol struct: PasswordChallenge
2630                 - renamed Barry::Packet to DBPacket
2631                 - added ZeroPacket for socket 0 packet creation and analysis
2632                 - Barry::Packet is now the base class for the above
2633                 - implemented socket 0 behaviour in socket.cc
2634                 - changed return values for Send/Receive/Packet/NextRecord
2635                         members in the Socket class from bool to void, as they
2636                         don't generate errors themselves, but only can
2637                         have an error if Usb::Device throws an exception.
2638                         Cleaned up all code that called these members as well.
2639                 - removed "last status" from Socket class as it was unused
2640                 - updated probe.cc to use new socket 0 implementation
2641                 - removed two of the hard coded packet handshakes in favour
2642                         of socket 0 packets
2643                 - updated controller.cc:
2644                         - uses new socket 0 implementation
2645                         - removed "flag" hack when opening sockets and
2646                                 selecting modes, as it should use the
2647                                 socket 0 sequence number
2648         - added initial, incomplete prototype header for the C API
2649         - updated some .cvsignore files
2650         - updated TODO
2651         - updated ReleaseChecklist.txt, adding rpm spec file
2652         - added the following to ZeroPacket:
2653                 - ChallengeSeed()
2654                 - RemainingTries()
2655                 - SocketResponse()
2656                 - SocketSqeuence()
2657         - moved Command() to base Packet class
2658         - added comments to protostructs.h and size constants for the
2659                 new PasswordChallenge struct
2660         - added password support to Socket and Controller classes
2661                 Thanks to Rick Scott's XmBlackBerry for the openssl
2662                 password hashing logic.
2663         - updated btool to use new password support, and updated its man page
2664 2007/02/22
2665         - updated Doxygen input files and version, and added to ReleaseChecklist
2666         - fixed btool PIN output for LDIF mode, now commented in output
2667         - major LDIF overhaul:
2668                 - split LDIF specific code out of the record class and
2669                         into its own
2670                 - fixed "full name" behaviour that added an extra space
2671                         in dn attributes, as reported by Troy Engel
2672                 - added support for mapping of LDIF attributes to Barry
2673                         contact field names
2674                 - fixed base64 handling, so attributes are only so encoded
2675                         if necessary
2676                 - fixed base64 attribute reading inconsistency... some
2677                         notes fields were missed in old version if not
2678                         encoded
2679                 - added support for specifying alternate attribute for
2680                         constructing a FQDN, instead of just "cn"
2681                 - updated btool and upldif to use new features
2682         - large update to btool manpage
2683         - fixed initialization bug in Contact constructor (missed RecType)
2684 2007/02/15
2685         - added ktrans.cc to make reading of kernel usbfs_snoop logs easier
2686         - removed commented code from translate.cc
2687         - added Pearl handshake support to bcharge.cc, which resets the
2688                 Pearl so that the vendor specific 0xFF class exists.
2689                 This should allow use of btool on the Pearl.
2690         - added Data::AppendHexString to data.cc
2691         - added better probing support for the Pearl, so it detects the
2692                 Product ID 0x0004 mode, and does a search for class 0xFF
2693                 instead of hardcoding it.
2694 2007/02/10
2695         - applied README patch from Ian Darwin
2696         - minor tweaks to README
2697         - added missing errno.h header in src/usbwrap.cc for AMD64
2698                 Thanks to Jonathan Hudson for reporting the bug.
2699         - tightened up size checks in Data::ReleaseBuffer()
2700         - stable libusb *does* return the actual length of the USB packet...
2701                 fixed this in usbwrap.cc to set the actual size of read data,
2702                 and removed the size hacks elsewhere in the code:
2703                 probe.cc, protocol.cc, socket.cc, usbwrap.cc
2704 2007/02/09
2705         - added proper return codes for error conditions in btool.cc
2706         - clarified some stream output code in the library, for hex/dec numbers
2707         - removed old, non-working connect.cc test program
2708         - added iomanip to debug.h
2709         - changed usbwrap to call libusb again if EINTR and EAGAIN
2710                 This should fix one of the OpenBSD issues
2711 2007/02/04
2712         - updated AUTHORS
2713         - fixed bug in barrybackup GUI that didn't create the target path
2714                 if the user didn't do Edit | Config first.
2715                 Thanks to Ian Darwin for reporting the bug.
2716         - applied gui/src/ConfigFile.cc header fix patch for OpenBSD
2717                 from Ian Darwin
2718 2007/02/03
2719         - added initial btool.1 man page from Ian Darwin
2720         - updated man/Makefile.am for new btool.1
2721         - updated AUTHORS
2722         - applied btool -h help clarification patch from Ian Darwin
2723 2007/02/02
2724         - reworked exception hierarchy, so applications can handle all
2725                 Barry related exceptions, including Usb errors, with
2726                 one base class: Barry::Error
2727         - fixed all the ripple changes this caused throughout the codebase
2728         - added BadPassword exception
2729 2007/02/01
2730         - version bump in:
2731                 - configure.ac
2732                 - src/Makefile.am
2733                 - src/version.cc
2734                 - gui/src/BackupWindow.cc (about dialog)
2735         - updated doc/ReleaseChecklist.txt
2736         - added usb-level breset.cc command line tool
2737         - fixed bug in gui/src/tarfile.* for systems where
2738                 sizeof(int) != sizeof(void*)
2739                 - TarFile class now uses a plugin style for the compression
2740                         operations, to allow for threadsafe versions if needed
2741                         in the future.
2742                 - also fixed leaked file handle bug in open_compressed()
2743                 - Thanks to Jonathan Hudson for reporting this for 64bit systems
2744         - minor signed comparison fixes in the library
2745         - added better protocol data dumping code in probe.cc
2746         - added Usb::Device::BulkDrain(), to prevent Barry from hanging
2747                 due to pending reads
2749 Release: version 0.5 - 2007/01/26
2750 ------------------------------------------------------------------------------
2751 2007/01/26
2752         - added missing errno.h header to gui/src/util.cc
2753         - lots more endian fixes after testing on iMac
2754         - iostream output size fixes
2755         - added option to btool to reset the device via software
2756         - beefed up exception handling in barrybackup
2757         - checked in opensync work-in-progress: trace logging, pointer bugfix
2758                 this is still experimental
2759         - added aboutdialog.* files from gtkmm24 2.10.6, so we have a dialog
2760                 class for systems running older versions of gtkmm, like
2761                 Debian stable
2762         - uncommented the about box menu handler
2763         - added "cleanall" option to root buildgen.sh script
2764         - update ReleaseChecklist.txt
2765         - removed CVS auto-history strings from aboutdialog.*
2766 2007/01/25
2767         - found a link between the unknown field in tagged protocol headers
2768                 and the unknown field in RecordStateTable entries.  This
2769                 field matters when uploading certain databases, such as
2770                 Browser Options.  It is unknown what this field really
2771                 means, but we're calling it RecType.  Updated the API
2772                 to use this in all parser objects and builder objects
2773                 and record objects that use it.
2774         - changed some uses of uint64_t to uint32_t, in Contact and
2775                 Calendar record objects... unique IDs only seem to be
2776                 32 bits
2777         - added new static function to record classes: GetDefaultRecType()
2778                 This returns the default rectype that should work
2779                 for that record.  Ideally this should be retrieved from
2780                 the device, but in the case where a database has no
2781                 records, this info would be good to know.
2782         - updated convenience template function Controller::AddRecordByType()
2783                 to use GetDefaultRecType()
2784         - documented the recurrence data and how to use it in Calendar objects
2785         - added data debug output for incoming USB packets in the
2786                 socket class... when we ported to the stable libusb
2787                 we lost some of the verbose output... this should get it
2788                 back.  (In the official release, you need to uncomment
2789                 ddout() in debug.h for the full blast of debug output).
2790         - backup GUI updates:
2791                 - changed error_done signal into a pure error signal,
2792                         and changed the logic so the restore continues
2793                         even if there was a protocol error on one database
2794                 - changed status bar messages to show what's happening
2795                         i.e. Backup or Restore
2796                 - default to not restore the "Handheld Agent" database as
2797                         it appears to be read-only on the device
2798                 - added temporary Restore & Backup mode for debugging
2799                 - added extra hyphen to backup files to show date/time better
2800                 - updated GUI to save and restore the new RecType field
2801                         supported now by the library
2802 2007/01/21
2803         - added future considerations to doc/ReleaseChecklist.txt
2804         - applied big endian patch from Jonathan Hudson
2805         - changes to patch:
2806                 - removed endian.h include from barry.h, since applications
2807                         using the library should not care about endianness
2808                 - hard coded the path to config.h in endian.h
2809                         so that endian.h never makes it into the final
2810                         install
2811                 - removed DEFAULT_INCLUDES setting from src/Makefile.am
2812                         for the same reason
2813                 - removed config.h dependency in btool.cc and used library
2814                         Version call instead
2815         - added big/little endian text to the Barry::Version call
2816         - updated AUTHORS
2817         - fixed install location of bcharge when building with ./configure;
2818                 now goes to sbin/ for both source compile and binary packages
2819                 Thanks to Jonathan Hudson for reporting this bug.
2820 2007/01/20
2821         - added smarter timeout values to controller, and allowed
2822                 timeout overrides in the packet, socket, and usbwrap code...
2823                 extra timeouts are needed for erasing databases for
2824                 some older devices
2825         - added an explicit DataDumpParser class to btool.cc, as the
2826                 library doesn't always have extreme verbose debugging on...
2827                 this makes sure anyone can always get raw database packets
2828                 through btool, for development
2829         - added thread callback signals for error finishes and erase_db
2830                 operations, so the GUI is updated properly
2831         - more GUI cleanups (status bar updates, etc)
2832         - finished implementation of GUI restore
2833         - fixed gtkmm/glibmm exception handling when the exceptions
2834                 occur in sigc signal handlers... in that case,
2835                 exceptions need to be handled with
2836                 Glib::add_exception_handler()
2837         - added filename-only reading support to TarFile class
2838         - added pending gui/TODO items
2839 2007/01/19
2840         - backup GUI now properly shows progress
2841         - the buttons become insensitive when backup is busy
2842         - refactored directory check code, and added mkdir check
2843                 when to the backup setup (so the directory exists
2844                 when we try to write to it)
2845         - updated code to use Barry::Data in new namespace
2846 2007/01/18
2847         - moved Data class into Barry namespace
2848 2007/01/13
2849         - updated copyright dates for the new year
2850         - clarified exception message in controller.cc
2851         - fixed pointer initialization bug in controller.cc
2852         - added documentation comments to parser.h and builder.h
2853         - updated ReleaseChecklist.txt
2854         - updated README
2855         - changed Barry library configure scripts to make better
2856                 use of pkg-config for autodetecting dependencies
2857         - added initial Barry Backup GUI (gui/ directory), capable of making
2858                 backups only at this point
2859 2007/01/11
2860         - added doc/ReleaseChecklist.txt
2861         - added version API, returning version number and string
2862         - added Troy Engel to AUTHORS
2863         - added special case to bcharge.cc for the Blackberry Pearl,
2864                 which doesn't reset itself after the charge handshake
2865                 Thanks to Troy Engel for testing.
2866 2007/01/05
2867         - added pkg-config support for the library (libbarry-0.pc.in)
2868         - fixed compile error on g++ 3.3 systems (missing stdint.h
2869                 in probe.h)
2870         - fixed protocol hang at end of Controller operation... in
2871                 controller destructor, it was deleting the USB interface
2872                 before closing the socket at the BlackBerry level, thereby
2873                 leaving the device in Desktop mode
2874 2007/01/04
2875         - support the newer udev packages on Ubuntu, which need slightly
2876                 different rules
2877         - modified bcharge.cc to search for Pearl devices too.
2878                 USB product ID 6
2879         - added Pearl product ID to probe code, but likely not functional
2880                 yet until we find someone able to get a USB capture for us
2881 2006/12/29
2882         - version bump in configure.ac and src/Makefile.am
2884 Release: version 0.4 - 2006/12/29
2885 ------------------------------------------------------------------------------
2886 2006/12/29
2887         - added bcharge.cc to the tools/ directory (whoohoo!)
2888         - added initial release version of rpm/barry.spec (aka bcharge.spec)
2889                 This begins the barry binary release, currently only
2890                 including the bcharge utility, but possibly more in
2891                 the future.  Future binary packages will likely include
2892                 libbarry, libbarry-devel, etc, which barry will then
2893                 depend on.
2894         - added udev rule script for BlackBerry devices
2895         - added man/ directory and bcharge.1 manpage
2896         - added debian/ directory for building deb packages, with initial
2897                 package scripts
2898         - added rpm/make-rpm-tarball.sh for building RPMs
2899         - split out technical docs into separate libbarry.docs file for
2900                 a future Debian install
2901         - added more cleaning to buildgen.sh
2902         - added new udev rule file for Debian stable
2903         - hardcoded g++ to 3.3 in debian/rules as I have multiple versions
2904                 on my system and need to compile releases with stable
2905 2006/12/21
2906         - ported Barry to use the stable branch of libusb
2907                 NOTE: no longer depends on the devel libusb tarball!
2908                         Just use your distro's libusb packages.
2909         - fixed more endian issues
2910         - minor update to TODO
2911 2006/12/15
2912         - moved Exceptions, Hacking, and VersionNotes to doc/
2913         - added doc/USB-capture.txt
2914 2006/12/08
2915         - added Controller::AddRecord() and template helper
2916         - added beginning version of generic RecordFetch<> template
2917         - set default of Barry::Init() to false (no data dump mode)
2918         - added examples/ directory, with first addcontact.cc example
2919 2006/12/07
2920         - added autoconf support based on Peter McAlpine's patch
2921         - renamed Makefiles to Makefile.orig and added script to turn
2922                 on old build system if wanted
2923         - fixed boost-specific error path in btool
2924         - moved platform specific code out of time.h and into time.cc
2925         - moved btool.cc, translate.cc, and upldif.cc out of src/ and
2926                 into their own tools/ subdirectory
2927         - added NEWS file to make autotools happy
2928         - added a "clean" option to the buildgen.sh script... maintainer's
2929                 use only
2930         - reworked autoconf and automake files, to support
2931                 barry as a library, to move the programs into their
2932                 own tools directory, and support a proper installation
2933         - fixed headers in parser.h, btool.cc, and upldif.cc to work
2934                 properly when installed standalone
2935         - added tools/Makefile.plain for testing compiling against
2936                 installed barry library
2937         - added commentary on version number system
2938         - removed Makefile.conf and Makefile.orig, as new autoconf
2939                 system supercedes it
2940         - added support for boost serialization library in autoconf build
2941         - added library version number to autoconf build
2942         - changed boost flag to __BARRY_BOOST_MODE__ to avoid collisions
2943         - removed debug.h dependency from btool.cc
2944         - removed libusb check in favour of specific --with-libusb
2945                 option... may need to revisit this later
2946         - quick installation update in README
2947 2006/12/01
2948         - fixed some missed endian conversions in record.cc and added
2949                 some size checks
2950         - fixed endian issues in time.h
2951         - added 2 more functions to the time zone API, and adjusted
2952                 the time zone table for better defaults in North America
2953         - added btool and upldif to the make install sequence
2954         - added support for Calendar recurrence data
2955         - small doc/TimeZones.txt update
2956 2006/11/24
2957         - added BlackBerry time zone code list, reverse engineered from a 7750
2958         - added GetTimeZone() to convert device time zone codes to useful data
2960 Release: version 0.0.3 - 2006/11/24
2961 ------------------------------------------------------------------------------
2962 2006/11/23
2963         - added return code check to Controller::SaveDatabase()
2964         - fixed Data() class constructor, so it doesn't auto-convert
2965                 from any int
2966         - fixed size checking bug in Packet::ReturnCode() that caused
2967                 uploading to device to fail
2968 2006/11/10
2969         - added Exceptions doc file, documenting the C++ exceptions used,
2970                 and their hierarchy
2971         - fixed small bug in 'make install' which didn't build first
2972         - minor documentation and cleanup in upldif.cc
2973         - added utility functions to the RecordStateTable class,
2974                 GetIndex() and MakeNewRecordId()
2975         - changed btool so that the -d command modifiers can be
2976                 specified multiple times to work with multiple records
2977                 at once
2978         - added Calendar sync code to the opensync module (not complete)
2979         - cleaned up exception handling in the opensync module, making
2980                 more use of the base exception to make sure no
2981                 exceptions leak into the C library code
2983 Release: version 0.0.2 - 2006/10/12
2984 ------------------------------------------------------------------------------
2985 2006/10/12
2986         - fixed casting error in opensync module
2987         - minor updates to documentation to prepare for release
2988 2006/09/29
2989         - added stdint.h to parser.h for uint32_t.  Thanks Ron Gage for
2990                 the bug report
2991 2006/09/08
2992         - large refactoring of the packet parsing and building code,
2993                 splitting the code into 3 groups:
2994                 - record: handles record specific parsing and building...
2995                         this is mostly subfields with CommonField structs
2996                         as their headers, but sometimes has a specific
2997                         header of its own, in the case of email
2998                         Note: email's header is as yet undecoded.
2999                         Record does not know the details of the packet
3000                         formats, only the formats of its own record data.
3001                 - packet: handles building of complete command packets
3002                         and handles parsing of commonly used header values,
3003                         providing an API for it... packet does not know
3004                         the record format details, but does know the
3005                         details of each Database Operation (protocol.h)
3006                         packet format.
3007                         So far, it seems that there is a real separation
3008                         of operation formats and record formats, with the
3009                         record formats being the same even with different
3010                         database operation codes (GET_RECORDS /
3011                         OLD_GET_RECORDS), which was not confirmed before.
3012                         See the header size of the email record after
3013                         refactoring.
3014                 - controller: handles device state, and the management of
3015                         sockets, commands, and checking for response values.
3016                         The Controller object does not know the format
3017                         of either the record or the packet it is sending,
3018                         but does know the protocol handshake logic used
3019                         to talk to the device.
3020         - implemented SetRecord (SET_RECORD_BY_INDEX)... syncing, here
3021                 we come!
3022         - spelling correction in opensync-plugin/AUTHORS
3023 2006/09/01
3024         - added sample hotplug scripts
3025         - added .cvsignore files for doxygen and opensync directories
3026         - added src/endian.h... still need to add configure support to
3027                 handle non-little-endian machines
3028         - added exception handler in opensync plugin commit_change()
3029         - removed the device reset code in probe.cc, as resetting a device
3030                 can renumber the devices in /proc on kernel 2.4.x,
3031                 and cause a failure to reach the device...
3032                 FIXME - this should be changed someday to reset if probing
3033                 fails, and restart the probe on reset, as sometimes
3034                 the blackberry devices respond differently when not reset
3035                 Ideally, the probe protocol should be properly reverse
3036                 engineered.
3037         - added support for retrieving record state table, which is needed
3038                 for smarter syncing
3039         - added support for retrieving, deleting, and clearing the dirty
3040                 flags of individual blackberry device records
3041         - added endian macros throughout the code
3042 2006/07/13
3043         - added opensync-plugin to root Makefile's clean
3044         - updated time conversion calls to match opensync's latest SVN
3045         - added opensync_change_set_changetype() (only add for now,
3046                 for development)
3047         - removed slow sync functions for now
3048 2006/07/07
3049         - added quick "install" makefile target, to src/install by default
3050         - added static library target... this is temporary until autoconf
3051                 stuff is added properly... needed for the opensync plugin
3052         - documented in comments that Barry::BError is intended to be
3053                 the base classes for all exceptions
3054         - added first round of implementation of an opensync plugin, based
3055                 on the example plugin code from the opensync sources
3056 2006/06/22
3057         - added to Contact record class:
3058                 - Clear()
3059                 - ReadLdif() to load and parse LDAP data
3060         - added fragmented send support to Socket class
3061         - added Probe::FindActive() to make client programs more streamlined
3062         - fixed hex/decimal printing of record counts in btool
3063         - added upldif.cc, a utility to take ldapsearch output on stdin
3064                 and upload it to a blackberry
3065         - updated src/.cvsignore
3066 2006/06/16
3067         - added parsing of service book fields:
3068                 - old and new name
3069                 - old and new unique ID (UID)
3070                 - content ID (CID)
3071                 - old and new description
3072                 - DSID
3073                 - bes domain / domain
3074         - date change in legal.txt
3075         - added initial parsing of ServiceBook field 0x09, and calling it
3076                 ServiceBookConfig for now, for lack of a better name
3077         - added parsing for ServiceBook field 0x02 on 72xx Blackberries...
3078                 seems to be a name or description, but doesn't appear
3079                 in the device's own GUI... called "Hidden Name" for now
3080 2006/06/09
3081         - added ServiceBook record class and parser code, based on some
3082                 of Ron Gage's reverse engineering... code is by Chris Frey
3083         - added AUTHORS file
3084         - fixed the libusb set_configuration/claim_interface order
3085                 bug in controller.{h,cc}... already fixed in probe,
3086                 but not controller.  Thanks Ron Gage for finding this.
3087 2006/05/25
3088         - renamed Changelog to ChangeLog in preparation for autoconf
3089         - renamed Todo to TODO in preparation for autoconf
3090 2006/05/18
3091         - make clean cleans up tests properly now
3092 2006/03/31
3093         - turned source code browsing on in Doxyfile
3094         - added LoadDatabaseByName() and LoadDatabaseByType() template members
3095                 to the Controller class
3096                 - new file: controllertmpl.h
3097         - documentation fixes in builder.h
3098         - added static GetDBName() functions to all record classes, in
3099                 support of the template Controller functions
3100         - fleshed out DatabaseDatabase::GetDBNumber() and GetDBName(),
3101                 returning errors properly
3102         - documented sample btool.cc code better, and added example
3103                 of Controller template member usage
3104 2006/03/29
3105         - copyright dates updated for 2006
3106 2006/01/05
3107         - backed out update to latest libusb DEVEL tree, since it is buggy.
3108                 Stick with libusb 2005/11/26
3109 2005/12/30
3110         - added clean target to convenience Makefile
3111         - added Boost to list of dependencies in README
3112         - fixed minor compile warnings in base64.cc
3113         - fixed new USB discovery code, and changed endpoint usage to use
3114                 it, instead of the READ_ENDPOINT and WRITE_ENDPOINT
3115                 constants... constants are now removed
3116                 common.h, controller.cc, probe.cc, probe.h, usbwrap.cc
3117         - added ClearHalt() to Usb::Device (usbwrap.cc)
3118         - updated usbwrap.h to match latest libusb CVS devel tree
3119         - updated README to refer to 2005/12/30 libusb CVS devel tree
3120         - added roadmap to Todo list
3121 2005/12/29
3122         - added convenience Makefile in root directory
3123         - added Hacking document
3124         - minor touchups to README
3125         - added caution warning to README, since this release will support
3126                 delete / overwrite / upload functionality
3127         - minor compile order change in Makefile (speed reasons)
3128         - added dynamic endpoint discovery to probe.cc
3129         - changed claim_interface/set_configuration() function call order in
3130                 probe.cc based on feedback on the libusb mailing list
3131         - added USB discovery code to usbwrap.{h,cc}
3132 2005/12/23
3133         - fixed packing bug in new upload header struct
3134         - renamed CommonField union from data to u to be consistent
3135         - added return_code field to DBAccess struct, for error checking
3136         - added response checking during upload: if response is non-zero
3137                 throw exception in controller.cc
3138         - added sorting operators to record parser classes... when writing
3139                 contact data to the device, it may be important to write
3140                 group link items last, since they reference other contacts...
3141                 This needs to be tested, and if not required, removed.
3142         - added GROUP_FLAG field code to Contact parser class
3143         - fixed offset bug in Contact and Calendar Build() functions
3144         - fixed name bug in Contact::Build(), now output only with data
3145         - added appointment type flag support to Calendar record parser
3146                 class, and "all day event" flag support
3147 2005/12/22
3148         - added autoconf to Todo list
3149         - refactored the protocol structures so that record structs can
3150                 be reused for upload and download
3151         - with new protostructs, more header control is handled by
3152                 controller.cc instead of record.cc parsers and builders
3153         - parser code now accepts an offset, to govern start of record data
3154         - changed Data sizes from int to size_t and removed casts
3155         - removed unneeded Parser::GetHeaderSize() (new protostructs make
3156                 this obsolete)
3157         - added Calendar::Build() for calendar uploads
3158 2005/12/10
3159         - added s11n-boost.h serialization templates for boost::serialization
3160         - added boost::serialization to build
3161         - minor change in usbwrap.cc to display error codes in decimal
3162         - added SizePacket special case code to Socket::Send()... this is
3163                 required when uploaded packet size is a multiple of 0x40,
3164                 a special 3 byte size packet is sent
3165         - moved some record class variables to public: so they can be
3166                 properly serialized
3167         - fixed variable name but in RecordBuilder template
3168         - added -f switch to btool, for saving and loading of record data
3169         - added -s switch to btool, for uploading saved data back to handheld
3170         - added Controller::SaveDatabase()
3171 2005/12/08
3172         - fixed potential casting / pointer bug in controller.cc
3173         - added builder.h, to support uploading
3174         - minor comment fixes in parser.h
3175         - added preliminary Contact protocol record building support
3176         - fixed field order bug in ContactRecord protocol struct
3177         - Contact record.h class now saves unknown Group Link field,
3178                 for later saving
3179 2005/12/07
3180         - added -fno-strict-aliasing to compiler flags so gcc-4.0.x won't
3181                 optimize away protocol struct casts
3182                 see:
3183                 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25235
3184                 http://mail-index.netbsd.org/tech-kern/2003/08/11/0001.html
3185                 http://groups.google.ca/group/comp.lang.c++.moderated/ \
3186                         browse_thread/thread/e7bf096832526f8e/5714701b \
3187                         02a2a3cc?hl=en#5714701b02a2a3cc
3188         - changed headers so that any low level protocol-specific sizes and
3189                 structs are completely hidden in the library...
3190                 this adds library-only header: protostructs.h
3192 Release: version 0.0.1 - 2005/11/25
3193 ------------------------------------------------------------------------------
3194 2005/11/25
3195         - added barry.h for documentation purposes and application usage
3196         - updated README for release
3197         - renamed SBError exception class to BError
3198         - updated Doxyfile to version 1.4.5
3199         - added more doxygen comments
3200 2005/11/24
3201         - added conversion routines (and tests) between time_t and min1900_t
3202         - added -v option to btool to dynamically control protocol dumping
3203         - removed duplicated database database table display in controller.cc
3204         - minor spelling corrections
3205         - added copyright to usbwrap.{h,cc} as per earlier meeting
3206         - added support for Old protocol Calendar entries
3207 2005/11/20
3208         - added legal.txt, to save typing when adding new source files
3209         - ignore test-base64 file (cvsignore)
3210         - added contact-to-ldif generation, and updated supporting code
3211         - added argument to btool to support contact-to-ldif operation
3212         - added Contact::GetPostalAddress()
3213         - added README documentation in preparation for future release
3214 2005/11/19
3215         - added parser.{h,cc} virtual wrapper to generalize LoadDatabase()
3216         - added code to socket.cc's Packet() command to re-receive on
3217                 reception of empty packets... this seems to be a signal
3218                 from the device that it needs more time for long transfers
3219                 Current limit: 10 blank packets before exception is thrown
3220                 Observed maximum blank count: 1
3221         - added MessageRecord and OldMessageRecord to protocol.h
3222         - changed common record field structs to one CommonField struct
3223         - increased default USB timeout to 10 seconds (some loaded devices
3224                 seem to need more time...)
3225         - reorganized record.{h,cc} to try to reduce the code duplication
3226         - record.h classes now "know" the sizes of their corresponding
3227                 protocol structs... this may cause trouble down the line
3228                 with Python, if used(?)
3229         - added Message class for Email records
3230         - removed the "Get*" database functions and replaced with
3231                 general LoadDatabase() call, which loads any database
3232                 available, and parses it with a Parser object
3233         - added GetDBID() for searching for database numbers via name
3234         - added test code to retrieve and display all email
3235         - cleaned up comments
3236         - renamed blackberry.{h,cc} to controller.{h,cc}
3237         - renamed bbtool.cc to btool.cc
3238         - added Makefile.conf
3239         - added copyright notices to source files
3240         - added COPYING file with GPL
3241         - put parser in Barry namespace, and added auto_ptr-like mode for
3242                 store object pointers
3243         - added doxygen docs
3244         - added header comments to convo.awk script
3245         - removed Test() function in Controller object, and made class
3246                 better suited to its general API purpose
3247         - changed OpenMode() so it loads command table and DBDB... it is now
3248                 a public API function
3249         - moved Controller test code to btool.cc and made tool more
3250                 generically useful... can now download any DB by name on
3251                 the command line
3252         - added mode checks to Controller
3253         - added -t and -d command line options to btool
3254         - added base64 routines from John Walker / Fourmilab and Citadel/UX
3255         - converted base64 routines into an API, instead of hardcoded
3256                 file based
3257 2005/11/18
3258         - changed project name to Barry, including namespaces
3259         - renamed sbcommon.* to common.*
3260         - increased USB default timeout to 2 seconds
3261         - fixed formatting bug in Data operator<< output
3262         - cleaned up the protocol packet structs, getting rid of the
3263                 confusing param/simple split... param is now the tableCmd
3264                 from the Command Table
3265         - moved protocol structs from record.h to protocol.h
3266         - added support for older version of the USB protocol, which matches
3267                 the Cassis spec more closely
3268         - fixed the hardcoded offsets in blackberry.cc's protocol parsing
3269         - fixed Socket::Close() so on error, socket flags are reset.
3270                 This stops Close() from being called twice on exception
3271                 destructors
3272 2005/11/17
3273         - added Doxyfile to the project
3274         - tuned Makefile
3275         - added mode selection support to Blackberry class (RIM Desktop,
3276                 RIM Bypass, and RIM_JavaLoader)
3277                 Mode selection governs which socket is used in subsequent
3278                 data transfers.
3279         - added Command Table parsing and protocol support
3280                 Blackberry class, and CommandTable record class
3281         - added Database database parsing and protocol support
3282                 Blackberry class and DatabaseDatabase record class
3283         - added Address book retrieval support - dumps data to stdout for now
3284         - fixed bug in CopyOnWrite mode in Data class, where could allocate
3285                 less buffer than data copied
3286         - added "easy exception" debug output macro
3287         - fixed minor spelling error in protocol.cc
3288         - fixed ModeSelectCommand protocol structure - it is not a parameter
3289                 command, but uses the unknown slots for socket and flag
3290                 data
3291         - removed hardcoded socket numbers from protocol.h
3292         - fixed bug in socket.cc:Open() where packet size was not properly
3293                 saved
3294         - implemented socket::Close()
3295         - fixed sequence number checks, so it is reset properly on socket 0
3296         - added Socket::NextRecord() for multiple record data transfers
3297         - fixed input handling bug in translate.cc
3298 2005/11/11
3299         - added .cvsignore files to project
3300         - added README notes to document the source architecture
3301         - added dbsetup data script, which shows how to get into database
3302                 mode, using the RIM Desktop mode, and open a socket
3303         - added blackberry.{h,cc} class
3304         - added command line parameters to bbtool.cc
3305                 -l = list only
3306                 -p = specify pin of blackberry device
3307         - added blackberry test code in bbtool.cc - debugging the initial
3308                 opening protocol: sockets, modes, etc... see dbsetup for
3309                 results
3310         - added copy-on-write functionality to Data class, so it can be used
3311                 with plain data buffers with little performance impact
3312         - added eout() and ddout() debugging - to separate:
3313                 - regular debug output
3314                 - exception debug output (should probably be logged to
3315                         syslog someday, and never turned off)
3316                 - raw data dump output
3317         - changed errno SBError exception handler to try to decode the error
3318                 numbers into english (limited success)
3319         - fixed probe and socket USB Bulk message handling, so they don't
3320                 use PollCompletions(), but use IO::Wait() (libusb_io_wait())
3321         - added common packet size checker in protocol.cc
3322         - fixed unpacked protocol packet structs... using gcc's
3323                 __attribute__ ((packed)) ... see protocol.h
3324         - added ModeSelectCommand structure (protocol.h)
3325         - finished Socket::Open() call  (Close() not yet implemented)
3326         - moved Socket::Send/Receive() out of private, as they can be used
3327                 for socket 0 operations.
3328         - cleaned up pointer management with macros:
3329                 MAKE_PACKET()
3330                 COMMAND()
3331                 IS_COMMAND()
3332         - added IO::Wait() and IO::Cancel() to correspond with libusb API
3333         - added datadumping in usbwrap for easy protocol capture
3334         - added preliminary record.{h,cc} classes
3335         - added Contact record parsing, and test code
3336 2005/10/20
3337         - syncberry tree started