Added a set of be_*() endian swap functions, for big endian data
[barry.git] / ChangeLog
blob1e9ecaacb9732f8940bc196d9f697c4f345300ea
1 Release: version 0.15 - 2009/01/??
2 ------------------------------------------------------------------------------
3 2009/01/23
4         - removed default argument to CheckSize() so all code specifies
5                 the size it really needs
6         - fixed bug in ParseData() that didn't copy data to receive arg
7         - adding additional javaloader commands and refactoring
8                 this is a work in progress:
9                 - added JLPacket class, encapsulating javaloader protocol
10                 - added new defines for more JL commands
11                 - refactored socket class, using PacketData()
12                         for JL, and Packet() for Desktop (still needs
13                         some work to be really clean)
14                 - began implementing new commands (SetTime())
15                 - thanks to Rick Scott for his reverse engineering effort
16                         in XmBlackBerry, which inspired this code
17         - refactored packet.cc to make JLPacket even tighter
18         - updated doc/USB-capture.txt with link to vusb-analyzer
19                 Thanks to Martin Owens for the link.
20         - added a set of be_*() endian swap functions, for big endian data
21                 JavaLoader code seems to use big endian a lot.
22 2009/01/22
23         - reverted experimental handshaking in IpModem, since the session_key
24                 patch fixed Bill Paul's issue
25         - finished adding IConverter support to r_task and r_timezone
26         - removed r_message_base.h from doxygen RecordParserClasses group
27         - removed unused ClassType variable from Task record class
28         - refactored Calendar and Task record classes, creating new
29                 RecurBase to handle recurrence data
30         - removed FIXME in Socket::Packet(), since socket is set in Send()
31         - cleaned up socket handling and comments in packet.cc
32 2009/01/20
33         - applied Nicolas Vivien's javaloader patch, fixing constant defines
34                 and other small fixes
35         - minor whitespace and spelling fixes to above patch
36         - changed m_ipmodem.cc to send the session key even without password
37                 which should help reduce the "special packets" coming from
38                 the device.
39                 Thanks to Rick Scott and Andy Herkey.
40 2009/01/17
41         - refactored pthread timeout creation into ThreadTimeout() function
42         - added experimental handshaking to IpModem.  This is in response
43                 to Bill Paul's email regarding what he was seeing in the
44                 logs with the special code packets which we dropped
45                 on the floor.  This code is to test whether this handshaking
46                 theory is true.
47 2009/01/16
48         - made maintainer script make-deb-local.sh more robust
49         - added list of target binary packages in ReleaseChecklist.txt
50         - changed to more general Fedora link to Chris Stover's packages
51 2009/01/15
52         - applied Andy Herkey's ipmodem password patch for the Bold
53         - minor fixes to above patch, and in addition to above patch:
54                 - use sizeof(seed), instead of type, in case of future changes
55                 - removed commented out code
56                 - added the null password check back to SendPassword(),
57                   for historical reasons
58                 - removed the null and zero default arguments to
59                   SendPassword(), since they make no sense
60                 - added define for session key size, and added size check
61         - added missing string.h header to src/m_javaloader.cc
62         - updated Debian and RPM packages to include bjavaloader
63 2009/01/14
64         - applied Nicolas Vivien's bjavaloader patch
65         - small fixups to above patch:
66                 - moved cod.h from installable headers to internal headers
67                 - whitespace edits
68                 - copyright statement tweaks
69                 - added blog URLs to copyright list in cod.h where parts
70                         of the structs appear to come from
71                 - removed unused variables to compile with strict settings
72                 - changed char to unsigned char to fix strict compiler
73                         warnings
74                 - removed duplicated a/b from Socket messages, and moved
75                         read/write text to front, in socket.cc
76                 - added NetDirect copyright notice to bjavaloader.cc, since
77                         it is based on btool.cc
78                 - removed unused boost-specific code from bjavaloader.cc
79         - more fixes to above patch: (bjavaloader.cc specifically)
80                 - moved cod.h back to installable headers, since tools/
81                         programs depend on it... this should be fixed
82                         or put in the library as a COD-reading API
83                         so that applications don't need to worry about
84                         packed files, etc.
85                 - fixed potential buffer overflow: removed buffer read used
86                         to skip ahead in file, and replaced with fseek()
87                 - changed SendAppFile() to report errors by exception
88                         instead of by return value, which wasn't checked
89                         anyway... and C++'d the file handle closing
90                 - removed unused StateTableCommand, leftover from btool
91                 - added check for unlikely case of COD file being larger
92                         than size_t, breaking the fread() assumption
93                         for the type == 0xC0DE case
94                 - added checks for fread() failures
95                 - fixed compiler warnings when comparing signed/unsigned,
96                         and changed file operation types from plain int
97                         to size_t/off_t
98         - changes to src/m_javaloader.cc:
99                 - fixed comments to remove Desktop-oriented notes
100                 - moved variables closer to their use point
101                 - removed the duplicated response Data objects in favour
102                         of just one (each default Data object uses 0x4000
103                         bytes of heap)
104                 - removed manual endian swap in favour of htobl()
105                         - oops... this size field is actually big endian.
106                           Since all Barry code assumes that Blackberry
107                           protocol traffic is little endian, a special
108                           case needs to be added in m_javaloader.cc for
109                           this field.  The special case uses autoconf's
110                           endian define.
111                         - fixed long long problem in endian.h (ISO C++
112                           compilers don't support long long) and made
113                           the bswap() functions always available
114                 - removed unused CommandType and m_commandTable members
115                 - fixed exception error messages to indicate command #
116                         instead of Desktop message
117                 - changed Packet() call to PacketData() when sending
118                         file size, since there is no command
119         - added eout() data dump to socket::Packet() unknown send error
120         - fixed my incorrect off_t/size_t check in bjavaloader.cc
121         - removed the '0' JL_UNKNOWN4 command from src/protocol.h,
122                 since the PacketData() change above now handles that,
123                 and I don't think that byte is actually a command, but
124                 really part of the uint32_t size
125                 - Also fixed one remaining 0 command, to use PacketData()
126 2009/01/09
127         - added AT+CLAC note to contrib/modemtest.rb, recording tidbit
128                 from mailing list
129         - updated copyright dates for 2009
130 2008/12/11
131         - fixed missing slash in config sample in doc/www/sync.php
132                 Thanks to sourceforge tracker #2413683 for reporting
133 2008/12/01
134         - added more notes to doc/USB-capture.txt, documenting my kernel
135                 setup for capturing USB traffic, and added size-limiting
136                 kernel patch
137         - added TODO list item for the Blackberry Storm
138 2008/11/30
139         - moved Product ID constants into a single place (src/common.h)
140                 and updated bcharge
141         - added Product ID 8007 for the Blackberry Storm... needs testing
142 2008/11/27
143         - applied ppp chat script patch for AT&T Cingular from
144                 Richard Esplin
145         - added new chat scripts to debian and rpm packages
146         - added known sources of additional Barry binary packages to index.php
147         - turned on call/caller graph support in Doxygen output
148 2008/11/23
149         - applied 'patch' of Martin Owens' Content Store documentation
150         - updated AUTHORS
151 2008/11/22
152         - large refactoring of all message/email record classes, and more
153                 There is now a MessageBase base class, which combines
154                 common email record parsing code in one class.  This base
155                 class is reused by all the specific messages record classes.
156                 This commit also includes support for multiple email
157                 addresses per email, as well as giving IConverter support
158                 to all message classes.
159         - deleted empty *.cc files from project
160         - updated TODO file, removing opensync i18n bug
161         - added TODO item for password support in Opensync... try to avoid
162                 storing the password in the sync config in plain text
163         - fixed dll export bug on ErrnoError exception class
164         - added BadPackedFormat exception for internal use
165         - ServiceBook: added IConverter support, and general cleanup
166                 Refactored ServiceBook class and added some experimental
167                 template functions to generalize the FieldLink table
168                 processing.  If possible, this needs to be expanded
169                 to the general record classes, to reduce the amount of
170                 code duplication during processing of FieldLinks and
171                 CommonField structures.
172                 Also, ServiceBook deals with packed fields, which should
173                 also be extrapolated for general use, and reused if
174                 possible for the new "Calendar - All" Blackberry databases
175                 that are coming out on the new devices and firmare.
176 2008/11/21
177         - updated man/btool.1 with new -i option
178         - fixed bug where opensync plugin didn't pass IConverter to Desktop
179         - added IConverter support to r_calendar.cc
180         - renamed utf8Needed to iconvNeeded, for consistency
181         - added IConverter support to r_folder.cc
182         - added IConverter support to r_memo.cc
183         - added IConverter support to r_message.cc
184         - added EmailAddressList, in preparation for multi-address email
185 2008/11/20
186         - changed Parser base class to pure abstract... this is so that
187                 future API changes to the Parse base class will be
188                 detected by the compiler as errors
189         - added NullParser class, which performs the old Parser function
190         - changed all FieldLink arrays to static
191         - added new IConverter class to support converting the Blackberry's
192                 WINDOWS-1252 charset to/from UTF-8 and more
193         - fixed bug in IConverter that saved end of string instead of
194                 beginning
195         - reorganized barry.h app header and record.h header, so that
196                 internal builds have fewer dependencies
197         - large parser/builder API change, adding IConverter support
198                 This change starts at the top (Mode::Desktop) which
199                 takes an optional IConverter object for parsing and
200                 building conversions.  The Desktop class passes
201                 this IConverter object to Packet, Parser, and Builder (and
202                 thereby, the corresponding Record classes) as needed.
203                 This adds an extra pointer to a fair number of calls
204                 in the stack, but maintains flexibility without putting
205                 too much of a burden on Parser writers, which could be
206                 application writers.
207                 The primary use of this architecture is to pass in an
208                 IConverter configured to convert to UTF-8... this is
209                 basically the only useful conversion method, but others
210                 are possible if you want to play.
211         - first record class to support string conversions: Contact
212         - reverted the barry.h and record.h reorganization, since
213                 the gui depends on it
214         - reorganized barry.h and record.h again, making inclusion of
215                 the record headers dependent on whether it is a library
216                 build or not
217         - updated the gui with the parser/builder API change
218         - added IConverter to opensync plugin, set to UTF-8
219 2008/11/13
220         - added comment to src/r_contact.h deprecating the Phone field
221         - updated Doxyfile to 1.5.1
222         - added Christopher D. Stover to AUTHORS file as Fedora contact
223 2008/11/03
224         - forgot #include <string.h> for memcpy/memset in tools/bfuse.cc
225         - moved bfuse install point from /usr/sbin to /usr/bin
226 2008/11/01
227         - added FUSE filesystem "driver"
228 2008/10/31
229         - commented out the info.subsystem match level in HAL FDI file...
230                 this should let the FDI work on old and new systems.
231                 HAL version 0.5.8 (used by Debian Etch) has the deprecated
232                 info.bus property, and doesn't have info.subsystem yet.
233         - added HAL FDI scripts to rpm/barry.spec
234         - fixed tools/Makefile.plain
235 2008/10/30
236         - added support for multiple work/home phone numbers to the
237                 opensync plugin.
238                 - Thanks to Richard Esplin for his test data.
239                 - This fix has a conflict when a cell phone number is
240                         marked as the preferred contact as well.
241                         See http://sourceforge.net/mailarchive/message.php?msg_name=20081030231045.GA28989%40foursquare.net
242                         for the full details.
243                 - This fix also changes the VCARD output... pager phone
244                         numbers are given the TYPE code of "pager"
245                         instead of "msg".
246                 - Added OtherPhone field as well
247 2008/10/22
248         - applied HAL FDI scripts and configuration from Martin Owens
249         - updated AUTHORS file
250         - added HAL FDI and python script to Debian package install
251 2008/10/18
252         - updated copyright notice and help text in contrib/modemtest.rb
253         - changed barry-verizon.chat script according to Andy Herkey's
254                 recommendation... this worked much better for Michael L.
255                 Stokes, since his provider was getting stuck on the ATZ
256 2008/10/16
257         - applied Andy Herkey's modemtest.rb ruby script to contrib/
258                 from his Aug 9, 2008 email to the mailing list
259         - applied Andy Herkey's new modemtest.rb script to contrib/
260                 from his Oct 8, 2008 email to the mailing list
261         - added password pass-through code for pppob -s mode
262         - clarified front page www doc, adding date of last release
263                 and license
264         - cherry-picked changes from Jose Carlos Garcia Sogo's debian git repo
265                 - debian/rules was stripping wrong library names
266                 - FSF address was incorrect (also updated other source
267                         files throughout the tree myself)
268                 - more complete debian/copyright file
269 2008/09/24
270         - version bump:
271                 - configure.ac
272                 - src/Makefile.am
273                 - src/version.cc
274                 - gui/src/BackupWindow.cc
275                 - Doxyfile
276                 - rpm/barry.spec
277                 - debian/changelog
278                 - opensync-plugin/src/barry_sync.cc
279         - added link to doxygen documentation to www index.php
281 Release: version 0.14 - 2008/09/24
282 ------------------------------------------------------------------------------
283 2008/09/24
284         - changed Debian changelog version to 0.14-0 to make room for
285                 official Debian packages which start at 0.14-1
286         - moved Doxyfile from src/Makefile.am to Makefile.am
287         - made RPM spec file match debian version number
288         - www documentation updates for 0.14
289 2008/09/19
290         - fixed git-tagged-release.sh to not delete its own results... oops
291 2008/09/18
292         - fixed git command line in git-extract.sh for new 1.6.0.x behaviour
293 2008/09/13
294         - added notes in ReleaseChecklist.txt regarding the new tarball
295                 tags in the git repos
296 2008/09/12
297         - updated doc/ReleaseChecklist.txt
298         - moving items from private todo list to TODO file
299         - removed unused variable from maintainer/git-release-tar.sh
300         - added new maintainer/git-tagged-tar.sh, which puts more data
301                 in the git repo, to make it easier for official Debian
302                 package creation
303         - moved src/Doxyfile to ./Doxyfile to avoid ".." in the config...
304                 the ".." paths confused doxygen and caused it to generate
305                 non-relative paths in the documentation.
306         - added umask to maintainer/git-extract.sh, so it works even without
307                 a pre-configured git
308         - updated maintainer/tar-prepare.sh to match the new Doxyfile
309         - added maintainer/tagged-release.sh, as replacement for the
310                 release.sh top level script, when using git
311         - removed CVS-style ID code from contrib/barry-unbind-storage.sh
312                 since it made it look like cdfrey wrote it
313         - removed doc/CodingStyle.txt as it is now documented in html
314 2008/08/29
315         - added device name and backup label support to the GUI
316                 It is now possible to name devices, instead of just
317                 operating by PIN number, and it is possible to now
318                 add a text label to the backup tar filenames.
319         - added the device names to the device selection dialog
320 2008/08/26
321         - updated TODO list with i18n opensync bug and general i18n support
322         - added test suite to TODO list
323 2008/08/23
324         - renamed libbarry to libbarry0 in rpm/barry.spec
325         - added %dump to rpm/barry.spec to match the OBS version
326                 Makes it easier to track variable changes across
327                 various distros.
328         - added note to NEWS regarding binary package renaming
329 2008/08/22
330         - fixed logic error in breset that displayed error on success
331                 Thanks to Richard Esplin for reporting this bug.
332         - applied commit's from Jose Carlos Garcia Sogo's debian git repo
333                 git://git.debian.org/git/users/jsogo/barry.git
334                 - Add binary dependency of libbarry-dev on libusb-dev
335                 - Rename libbarry to libbarry0, per debian policy
336                 - Add exact dependency on binary:Version for every
337                         -dbg and -dev package
338                 - Bump Standards-Version to 3.8.0
339         - updated AUTHORS
340         - clarified barrybackup error message when no records available
341                 Added a check so that "no databases selected" and
342                 "no records available" are two distinct error messages.
343 2008/08/21
344         - applied ppp chat script patch from Mick Reed
345         - updated RPM and Debian packages with new tmobileus ppp scripts
346         - added T-Mobile US to web documentation
347         - updated AUTHORS
348         - clarified sync docs regarding slow-sync... avoid it if possible
349         - tuned doxygen config, and moved generated files to doc/www/doxygen
350         - added git-release-tar.sh, replacing CVS's make-release-tar.sh
351                 Also added doxygen to the release tarball creation, so
352                 the source code's doxygen documentation is automatically
353                 generated upon release.
354         - split git-release-tar.sh into reusable component scripts
355 2008/08/14
356         - added exception handler for invalid command line options in GUI
357         - fixed barrybackup man page, removing bad -v option
358         - added distro section to AUTHORS
359         - fixed comment and whitespace problems in time.{h,cc}
360         - Converted Birthday from string to Date, and added Anniversary
361                 support.  Birthday and Anniversary fields now use a new
362                 Date struct, and Barry validates the data to some extent.
363                 - updated example code and opensync plugin to match
364         - applied Lee Dixon's Location and Description plugin patch,
365                 with minor whitespace edits
366 2008/08/12
367         - added Birthday field to examples/addcontact.cc for testing
368 2008/08/11
369         - applied Lee Dixon's Birthday field and opensync patch
370                 - fixed coding format issues
371         - updated AUTHORS
372 2008/08/07
373         - fixed bug in m_ipmodem.cc that included a null terminator in
374                 first AT command
375         - fixed RFC 2426 conformance bug...  RFC 2426, 3.1.1 states that FN
376                 MUST be present in the vcard object.  If there is no name
377                 available, then we use the Company name if available.  It
378                 should be, since the Blackberry requires either name or Company
379                 in order to create a new address.  If Company is blank too, then
380                 we insert "(Blank Name)".
381                 - On the flip side of this same bug, it is possible to receive
382                         non-conformant vcard data from evolution / opensync
383                         that does not include FN.  Since the Blackberry
384                         doesn't require this information, remove the
385                         exception, and only throw an exception if FN
386                         or Company are both blank.
387                 - REVERT: removed the Company and "(Blank Name)" workarounds,
388                         and just produce an invalid vcard if no full name,
389                         since with multiple syncing, this will come back
390                         to bite us with duplicated Company name data
391         - added sanity check to contact class for blank name and company
392         - added BadData exception class, and documented it
393 2008/08/06
394         - fixed bug in vAttr::GetValue that ignored index for single valued
395                 attributes... this should fix the endless loop / memory
396                 exhaustion that some people have been seeing
397                 Thanks to Lee Dixon for reporting this bug in detail!
398         - added TODO list item for implementing recurring calendar items
399 2008/08/01
400         - version bump:
401                 - configure.ac
402                 - src/Makefile.am
403                 - src/version.cc
404                 - gui/src/BackupWindow.cc
405                 - src/Doxyfile
406                 - rpm/barry.spec
407                 - debian/changelog
408                 - opensync-plugin/src/barry_sync.cc
409         - updated web docs showing how to set the password when using modem
410         - added section to docs on how to test the modem connection
412 Release: version 0.13 - 2008/07/28
413 ------------------------------------------------------------------------------
414 2008/07/28
415         - web doc updates:
416                 - removed extraneous "experimental" wording
417                 - added section for external links to main index page
418                 - fixed doc bug about how to install libtar
419                 - added O2 Ireland to list of modem scripts
420                 - removed ubuntu80464 and fc6 from binary package list
421 2008/07/26
422         - updated AUTHORS
423 2008/07/25
424         - applied barry-unbind-storage.sh script from Niels de Vos...
425                 added to contrib for now, in the interests of getting
426                 version 0.13 released soon... we can work on integrating
427                 this better in 0.14, which hopefully won't take so long :-)
428 2008/07/24
429         - added g++ (>= 4.1) to Debian build dependency list
430         - added support to base library and utilities for multiple email
431                 addresses in Contact records
432         - added opensync support for multiple contact email addresses
433         - applied ppp chat scripts for O2 Ireland from Simon Kenyon
434         - updated AUTHORS
435         - integrated O2 Ireland scripts into binary package installs
436 2008/07/16
437         - applied David Mansfield's opensync module password patch (ported
438                 manually to latest upcoming 0.13)
439         - updated AUTHORS
440         - added password documentation to sample barry-sync module config
441         - updated web docs with new password sample config
442 2008/07/05
443         - removed old, unused spec file and scripts for bcharge-only release
444         - fixed rpm build instructions in web docs
445         - reduced minimum password retry level from 6 to 3... Reinhold Schoeb
446                 reports that his 8800 device only lets him set a password
447                 retry range between 3 and 5, instead of the usual 10 that
448                 most devices have.
449 2008/07/04
450         - added "known issues" section to main www doc page
451         - fixed virtual function mis-name bug in btool's null parser
452         - added -i option to brecsum, to include record IDs in the sums
453         - applied Ashley Willis's btool 0.12 null parser patch to CVS, which 
454                 required some manual porting changes...
455                 - removed bool reference argument in GetParser()
456         - updated AUTHORS
457         - applied Ashley Willis's perlbarry package, putting it in the
458                 new contrib/ directory
459                 - updated AUTHORS
460                 - now that btool patch is applied, don't need it in contrib
461         - removed openssl from dependencies documentation, as barry now
462                 has its own sha1 code
463         - added libtool to dependencies documentation
464         - rpm/barry.spec file now assumes gui and opensync, with conditional
465                 checks depending which system it is being built on...
466                 --with gui and --with opensync are no longer needed.
467         - updated release scripts to build RPMs with the new spec file
468 2008/06/26
469         - updated udev rules to recognize devices with the 8004 Product ID
470         - fixed bug in test/buildtest.sh when opensync is not pre-built
471         - fixed more lintian warnings on Ubuntu
472         - fixed tiny subheadings in modem web document
473         - added syncing howto web document
474         - updated TODO list, adding Troubleshooting item, and morphing
475                 the modem item into the RPC daemon item
476         - moved old doc/TroubleShooting.txt document to web, and updated
477                 it in the process
478         - added tip to sync web docs, for using DebugMode on hangs
479 2008/06/23
480         - changed test/buildtest.sh so it is safe to run from outside
481                 the directory that contains it
482         - added note to patch webpage regarding testing patches to the
483                 build system
484         - removed mis-configured 'make dist' check from buildtest.sh
485         - added missing 'scoped_lock.h' to src/Makefile.am's non-installed
486                 headers, as it is an internal header only
487         - improved buildtest.sh: speed, accuracy
488                 - added -j option to make to speed builds
489                 - moved cleanall check above 'make dist' as dist doesn't
490                         clean up after itself
491                 - commented out 'make distcheck' for now, as it doesn't work
492         - added DISTCHECK_CONFIGURE_FLAGS to root Makefile.am, similar to
493                 David Everly's patch in tracker # 1973536
494                 Thanks David!  'make distcheck' now works, but only in
495                 an environment like buildtest.sh creates.
496                 Also, buildtest.sh passes all tests now, including distcheck.
497         - updated AUTHORS
498         - removed unused src/controllertmpl.h
499         - added ppp and test directories to Makefile.am EXTRA_DIST
500 2008/06/21
501         - added beginnings of a build system test script
502         - fixed sha1.h so it is installed by src/Makefile.am
503         - removed old Makefile.orig from src/Makefile.am
504 2008/06/20
505         - updated modem web documentation page with Sprint option, as
506                 well as listing some network security concerns
507 2008/06/19
508         - added modem reset workaround to web documentation page
509         - applied Andy Herkey's ipmodem password patch, round 1
510         - applied Andy Herkey's ipmodem password patch, round 2
511         - cleaning up some rough edges to the ipmodem patches:
512                 - removed commented out code in pppob.cc
513                 - added BXLOCAL to private member SendPasword()
514                 - added try/catch in IpModem destructor
515                 - removed FIXME comment about endian issues
516                 - added data size checks to SendPassword()
517                 - removed catch(...)
518                 - renamed class variable session_key to match others
519                 - added check to skip password if "" is passed in
520                 - added the m_filter for ipmodem PPP 0x7e filtering
521                   back, since the 8320 w/ rogers seems to need it
522         - updated AUTHORS
523 2008/06/06
524         - added timeout argument to Device::BulkDrain()
525         - added mozilla's sha1 code from git
526         - removed openssl dependency due to license issues
527                 Debian and Ubuntu have checks in their lintian tool that
528                 check for GPL+OpenSSL linkage.  In order to remove any
529                 potential obstacles to future inclusion in those distros,
530                 the dependency is removed here in favour of the small
531                 mozilla implementation which is GPL.
532 2008/06/04
533         - added notes to web documentation for OpenBSD
534         - documentation updates:
535                 - changed git patch command to use format-patch
536                 - added instructions for building from tarball
537                 - added bugs.php and contact.php pages
538         - fixed missing and mis-dated copyright notices in src/
539         - added ppp options and chat script for Sprint, based on
540                 Andy Herkey's mailing list report
541 2008/05/30
542         - added Ubuntu 8.04 to release build scripts
543 2008/05/29
544         - fixed compile errors in gui when compiling with gcc 4.3.x
545         - added ppp options and chatscript files to RPM build
546         - updated docs with binary package default PPP scripts
547         - added -P option to pppob to specify password
548         - updated pppob manpage with -P option
549         - fixed missing -P option in btool manpage
550         - updated rpm spec file history
551         - added pppob manpage to rpm spec file
552         - added manpages for brecsum, breset, upldif, and barrybackup,
553                 and updated the build process to support them.
554                 Also updated date for pppob manpage.
555         - updated rpm spec file with new manpages
556         - added ProductID code 0x8004 to breset.cc
557         - minor whitespace and usage text fix in upldif.cc
558         - deleted old src/Makefile.orig
559         - updated Debian binary package:
560                 - added manpages for brecsum, breset, pppob, upldif,
561                         and barrybackup
562                 - added ppp options and chat scripts, with postinit
563                         script to set permissions
564                 - fixed descriptions in control file to avoid lintian warnings
565 2008/05/27
566         - fixed missing #includes in src/data.cc
567         - fixed compile errors in library, utils, and plugin when compiling
568                 with new gcc 4.3.x... gui not yet finished
569 2008/05/24
570         - added minimum g++ version to website dependency docs
571 2008/05/23
572         - added ppp/README
573         - reorganized sample ppp options files so they are easier to compare,
574                 enabled "usepeerdns" in both, and disabled the speed
575                 setting in barry-verizon
576         - updates to website documentation
577                 - added FC9 to distro list
578                 - added page for BarryBackup
579                 - added page for USB modem / pppob
580 2008/05/22
581         - added sample ppp options files for Verizon Blackberries
582                 Sample files from Michael L. Stokes
583         - updated AUTHORS
584         - renamed sample ppp peer files, in preparation for installing
585                 them automatically in binary packages
586         - modified verizon options file to use pppob
587         - split the sample rogers options file into options and chat files
588 2008/05/16
589         - put sequence packet check directly in the SocketZero::RawReceive()
590                 function, which now localizes all sequence packet
591                 handling and checking, as well as avoids packet
592                 order problems when multiple sockets are in use,
593                 such as with pppob...
594                 FIXME - this localized sequence checking may make all
595                 the calls to CheckSequence() obsolete which
596                 should probably be cleaned up someday, if so.
597         - reorganized src/socket.cc to match class private/public
598                 order (no code change, only move)
599         - added verbose log message to Controller constructors, so it is
600                 possible to determine whether a program is using
601                 threaded or non-threaded sockets
602         - added -z and -Z command line options to btool to control
603                 the non-threaded/threaded behaviour, respectively;
604                 and updated the man page
605         - removed debug sleep() calls from pppob
606         - added SIGINT signal handler so pppob shutsdown gracefully when
607                 pppd is killed
608 2008/05/15
609         - mention CVS and git on main documentation "how to" list
610         - moved PPP filter logic into its own class
611         - enhanced PPP filter class to support prepending of
612                 empty bytes if needed, in order to reduce data
613                 copying, and clarified why there is no GetBuffer()
614         - added ProbeResult::HasIpModem() to determine whether
615                 IpModem endpoints are available
616         - added pure virtual Modem base class for common
617                 modem-oriented API (only Open and Write so far)
618         - Mode::IpModem is now derived from Barry::Modem
619         - experimental implementation for Mode::Serial,
620                 which is now derived from Barry::Modem,
621                 and uses PppFilter
622         - pppob now supports IpModem and Serial modes, and logging
623                 to file instead of stderr
624         - added man page for pppob
625 2008/05/10
626         - modified the planned version numbering scheme in doc/VersionNotes,
627                 so that a 1.0 is possible, with 1.50 as the devel series
628 2008/05/09
629         - continuing to update html documentation in preparation for
630                 0.13 release
631 2008/05/02
632         - removed -fvisibility-inlines-hidden compile options since some
633                 distros have old or broken compilers or libraries where
634                 the build breaks looking for STL templates (Ubuntu 7.10,
635                 I'm looking at you...)
636         - changed brecsum so usage information is displayed automatically
637                 if no command line arguments are specified
638         - added opensync-plugin to maintainer test scripts, and added
639                 ubuntu710 to the test build sequence
640 2008/05/01
641         - updated doc/TroubleShooting.txt
642         - removed usb_control message check from IpModem endpoint probing
643                 in src/probe.cc, since some devices, like the 8700
644                 have both RIM_UsbSerData mode and IpModem mode.
645         - fixed serialization code for Calendar record class, in s11n-boost.h
646         - made UnknownField's data member into its own type,
647                 so that when building records, it doesn't get processed
648                 like a null terminated string... also added more
649                 BuildField() helper functions for accuracy
650         - fixed missing fields in the Calendar record build process
651         - added Calendar to list of Builders in tools/btool...
652                 it is now possible to run: btool -s "Calendar" -f datafile
653         - added tools/brecsum program, which calculates SHA1 checksums
654                 on database records, for testing
655         - added brecsum to debian and rpm builds
656         - added recurrence builder function to Calendar record builder code
657                 which completes builder support
658                 Checksums from the following commands now match:
659                         brecsum -d Calendar > sum1.txt
660                         btool -d Calendar -f calendar.dat
661                         btool -s Calendar -f calendar.dat
662                         brecsum -d Calendar > sum2.txt
663                         diff -u <(sort sum1.txt) <(sort sum2.txt)
664 2008/04/29
665         - applied Jason Thomas's ACLOCAL_FLAGS patch to make autoreconf
666                 work again... Thanks!
667         - applied Jason Thomas's debian build dependency patch
668         - updated AUTHORS
669 2008/04/26
670         - started documentation overhaul in doc/www, putting the commonly
671                 asked questions right on the front page, and making it more
672                 goal-oriented, so it is hopefully easier to use
673 2008/04/25
674         - updated NEWS file
675         - fixed error messages in m_desktop.cc that still referred
676                 to Controller
677 2008/04/25
678         - major merge of barry-b1-socket-arch-branch into MAIN.
679           The following is the changelog from that branch, which is now MAIN.
681         2008/04/25
682                 - added thread-safe logging mechanism
683                 - added preliminary IP modem support... requires a recent
684                         device... serial mode is not yet supported
685                 - merged HEAD changes
686         2008/03/27
687                 - changed Barry::Init() so programmer can choose where
688                         debug and exception information goes, instead of
689                         always to stdout
690         2008/03/22
691                 - merged HEAD changes
692         2008/03/20
693                 - fixed bug in probe class, which missed storing the PIN
694                         number in ProbeResult
695                 - also added ProbeResult constructor
696                 - merged changes from visibility branch:
697                         - GCC visibility support, limiting what symbols are
698                           visible in the shared library, libbarry... this makes
699                           a drastic reduction in the symbol table, and should
700                           avoid future name clashes with other libraries such
701                           as opensync
702                           See: http://gcc.gnu.org/wiki/Visibility
703                         - vformat_() function name changes
704         2008/03/07
705                 - merged HEAD changes
706                 - added threads library to new bs11nread build
707         2008/02/28
708                 - fixed variable size issues in btranslate.cc, evident with
709                         some compilers on 64 bit systems
710                 - merged HEAD changes
711                 - added comments for threaded usage in usbwrap.h
712                 - changed router to use SocketId typedef, for clarity
713         2008/02/22
714                 - fixed const char warnings from newer gcc compilers
715                 - controller object now saves a copy of the probe result
716                         and provides an API to retrieve it
717                 - added sanity checks to m_serial.cc
718                 - fixed probe behaviour so that a USB probe on an endpoint
719                         that doesn't respond won't halt everything
720                 - refactored some of the probe code, and added checks for
721                         IP modem endpoints
722                 - added Probe::DumpAll()
723                 - added Open() call to pppob.cc (not yet complete)
724         2008/01/30
725                 - implemented dataqueue.{h,cc}... looks ready for testing,
726                         once things compile again
727                 - changed free list copy in router.cc to use
728                         DataQueue::append_from()
729                 - finished packet.{h,cc} implementation, ready for testing
730                 - finished controller.{h,cc}, ready for testing
731                 - finished m_desktop.{h,cc}, ready for testing
732                 - added skeleton m_serial.cc
733                 - the base library and utilities compile again!
734                 - added constructor for SocketZero(queue)
735                 - fixed ErrnoError::GetMsg()
736                 - updated GUI and opensync plugin to compile with new API
737                 - moved Raw Send/Receive socket functions to private
738                 - fixed packet header size bug in socket that caused
739                         socket ID override to be skipped
740                 - fixed incorrect use of gettimeofday()
741                 - fixed race condition where Controller could destroy
742                         the Usb::Device object before the SocketRoutingQueue
743                         was done with it
744                 - fixed segfault in SocketZero::RawSend() when a router
745                         was in use
746                 - fixed Open() bugs in btool... Open() must be outside of loops
747                 - btool uses the router thread now, for testing
748                 - partially implemented m_serial.{h,cc}... needs testing
749                 - added automatic buffer allocation to SocketRoutingQueue
750                         constructor
751                 - made AllocateBuffers() a little smarter, so it was not
752                         pure appending
753                 - added a context data pointer to the SocketRoutingQueue
754                         RegisterInterest callback
755                 - added RegisterInterest functionality to Socket class
756                 - added exceptions on router read errors in socketzero
757         2008/01/26
758                 - implemented router.{h,cc}... looks ready for testing,
759                         once things compile again
760         2008/01/25
761                 - merged HEAD changes
762                 - added router.cc and continued work on new arch
763                 - merged HEAD changes for 2008 copyright statements
764                 - added scoped_lock.h
765                 - added ErrnoError exception class
766                 - documented Controller / SocketRoutingQueue behaviour
767                 - more router implementation
768                 - simplified pppob
769                 - audit and cleanup of socket.{h,cc} code... looks ready
770                         for testing now, once things compile again
771                 - removed FIXME in router.*
772                 - removed pthread header from pppob as it is not needed
773         2007/11/22
774                 - merged HEAD changes
775         2007/10/25
776                 - merged HEAD changes
777         2007/10/19
778                 - branch started, to track development of the new socket
779                         architecture, and new mode architecture, needed
780                         to support GPRS modem support, and threaded
781                         USB access
782                 - committed work-in-progress... does not compile
784 2008/04/10
785         - added Tasks and Memos to TODO list
786 2008/03/27
787         - added support for Blackberry 8120, which has a unique Product ID
788                 Sourceforge tracker ID: 1829537
789 2008/03/22
790         - removed TimeZones from TODO list, as it is done
791 2008/03/21
792         - version bump:
793                 - configure.ac
794                 - src/Makefile.am
795                 - src/version.cc
796                 - gui/src/BackupWindow.cc
797                 - src/Doxyfile
798                 - rpm/barry.spec
799                 - debian/changelog
800                 - opensync-plugin/src/barry_sync.cc
801         - added GCC visibility support, limiting what symbols are visible
802                 in the shared library, libbarry... this makes a drastic
803                 reduction in the symbol table, and should avoid future
804                 name clashes with other libraries such as opensync
805                 See: http://gcc.gnu.org/wiki/Visibility
807 Release: version 0.12 - 2008/03/21
808 ------------------------------------------------------------------------------
809 2008/03/21
810         - changed maintainer script to use CVS export instead of checkout,
811                 to avoid the CVS directories
812         - added support for building Debian source packages with proper
813                 diff.gz and dsc files
814         - fixed find warning in maintainer/make-rpm.sh
815         - added support for Ubuntu binary packages to the maintainer build
816                 scripts
817 2008/03/13
818         - renamed all vformat_ and VFormat symbols in opensync plugin's
819                 copy of vformat code, so they don't conflict with the
820                 real opensync libraries
821 2008/03/07
822         - updated the install.php web page with Paul Dugas's notes on
823                 building RPM's from CVS
824         - fixed problem in tools/Makefile.am where bs11nread was included
825                 in build, even if --with-boost was not specified
826                 on ./configure command line
827 2008/03/06
828         - changed format of Boost serialization file output from btool,
829                 so that the database name is stored as the first line
830                 of the file
831         - added tools/bs11nread.cc to read Boost serialization file data
832                 written by btool
833         - minor adjustments to r_message.h and r_timezone.h
834         - updated s11n-boost.h header to match record classes
835 2008/03/01
836         - applied Time Zone parsing patches from Brian Edginton
837         - added Time Zones to list of supported parsers in btool.cc
838 2008/02/29
839         - changed configure.ac to use bzip2 for "make dist".. thanks to
840                 Paul Dugas for the tip
841 2008/02/28
842         - committed Chris Burgess's update to the roadmap document
843         - applied Paul Dugas's x86-64 build patch, except the
844                 tar.bz2/tar.gz change
845         - updated AUTHORS file
846 2008/02/22
847         - fixed configure.ac's --with-boost option, so that without args,
848                 it defaults to using --includedir and --libdir settings,
849                 instead of hardcoding /usr/include and /usr/lib... this
850                 should allow smarter compiling on 64 bit systems
851         - updated RPM spec file to use new --with-boost behaviour
852         - ahem, fixed configure.ac again... don't use --includedir and
853                 --libdir, as those are install targets... oops.
854                 Don't add path overrides at all if not specified.
855 2008/01/25
856         - fixed locale issues in src/data.cc
857         - updated copyright statments for 2008
858 2007/12/21
859         - applied wording correction patch to btool from Matt LaPlante
860 2007/12/07
861         - changed hard coded databases names in btool to calls to
862                 <recordclass>::GetDBName()
863         - version bump:
864                 - configure.ac
865                 - src/Makefile.am
866                 - src/version.cc
867                 - gui/src/BackupWindow.cc
868                 - src/Doxygen
869                 - rpm/barry.spec
870                 - debian/changelog
871                 - opensync-plugin/src/barry_sync.cc
872         - updated TODO
874 Release: version 0.11 - 2007/12/01
875 ------------------------------------------------------------------------------
876 2007/12/01
877         - fixed null pointer bug in Probe class (bug #1842407)
878         - added pause to maintainer release script
879 2007/11/30
880         - version bump:
881                 - configure.ac
882                 - src/Makefile.am
883                 - src/version.cc
884                 - gui/src/BackupWindow.cc
885                 - src/Doxygen
886                 - rpm/barry.spec
887                 - debian/changelog
888                 - opensync-plugin/src/barry_sync.cc
890 Release: version 0.10 - 2007/11/30
891 ------------------------------------------------------------------------------
892 2007/11/30
893         - added support to the usbwrap Match class to limit its
894                 search by busname / devname
895         - added support to the Probe class to limit its search for
896                 Blackberry devices to a given bus or device name
897         - added command line options to btool for the above Probe
898                 bus/device names, and updated the man page
899         - updated the www docs with regard to the new usb_storage
900                 behaviour and the new blacklist files... less
901                 concern about berry_charge and usb_storage conflicts
902         - added bidentify tool and accompanying man page
903         - fixed bug in rpm maintenance script that used the wrong
904                 spec file for opensuse
905 2007/11/29
906         - added better error checking to breset
907         - commented the sleep() for the 8830
908         - added code to handle the race condition where usb_storage
909                 claims the device before bcharge arrives on the scene,
910                 by asking the kernel to detach the driver from
911                 the Mass Storage interface... this change makes it
912                 possible to run bcharge, moving from 0006 to 0004
913                 to 0001 and back to 0004, all *while* usb_storage
914                 is loaded!
915         - changed Probe class behaviour so that it will not throw an
916                 exception on Device Busy (-EBUSY) but instead
917                 log the error in an internal array and keep going.
918                 This makes it possible to use btool and barrybackup
919                 with two devices plugged in at the same time.
920                 BACKWARD COMPATIBILITY NOTE: this changes initializaion
921                         behaviour, but in practice, it should only
922                         make applications look more capable, not less.
923         - updated btool to show errors logged by Probe
924         - added message to specify which PIN device is being used by btool
925         - added explanatory comments to udev rules files, about why
926                 they are so verbose
927 2007/11/27
928         - added ClearHalt() calls to probe and controller classes, just
929                 before any communication happens... the 8830 seems
930                 to need this
931 2007/11/23
932         - added usbwrap.cc:GetConfiguration()
933         - added code to check whether the configuration is the one
934                 we require, before calling SetConfiguration()... and not
935                 to call it if unnecessary.  This allows us to run
936                 at the same time as usb_storage.
937                 Thanks to Martin Owens for not letting this issue go. :-)
938         - added sleep to bcharge, before calling usb_reset()... the
939                 Blackberry 8830 behaves like a Pearl device in that
940                 it has mass storage support, but behaves like a Classic
941                 in that it resets itself... the usb_reset() seems
942                 to reset it back to 0006.  The sleep allows the device
943                 to disappear via its own reset, and let usb_reset()
944                 fail naturally on these devices.
945                 This is not an ideal solution... mainly for testing.
946 2007/11/09
947         - added modprobe/blacklist-berry_charge as per Simon Ruggier's
948                 suggestion.  Thanks also to Niels de Vos for a similar
949                 suggestion.
950         - fixed udev rules to work on both old and new distros
951                 Thanks to Duncan Mak for the bug report.
952         - AUTHORS update
953         - fixed string comparison to use case insensitive compare in
954                 opensync plugin
955         - updated Debian package to include modprobe blacklist file
956         - updated rpm spec file to include modprobe blacklist file
957         - split the maintenance scripts into release and test, so
958                 that release package builds can be done faster
959 2007/10/26
960         - opensync plugin fixes:
961                 - fixed memory leak in vBase::GetAttr()
962                 - added support in vformat parser to parse "blocks"
963                         and keep track of the hierarchy when
964                         parsing an iCalendar, etc.
965                 - added support for searching for attributes only
966                         inside certain blocks (i.e. find first
967                         DTSTART in VEVENT block, not VTIMEZONE block)
968 2007/10/25
969         - fixed bug in Calendar::Clear, missing the Free / Class
970                 member variables, leaving them uninitialized
971         - added examples/addcalendar.cc
972         - added more logging to the opensync plugin, logging the
973                 ToBarry conversion results
974         - added code to force struct tm.tm_isdst to -1 before calling
975                 mktime, in vformat.c
976                 - fixed typo in previous fix
977 2007/10/12
978         - renamed ktrans and translate to bktrans and btranslate to avoid
979                 file name clashes with libtranslate of Gnome
980                 Closes bug #1812410 reported by Troy Engel.
981         - version bump:
982                 - configure.ac
983                 - src/Makefile.am
984                 - src/version.cc
985                 - gui/src/BackupWindow.cc
986                 - src/Doxygen
987                 - rpm/barry.spec
988                 - debian/changelog
989                 - opensync-plugin/src/barry_sync.cc
990         - fixed missing default config file in the debian package for
991                 the opensync plugin
992                 Closes bug #1812224 reported by Ariel (adonatti).
993         - added debian dbg packages for tracing segfaults
994         - modified maintainer scripts so debug packages would reference
995                 source code located in /usr/src/barry-0.9, etc.
997 Release: version 0.9 - 2007/10/12
998 ------------------------------------------------------------------------------
999 2007/09/29
1000         - adjusted autosuspend disabling code in bcharge, based on new
1001                 information on how kernels 2.6.21 / 2.6.22 work.
1002                 See bcharge.cc for comments.  If device/power/level or
1003                 device/power/autosuspend exist, charging should now work
1004                 without recompiling the kernel.
1005         - updated website docs with autosuspend info
1006 2007/09/27
1007         - large update to the doc/www web pages, moving some of the
1008                 information in README files to html format, so that it
1009                 is commonly available on the web
1010         - added step in maintenance scripts to automatically build the
1011                 .html files in doc/www when making a tarball release
1012 2007/09/22
1013         - added libopensync 0.22 version requirement to barry.spec file,
1014                 but it doesn't seem to work on OpenSuSE 10.2, where it's
1015                 needed.... hmmmm
1016 2007/09/21
1017         - updated README to mention new tree build configure options
1018         - fixed the configure scripts and makefiles so that when building
1019                 with custom CXXFLAGS and LDFLAGS environment variables,
1020                 it doesn't break the full-tree build mode, when
1021                 using --enable-gui and/or --enable-opensync-plugin
1022         - added config.h.in~ to buildgen.sh clean target
1023         - converted Debian build scripts to use cdbs
1024         - added opensync plugin binary package for Debian
1025         - added "Getting Started" section to web pages, as well as an
1026                 explanatory document for various system requirements
1027         - turned on opensync build in RPM maintainer scripts
1028 2007/09/20
1029         - added filename to power/state error message in bcharge.cc
1030         - adjusted maintainer scripts to automatically adjust barry.spec
1031                 for opensuse rpm builds
1032 2007/09/13
1033         - fixed some of the release build scripts and added support for
1034                 automated opensuse 10.2 builds
1035                 - fixed build target to i386
1036                 - changed scripts to add to PKG_CONFIG_PATH variable instead
1037                         of overwriting it
1038 2007/09/07
1039         - added website docs to doc/www... these are out of date at the
1040                 moment, and hopefully by including them here, they
1041                 will be updated more frequently
1042 2007/09/05
1043         - applied Simon Ruggier's build system patch that allowed a build
1044                 of all 3 components from the root directory and fixed the
1045                 configure scripts to support external build directories
1046         - reordered clean commands in the buildgen.sh scripts, and removed
1047                 the INSTALL files, since they are auto-generated by autoconf
1048         - removed extraneous buildgen.sh calls in maintainer scripts
1049         - added Simon Ruggier to AUTHORS
1050         - added explanatory note to 3 stage test build process in
1051                 maintainer script
1052 2007/08/24
1053         - fixed Category handling in the Contact record class, to
1054                 parse the comma separated string into an array,
1055                 and back
1056                 Note: this involves a change to the boost serialization
1057                         and will affect backward compatibility with
1058                         old serialization datafiles
1059         - added Category to examples/addcontact.cc
1060         - added Category support to the opensync plugin
1061 2007/08/23
1062         - fixed wrong read/write in btool output (oops)
1063         - added BadSize exception, and changed CheckSize() function
1064                 to throw it on error
1065         - changed backup GUI to catch BadSize exceptions on initial
1066                 connect, and try a reset if that error occurs, since
1067                 that likely means the device didn't shutdown properly
1068         - fixed in opensync plugin:
1069                 - some vcard data contains types codes in capital letters,
1070                         so added lower case conversion routine
1071                 - changed the order of address lines, so that address1
1072                         is the street, address2 is the extended address,
1073                         and address3 is the PO Box.  The Blackberry
1074                         doesn't seem to have any PO Box field.
1075 2007/08/20
1076         - added -e endpoint override option to btool
1077         - added status message to endpoint override
1078 2007/08/18
1079         - added configure check for strnlen, and implementation for
1080                 systems that don't have it, or that have it implemented
1081                 incorrectly.  Went a little paranoid here, since
1082                 AC_FUNC_STRNLEN doesn't set a define in config.h,
1083                 so I had to do it manually, and check in case autoconf
1084                 changes in the future... ugh.  See src/strnlen.h for
1085                 the gory details.
1086         - added code in probe.cc to fetch the device's description.
1087                 The description is now part of the probe results
1088                 along with the PIN.  Updates to protocol.h, adding
1089                 a new attribute definition.
1090                 Thanks to Rick Scott for pointing out the code in
1091                 XmBlackberry where he implemented this first.
1092         - fixed header dependency in record-internal.h
1093         - updated the "required autoconf" version to 2.61 for root build
1094         - moved nested structs out of the record classes that contain them,
1095                 in order to better support SWIG and Python
1096 2007/08/17
1097         - changed bcharge to use getopt() for its argument processing
1098         - added options -p and -s to bcharge, to adjust usb suspend
1099                 settings automatically where possible
1100         - updated the udev rules to use the new bcharge settings
1101         - updated the bcharge man page with the new arguments
1102 2007/08/16
1103         - cleaned up Usb exception handling, moving libusb error code
1104                 processing into the Usb::Error exception class.
1105                 error.cc is now an empty shell
1106         - added return codes to the Usb::Error exceptions
1107         - removed aboutdialog.{h,cc} from the backup GUI since even
1108                 Debian stable now has up-to-date gtkmm libraries
1109         - added more user friendly error message for the "device busy"
1110                 case, recommending 'rmmod usb_storage'.
1111 2007/08/09
1112         - added better error checking to bcharge.cc
1113         - version bump:
1114                 - configure.ac
1115                 - src/Makefile.am
1116                 - src/version.cc
1117                 - gui/src/BackupWindow.cc
1118                 - src/Doxygen
1119                 - rpm/barry.spec
1120                 - debian/changelog
1121                 - opensync-plugin/src/barry_sync.cc
1122         - removed usb_set_configuration() check from bcharge.cc, since
1123                 that may fail under normal operation, in this case
1125 Release: version 0.8 - 2007/08/03
1126 ------------------------------------------------------------------------------
1127 2007/08/03
1128         - moved Interface implementation to usbwrap.cc file
1129         - added dout debugging messages to usbwrap.cc
1130         - clarified unhandled packet error message in socket.cc
1131         - added temporary workaround in opensync-plugin environment's
1132                 Reconnect(), for odd message seen on newer Blackberry
1133                 devices
1134         - fixing issues with Brian Edginton's MessageRecord patch (2007/06/29)
1135                 - fixed missing size check in message oriented ParseHeader()
1136                 - fixed endian conversion issues (also found one pre-existing
1137                         endian bug in the process)
1138                 - moved message timestamp converter code to time.cc
1139         - added Barry version number to opensync plugin name
1140         - changed maintainer scripts and rpm.spec to use bzip2 instead of gzip
1141         - added opensync-plugin to configure script build
1142         - added -S option to btool, to list supported parsers and builders
1143         - slight change to opensync-plugin/buildgen.sh to cleanup config.h.in~
1144         - opensync-plugin/README update
1145         - added opensync-plugin/patches for others who may be building and
1146                 testing the plugin with OpenSync 0.22
1147         - added debian package build scripts to maintainer/
1148 2007/08/01
1149         - added entry to doc/TroubleShooting.txt
1150 2007/07/28
1151         - added doc/TroubleShooting.txt
1152 2007/07/27
1153         - opensync plugin:
1154                 - fixed bug in vcard.cc that was using the FN field
1155                         for the broken-down name instead of N
1156                 - added dbId and dbName to DatabaseSyncState
1157                 - added Reconnect() functionality to BarryEnvironment class
1158                         and moved connect logic out of barry_sync.cc
1159                 - changed the batch commit functionality in barry_sync.cc
1160                         to single-change-commit.  Why?  Because opensync
1161                         0.22 groups all batch changes into one group
1162                         and calls one batch commit function, even if you
1163                         registered two.  Moving to single change commit
1164                         mode removes a chunk of unneccessary code
1165                         from the plugin as well, and can in theory
1166                         ease memory pressure in the library.
1167                 - added FinishSync() to perform actions needed on successful
1168                         syncing completion
1169                 - disconnect on successful sync completion, and reconnect,
1170                         since the device's dirty flags don't seem to
1171                         be updated until a disconnect occurs.
1172 2007/07/26
1173         - added ReadDataArray() to data.h, using an istream instead of
1174                 requiring a file
1175         - added raw data version of BuildField() to record-internal.h
1176                 This is so that btool doesn't add extra null terminators
1177                 to unknown data, when restoring with option -s
1178         - fixed bugs in r_contact.cc:
1179                 - fixed bug that caused a LastName/FirstName swap
1180                         if FirstName was empty and you wrote a contact
1181                         record into the device.... First/Last Name
1182                         fields are position sensitive, and the code
1183                         was missing the empty FirstName case on writing
1184                 - fixed bug in BuildFields() and Dump() where they
1185                         were not updated to handle the new field
1186                         table added for the postal address changes
1187                         on 2007/07/20, oops
1188         - opensync plugin:
1189                 - changed the plugin config file, so it is possible to
1190                         turn debug output on/off without recompiling
1191                 - moved the standalone Map2Uid() function into
1192                         the DatabaseSyncState class, and changed the
1193                         code to produce "contact-#" and "calendar-#"
1194                         UID strings, instead of just numbers
1195                 - changed default PIN to -1, so that if the user doesn't
1196                         configure properly, it will fail... this is a
1197                         safety measure to avoid syncing with different
1198                         devices and corrupting the cache/idmap...
1199                         this should be fixed someday, to handle this
1200                         automatically
1201                         On second thought... is this right?  Perhaps
1202                         it is better to fail if the PIN is not what
1203                         is expected, so a user doesn't accidentally
1204                         sync the wrong device and lose data.
1205                         Actions to take on new PIN:
1206                                 - force slow_sync, or
1207                                 - fail
1208                 - incorporated the new VCardConverter code into the
1209                         main barry_sync.cc plugin code
1210                 - fixed bug that did not clear the devices dirty flags
1211                         in the case where a sync only read data from it,
1212                         and didn't write
1213                 - changed PIN error message number to hex
1214 2007/07/20
1215         - minor wording change in backup GUI prompt: "Backup working..." to
1216                 "Backup in progress..."
1217         - renamed Contact class's Title field to JobTitle for clarity
1218         - added record function ParseFieldString(), which properly handles
1219                 strings from the device that have multiple null terminators,
1220                 and changed the record parsing code to use this new function
1221         - moved FullName() function from ldif.cc to r_contact.cc since it
1222                 is generally useful in areas outside of LDIF processing
1223         - refactored postal addresses in the Contact record class into
1224                 a new class called PostalAddress
1225         - renamed Address class in record.h to EmailAddress
1226         - moved Contact::GetPostalAddress() to record.cc as part of the
1227                 new PostalAddress class and renamed it
1228                 PostalAddress::GetLabel()
1229         - opensync plugin:
1230                 - refactored vformat helpers into separate base class
1231                         called vBase
1232                 - added vCard converter class
1233                 - commented out the code that skipped over the adding
1234                         of empty attribute values and parameters,
1235                         since VCARD depends on some of this behaviour
1236                 - movified vformat.c:vformat_find_attribute() to take
1237                         an extra nth argument, in order to search
1238                         for multiple attributes with the same name...
1239                         the way this is coded is a bit inefficient...
1240                         but we're moving away from vformat when we move
1241                         to OpenSync 0.3x / 0.40, so this is just temporary
1242                         pain
1243 2007/07/19
1244         - added SUBSYSTEM=="usb_device" to example udev rules, in order
1245                 to avoid running bcharge for each endpoint that is
1246                 added by udev, when first plugged in.  Running bcharge
1247                 back-to-back multiple times can crash some
1248                 Blackberries.
1249 2007/07/14
1250         - opensync plugin:
1251                 - fixed ID mapping bug in the case of a non-numeric UID
1252                         from syncing external -> Barry, and then the
1253                         new Barry ID would look like a new change
1254                         when syncing back from Barry -> external.
1255                 - added support for slow sync
1256                 - added clear() to idmap class
1257                 - added vformat attr parameter extraction class
1258                 - added more trace logging during vformat/Barry conversions
1259                 - added Notification time support
1260                 - handled "all day" vformat special case, when DTEND
1261                         does not exist in a vformat data block
1262         - changed the min1900_t time conversion functions to handle
1263                 the 0xffffffff special case, when notifications
1264                 are turned off on a calendar event (src/time.cc)
1265         - also made the calendar data dump output clearer for
1266                 disabled timestamps, and added debug output
1267                 for the raw min1900 value, in case there are more
1268                 special cases in the future
1269 2007/07/13
1270         - fixed null pointer access in opensync's HasMultipleVEvents()
1271 2007/07/12
1272         - upper management directive: revert all OpenSync 0.3x changes
1273                 and proceed with OpenSync 0.22.  Reverting the
1274                 opensync-plugin/src tree to Barry 0.7 status.
1275 2007/07/06
1276         - reorganized exception and trace code in opensync plugin
1277         - added XmlToCalendar() function, based on unfinished opensync
1278                 library API that is not yet finished... will be
1279                 committed to opensync svn tree when complete
1280         - added OSyncXMLField logger to plugin trace class
1281 2007/06/29
1282         - applied email MessageRecord patch from Brian Edginton (thanks!)
1283         - updated Message::Dump() to output more valid mbox data...
1284                 the goal is to be able to do:
1285                         btool -d "Messages" > email.mbox
1286                         mutt -f email.mbox
1287         - changed some TODO's to FIXME's to keep it grep-consistent
1288         - applied Folder support patch from Brian Edginton
1289         - fixed pedantic compile warnings, and changed order in src/Makefile.am
1290         - removed unneeded cast in src/r_folder.cc
1291 2007/06/28
1292         - minor adjustment to ctags building in buildgen.sh
1293         - applied patch from Brian Edginton for better boost detection
1294                 in configure.ac
1295         - added boost usage message to btool -h output
1296 2007/06/21
1297         - more porting of OpenSync module to 0.30
1298         - added ctags build for opensync source tree to buildgen.sh
1299 2007/06/14
1300         - changed PKG_CONFIG_PATH setting in rpm script, so that systems
1301                 like SuSE that have an extensive PKG_CONFIG_PATH
1302                 in general use will not break on build
1303         - added PKG_CONFIG_PATH to debian script too, just in case :-)
1304         - added debian/changelog to doc/ReleaseChecklist.txt
1305         - added comment to rpm/barry.spec regarding SuSE RPM builds
1306 2007/06/08
1307         - applied patch from Niels de Vos fixing debian package build
1308                 dependency
1309         - applied Brian Edginton's Saved Email Messages patch
1310         - updated r_saved_messages.cc comment to match header
1311         - added GetRecType()/GetUniqueId() to r_saved_messages.h, since
1312                 SetIds() is already there
1313         - removed Address version of operator<<() from message related headers
1314                 and moved into record.h
1315         - added std::hex to message related dumps, and changed output to
1316                 be more mbox-like
1317         - updated doc/CodingStyle.txt to cover switch() statements
1318         - opensync compiles again, with 0.30!  (not functional yet)
1319                 - moving closer to more modular and reusable plugin functions
1320         - updated release checklist for opensync version number
1321 2007/06/07
1322         - added doc/CodingStyle.txt... preliminary version
1323 2007/06/06
1324         - applied Brian Edginton's PIN message patch
1325         - changes to PIN message patch:
1326                 - fixed missing backslash in src/Makefile.am
1327                 - fixed tab alignment throughout
1328                 - removed typedef from Address struct
1329                 - added clear() to Address... might as well, if it it is
1330                         going to be a standalone type
1331                 - fixed missing comma in PINMessageFieldLinks table
1332                 - changed MessageRecordId in PINMessage to load from a new
1333                         uint32_t field in CommonField, instead of piggy
1334                         backing on a field for other use
1335         - did some testing and found that PINMessage's MessageRecordId
1336                 is the same as the RecordId given through the SetIds()
1337                 API... but these Id's are duplicated in the protocol...
1338                 RecordId is stored in the protocol header, while
1339                 MessageRecordId is stored in the record it self as
1340                 a common field... added RecType and RecordId to
1341                 PIN Message so that we store both of these
1342         - updated AUTHORS
1343 2007/05/27
1344         - added item to gui/TODO
1345         - applied Brian Edginton's s11n-boost.h patch
1346 2007/05/25
1347         - renamed template values to more consistent naming scheme
1348         - applied memos and tasks patch from Brian Edginton, slightly
1349                 modified to split into the new separate files system
1350         - changes to memos and tasks classes:
1351                 - reformatted the code to match coding style
1352                         (come on Brian) :-)
1353                 - added copyright notice
1354                 - changed class to singular (Memo, not Memos)
1355                 - placed in Barry namespace
1356                 - added #ifdef header protectors
1357                 - added new files to Makefile.am
1358                 - added new r_*.h headers to record.h
1359         - added support for Memos and Tasks to tools/btool.cc, based on
1360                 Brian Edginton's patch
1361                 (currently commented out, for Boost library reasons):
1362         - added doc/CommitPolicy.txt
1363         - updated AUTHORS
1364 2007/05/24
1365         - added ctags generation to buildgen.sh
1366         - applied record.{h,cc} fix patch from Brian Edginton
1367                 - ClassFlag
1368                 - FreeBusyFlag
1369                 - Clear() fixes
1370         - fixed broken formatting in above patch
1371         - refactored record parser classes into separate files for each
1372         - changed the ConvertHtoB<> template to inline, as it caused
1373                 linker errors with the new file layout
1374 2007/05/17
1375         - fixed bug in Debian packaging that put util commands in
1376                 /bin and /sbin instead of /usr/bin and /usr/sbin
1377         - commited byteswap.h replacement code from gm2net
1378         - backup gui:
1379                 - removed unneeded debug messages on stdout
1380                 - changed the default for debug output to "off"
1381                         and added a command line option to turn
1382                         it on if necessary  (--debug-output)
1383                 - command line option --help now also works
1384         - fixed bug in Calendar class where it didn't initialize
1385                 RecType properly... and cleaned up other RecType
1386                 code to use the GetDefaultRecType() functions,
1387                 localizing the constants in one place
1388 2007/05/11
1389         - applied patches from Brian Edginton, parsing more
1390                 fields in Contact and Calendar records
1391         - added Brian Edginton to AUTHORS
1392         - reformatted record.{h,cc} to match the rest of the code,
1393                 removed commented out code, and removed mention of
1394                 Outlook from the comments.
1395         - updated udev/10-blackberry.rules.Debian for Debian Etch
1396         - updated debian/rules to use new udev rules file
1397         - removed debian/postinst, as stable versions of Debian now
1398                 have a recent udev, and don't need the special handling
1399         - updated Debian build scripts to build separate packages:
1400                 libbarry
1401                 libbarry-dev
1402                 barry-util
1403                 barrybackup-gui
1404         - added menu support to Debian barrybackup-gui package
1405         - made the buttons bigger in the backup GUI, as they were too
1406                 small on Debian Etch
1407         - opensync plugin:
1408                 - more progress in porting to opensync 0.30, heavily
1409                         based on the example plugin in the opensync
1410                         svn tree...  this is a work in progress, and so far
1411                         is incomplete
1412 2007/05/04
1413         - opensync plugin:
1414                 - partial porting to opensync 0.30 (in progress!)
1415                 - fixed bug in sync_done where it reported context error
1416                         and then success afterward
1417         - checking in new INSTALL files based on Etch's autoconf run
1418         - added item to gui's todo list
1419         - bumped version numbers to 0.8 in:
1420                 - configure.ac
1421                 - src/Makefile.am
1422                 - src/version.cc
1423                 - gui/src/BackupWindow.cc (about dialog)
1424                 - src/Doxygen
1425                 - rpm/barry*.spec
1427 Release: version 0.7 - 2007/05/02
1428 ------------------------------------------------------------------------------
1429 2007/05/02
1430         - added rpm building to maintainer/release scripts
1431         - added "HEAD" feature to tarball creation script, for easier testing
1432         - updated maintainer/README
1433         - updated maintainer/release.sh to use new HEAD feature too
1434 2007/05/01
1435         - added pppob to rpm barry.spec
1436         - bumped release number in barry.spec
1437 2007/04/30
1438         - opensync plugin:
1439                 - fixed size check bugs (strlen() == 0 when empty)
1440                 - finished refactoring calendar conversion routines
1441                 - started timezone parsing, but this may go away
1442                         if we use opensync 0.30's time functions and
1443                         xml data format...
1444                 - added development note to README
1445 2007/04/29
1446         - updated README and opensync-plugin/README with more current
1447                 build instructions
1448         - opensync plugin:
1449                 - refactored some calendar conversion routines
1450                 - added Barry->vCalendar conversion for recurring appointments
1451 2007/04/27
1452         - opensync module:
1453                 - removed some unneeded trace logs
1454                 - fixed VEventConverter constructor bug, with uninitialized
1455                         m_Data pointer
1456                 - eased up the requirement that every calendar event
1457                         must have a summary... defaults to "<blank subject>"
1458                         if empty
1459                 - added more VCALENDAR fields to match Barry::Calendar record
1460                 - fixed case sensitive compares in vformat.c
1461 2007/04/26
1462         - opensync module work:
1463                 - added id map class to map string uid's from OpenSync to
1464                         numeric ID's from the Blackberry
1465                 - fixed bug in CommitChange() where it was still using
1466                         a hard coded calendar record state table
1467                 - added lots of logging throughout
1468                 - fixed bug where newly added records didn't use the
1469                         change object's uid, but created a new ID,
1470                         causing another sync on the next run
1471                         i.e. (CommitData_t was missing an argument)
1472                 - fixed bug where uninitialized notification time was
1473                         written to the Blackberry
1474         - more opensync module work:
1475                 - refactored the environment class into another subclass
1476                         called DatabaseSyncState, and moved some stand-
1477                         alone functions from barry_sync.cc into
1478                         the environment classes
1479                 - added a tagged constructor to the trace class
1480                 - fixed idmap::Load() to clear map before loading
1481 2007/04/20
1482         - renamed barry-config to barry-sync, the default configuration
1483                 file for the opensync module... and filled it with
1484                 a sample configuration
1485         - added code to update the calendar cache, and write it to disk
1486                 on success (opensync module)
1487         - added code to clear dirty flags in the device (opensync module)
1488         - allowed comments in the config file
1489         - added vformat.c from libopensync 0.22, since the vformat
1490                 routines are not available from the plugin side
1491 2007/04/19
1492         - updated gui/TODO
1493         - added -d switch to bcharge to switch back from 0001 to 0004 mode,
1494                 changed the auto-detection logic to ignore iProduct and
1495                 only use idProduct, and updated man page
1496         - updated breset to recognize the Pearl in 00004 mode as well
1497         - changed src/probe.cc logic to assume that the second endpoint
1498                 pair is the one needed for database communication, instead
1499                 of doing a reverse search from the end... newer Pearls
1500                 in Dual mode seem to have at least 3 or 4 endpoint pairs,
1501                 and the old search didn't always work
1502         - applied sourceforge patch #1696884 from Peter Silva, updating
1503                 the Debian build for Etch, and including all files in one deb
1504         - added Peter Silva to AUTHORS file
1505         - uncommented the "make distclean" in debian/rules, and removed
1506                 the reliance on /tmp when installing 99-barry-perms.rules
1507         - applied bb_task_format.txt patch from Peter Silva
1508         - fixed each misspelling of "recurrance" to "recurrence"
1509         - tweaked src/probe.cc again for paranoia's sake... start at
1510                 offset 1 if more than 1 endpoint pair, otherwise start
1511                 search at 0
1512         - split up opensync module into multiple source files, and started
1513                 using the opensync vformat routines for parsing and building
1514                 the vevent20 data (experimental)
1515 2007/04/04
1516         - more incremental work on the opensync plugin, adding ADDED
1517                 and MODIFIED functionality... (experimental!)
1518 2007/03/30
1519         - added code to dump extra descriptors during device discovery,
1520                 if found
1521         - bumped opensync version number in configure.ac, and made
1522                 the configure scripts more consistent with the rest
1523                 of the project
1524         - fixed printf-format size bug in opensync module
1525 2007/03/29
1526         - applied patch from Niels de Vos, fixing deb udev rules for Pearl
1527         - updated AUTHORS
1528         - fixed extra space bug in LDIF output (added space when creating
1529                 FullName, even if there was no last name)
1530         - fixed Address Book record parsing in Contact class... the
1531                 Blackberry database uses field id 0x20 for both the
1532                 first and last names, and if only a last name exists,
1533                 the first name will be empty.  Fixed parser to handle
1534                 this special case, without relying on string length.
1535                 Thanks to Troy Engel for reporting above two LDIF bugs.
1536         - added a few more constants to bcharge.cc
1537         - renamed opensync's configure.in to configure.ac
1538 2007/03/17
1539         - fixed bcharge to avoid endless reset loop... oops
1540 2007/03/16
1541         - reorganized bcharge.cc to make it possible to switch between
1542                 Pearl modes 0004 and 0001
1543         - added flag to BadPassword exception class, to signal whether
1544                 the library considers the device "out of retries" or not
1545         - updated socket.cc for new BadPassword exception
1546         - added special case to Controller class destructor to reset the
1547                 device if being destroyed in a half-open state... this is
1548                 a temporary fix until we understand how to handle
1549                 the "already open" message we get when opening the Desktop
1550                 in some cases
1551         - added password prompt dialog to the backup GUI
1552         - fixed possible memory leak in GUI's DeviceInterface::Connect()
1553 2007/03/08
1554         - committed Troy Engel's bbrules_mass_symlinks.patch, fixing
1555                 udev rules for the Pearl
1556         - updated 10-blackberry.rules.Debian to match 10-blackberry.rules's
1557                 functionality
1558         - applied Troy Engel's barry.spec patch to generate all required
1559                 RPM's... Thank you!  Notes in the README taken from
1560                 the sourceforge tracker entry containing the patch.
1561         - added libusb lib flags to tools/ and examples/ makefiles,
1562                 and tweaked configure.ac with a better default,
1563                 to build cleanly on RHEL 4
1564         - modified rpm/barry.spec:
1565                 - does not create doc-only barry base package anymore
1566                 - fixed "barry-backup" typo
1567                 - removed the patch step, as version 0.7 shouldn't need it
1568                 - added license file to each package
1569                 - commented out console perms scripts, pending mailing list
1570                         discussion
1571         - updated AUTHORS
1572         - applied Troy Engel's barry.spec patch to fix RHEL4 compile issues
1573         - fixed 80 column wrapping error in barry.spec, thanks to Troy Engel
1574                 for the bug report
1575         - applied Troy Engel's udev permissions patch for Redhat/Fedora
1576                 systems, which automatically set the ownership of a
1577                 newly plugged in device to the currently logged in console
1578                 user.
1579         - added udev/README to document what all those files are for...
1580                 part of the text comes from the sourceforge comment
1581                 on the above udev permissions patch from Troy Engel
1582         - uncommented the console perms scripts for rpm/barry.spec
1583         - added libglademm-2.4 to gui/README's dependency list
1584         - made usbwrap.* calls more threadsafe
1585         - added Usb::Timeout exception for timeout errors
1586         - added preliminary UsbSerData support to library for GPRS modem
1587                 functionality, using Rick Scott's XmBlackBerry's serdata.c
1588                 as a guide
1589         - added overloaded Socket::Send() for sending without receiving
1590         - added preliminary pppob command line tool
1591 2007/03/02
1592         - version bump in:
1593                 - configure.ac
1594                 - src/Makefile.am
1595                 - src/version.cc
1596                 - gui/src/BackupWindow.cc (about dialog)
1597                 - src/Doxyfile
1598                 - rpm/barry.spec
1599         - build system tweaks for opensync-plugin, and added a buildgen.sh
1600                 for it
1601         - added better debug messages in probe.cc and usbwrap.cc's
1602                 device discovery code
1603         - changed error handling for null interface->altsetting pointers
1604                 when doing device discovery in usbwrap.cc.  Seems that
1605                 some devices report a higher number in bNumInterfaces
1606                 than are really available... in this case, let's
1607                 just ignore the missing data and assume success
1608         - applied udev script patch #1663986 from Troy Engel
1609         - applied barry-bcharge.spec patch #1672178 from Troy Engel
1610         - ReleaseChecklist update
1611         - added rpm/README based on Troy Engel's patch notes
1612         - updated new barry-bcharge.spec for version 0.7, removing patch
1613                 dependency
1615 Release: version 0.6 - 2007/02/28
1616 ------------------------------------------------------------------------------
1617 2007/02/28
1618         - fixed size checks for device database records larger than 64K
1619                 Thanks to Michael Brown for the bug report.
1620         - added initial release maintainer scripts
1621         - fixed odd backup success message in GUI when doing a backup with
1622                 no databases selected in configuration
1623                 Thanks to Michael Brown for the bug report.
1624         - added udev permissions file patch from Michael Brown
1625         - added Michael Brown to AUTHORS
1626         - updated README, gui/README, and doc/USB-capture.txt
1627         - added -o command line switch to bcharge.cc, and updated man page
1628 2007/02/23
1629         - changed library behaviour so it only turns on libusb debug output
1630                 if in data dump mode.  In btool, -v controls this output.
1631         - minor stream formatting fix in btool
1632         - added OpenSSL dependency to build for password hash support
1633         - made debug dout() output conditional on Init() flag... In btool,
1634                 -v now controls this as well
1635         - reverse engineered more of the initial probe packets, and
1636                 implemented probing in struct based code... changes include:
1637                 - added support for "attribute fetch" packets, used at
1638                         the beginning of USB conversations
1639                 - defined object/attribute id codes for the PIN number
1640                 - made Protocol::SocketCommand more robust, and implemented
1641                         its sequence number behaviour
1642                 - moved ModeSelectCommand into SocketCommand, as it is a
1643                         socket 0 level command
1644                 - added initial protocol struct: PasswordChallenge
1645                 - renamed Barry::Packet to DBPacket
1646                 - added ZeroPacket for socket 0 packet creation and analysis
1647                 - Barry::Packet is now the base class for the above
1648                 - implemented socket 0 behaviour in socket.cc
1649                 - changed return values for Send/Receive/Packet/NextRecord
1650                         members in the Socket class from bool to void, as they
1651                         don't generate errors themselves, but only can
1652                         have an error if Usb::Device throws an exception.
1653                         Cleaned up all code that called these members as well.
1654                 - removed "last status" from Socket class as it was unused
1655                 - updated probe.cc to use new socket 0 implementation
1656                 - removed two of the hard coded packet handshakes in favour
1657                         of socket 0 packets
1658                 - updated controller.cc:
1659                         - uses new socket 0 implementation
1660                         - removed "flag" hack when opening sockets and
1661                                 selecting modes, as it should use the
1662                                 socket 0 sequence number
1663         - added initial, incomplete prototype header for the C API
1664         - updated some .cvsignore files
1665         - updated TODO
1666         - updated ReleaseChecklist.txt, adding rpm spec file
1667         - added the following to ZeroPacket:
1668                 - ChallengeSeed()
1669                 - RemainingTries()
1670                 - SocketResponse()
1671                 - SocketSqeuence()
1672         - moved Command() to base Packet class
1673         - added comments to protostructs.h and size constants for the
1674                 new PasswordChallenge struct
1675         - added password support to Socket and Controller classes
1676                 Thanks to Rick Scott's XmBlackBerry for the openssl
1677                 password hashing logic.
1678         - updated btool to use new password support, and updated its man page
1679 2007/02/22
1680         - updated Doxygen input files and version, and added to ReleaseChecklist
1681         - fixed btool PIN output for LDIF mode, now commented in output
1682         - major LDIF overhaul:
1683                 - split LDIF specific code out of the record class and
1684                         into its own
1685                 - fixed "full name" behaviour that added an extra space
1686                         in dn attributes, as reported by Troy Engel
1687                 - added support for mapping of LDIF attributes to Barry
1688                         contact field names
1689                 - fixed base64 handling, so attributes are only so encoded
1690                         if necessary
1691                 - fixed base64 attribute reading inconsistency... some
1692                         notes fields were missed in old version if not
1693                         encoded
1694                 - added support for specifying alternate attribute for
1695                         constructing a FQDN, instead of just "cn"
1696                 - updated btool and upldif to use new features
1697         - large update to btool manpage
1698         - fixed initialization bug in Contact constructor (missed RecType)
1699 2007/02/15
1700         - added ktrans.cc to make reading of kernel usbfs_snoop logs easier
1701         - removed commented code from translate.cc
1702         - added Pearl handshake support to bcharge.cc, which resets the
1703                 Pearl so that the vendor specific 0xFF class exists.
1704                 This should allow use of btool on the Pearl.
1705         - added Data::AppendHexString to data.cc
1706         - added better probing support for the Pearl, so it detects the
1707                 Product ID 0x0004 mode, and does a search for class 0xFF
1708                 instead of hardcoding it.
1709 2007/02/10
1710         - applied README patch from Ian Darwin
1711         - minor tweaks to README
1712         - added missing errno.h header in src/usbwrap.cc for AMD64
1713                 Thanks to Jonathan Hudson for reporting the bug.
1714         - tightened up size checks in Data::ReleaseBuffer()
1715         - stable libusb *does* return the actual length of the USB packet...
1716                 fixed this in usbwrap.cc to set the actual size of read data,
1717                 and removed the size hacks elsewhere in the code:
1718                 probe.cc, protocol.cc, socket.cc, usbwrap.cc
1719 2007/02/09
1720         - added proper return codes for error conditions in btool.cc
1721         - clarified some stream output code in the library, for hex/dec numbers
1722         - removed old, non-working connect.cc test program
1723         - added iomanip to debug.h
1724         - changed usbwrap to call libusb again if EINTR and EAGAIN
1725                 This should fix one of the OpenBSD issues
1726 2007/02/04
1727         - updated AUTHORS
1728         - fixed bug in barrybackup GUI that didn't create the target path
1729                 if the user didn't do Edit | Config first.
1730                 Thanks to Ian Darwin for reporting the bug.
1731         - applied gui/src/ConfigFile.cc header fix patch for OpenBSD
1732                 from Ian Darwin
1733 2007/02/03
1734         - added initial btool.1 man page from Ian Darwin
1735         - updated man/Makefile.am for new btool.1
1736         - updated AUTHORS
1737         - applied btool -h help clarification patch from Ian Darwin
1738 2007/02/02
1739         - reworked exception hierarchy, so applications can handle all
1740                 Barry related exceptions, including Usb errors, with
1741                 one base class: Barry::Error
1742         - fixed all the ripple changes this caused throughout the codebase
1743         - added BadPassword exception
1744 2007/02/01
1745         - version bump in:
1746                 - configure.ac
1747                 - src/Makefile.am
1748                 - src/version.cc
1749                 - gui/src/BackupWindow.cc (about dialog)
1750         - updated doc/ReleaseChecklist.txt
1751         - added usb-level breset.cc command line tool
1752         - fixed bug in gui/src/tarfile.* for systems where
1753                 sizeof(int) != sizeof(void*)
1754                 - TarFile class now uses a plugin style for the compression
1755                         operations, to allow for threadsafe versions if needed
1756                         in the future.
1757                 - also fixed leaked file handle bug in open_compressed()
1758                 - Thanks to Jonathan Hudson for reporting this for 64bit systems
1759         - minor signed comparison fixes in the library
1760         - added better protocol data dumping code in probe.cc
1761         - added Usb::Device::BulkDrain(), to prevent Barry from hanging
1762                 due to pending reads
1764 Release: version 0.5 - 2007/01/26
1765 ------------------------------------------------------------------------------
1766 2007/01/26
1767         - added missing errno.h header to gui/src/util.cc
1768         - lots more endian fixes after testing on iMac  
1769         - iostream output size fixes
1770         - added option to btool to reset the device via software
1771         - beefed up exception handling in barrybackup
1772         - checked in opensync work-in-progress: trace logging, pointer bugfix
1773                 this is still experimental
1774         - added aboutdialog.* files from gtkmm24 2.10.6, so we have a dialog
1775                 class for systems running older versions of gtkmm, like
1776                 Debian stable
1777         - uncommented the about box menu handler
1778         - added "cleanall" option to root buildgen.sh script
1779         - update ReleaseChecklist.txt
1780         - removed CVS auto-history strings from aboutdialog.*
1781 2007/01/25
1782         - found a link between the unknown field in tagged protocol headers
1783                 and the unknown field in RecordStateTable entries.  This
1784                 field matters when uploading certain databases, such as
1785                 Browser Options.  It is unknown what this field really
1786                 means, but we're calling it RecType.  Updated the API
1787                 to use this in all parser objects and builder objects
1788                 and record objects that use it.
1789         - changed some uses of uint64_t to uint32_t, in Contact and
1790                 Calendar record objects... unique IDs only seem to be
1791                 32 bits
1792         - added new static function to record classes: GetDefaultRecType()
1793                 This returns the default rectype that should work
1794                 for that record.  Ideally this should be retrieved from
1795                 the device, but in the case where a database has no
1796                 records, this info would be good to know.
1797         - updated convenience template function Controller::AddRecordByType()
1798                 to use GetDefaultRecType()
1799         - documented the recurrence data and how to use it in Calendar objects
1800         - added data debug output for incoming USB packets in the
1801                 socket class... when we ported to the stable libusb
1802                 we lost some of the verbose output... this should get it
1803                 back.  (In the official release, you need to uncomment
1804                 ddout() in debug.h for the full blast of debug output).
1805         - backup GUI updates:
1806                 - changed error_done signal into a pure error signal,
1807                         and changed the logic so the restore continues
1808                         even if there was a protocol error on one database
1809                 - changed status bar messages to show what's happening
1810                         i.e. Backup or Restore
1811                 - default to not restore the "Handheld Agent" database as
1812                         it appears to be read-only on the device
1813                 - added temporary Restore & Backup mode for debugging
1814                 - added extra hyphen to backup files to show date/time better
1815                 - updated GUI to save and restore the new RecType field
1816                         supported now by the library
1817 2007/01/21
1818         - added future considerations to doc/ReleaseChecklist.txt
1819         - applied big endian patch from Jonathan Hudson
1820         - changes to patch:
1821                 - removed endian.h include from barry.h, since applications
1822                         using the library should not care about endianness
1823                 - hard coded the path to config.h in endian.h
1824                         so that endian.h never makes it into the final
1825                         install
1826                 - removed DEFAULT_INCLUDES setting from src/Makefile.am
1827                         for the same reason
1828                 - removed config.h dependency in btool.cc and used library
1829                         Version call instead
1830         - added big/little endian text to the Barry::Version call
1831         - updated AUTHORS
1832         - fixed install location of bcharge when building with ./configure;
1833                 now goes to sbin/ for both source compile and binary packages
1834                 Thanks to Jonathan Hudson for reporting this bug.
1835 2007/01/20
1836         - added smarter timeout values to controller, and allowed
1837                 timeout overrides in the packet, socket, and usbwrap code...
1838                 extra timeouts are needed for erasing databases for
1839                 some older devices
1840         - added an explicit DataDumpParser class to btool.cc, as the
1841                 library doesn't always have extreme verbose debugging on...
1842                 this makes sure anyone can always get raw database packets
1843                 through btool, for development
1844         - added thread callback signals for error finishes and erase_db
1845                 operations, so the GUI is updated properly
1846         - more GUI cleanups (status bar updates, etc)
1847         - finished implementation of GUI restore
1848         - fixed gtkmm/glibmm exception handling when the exceptions
1849                 occur in sigc signal handlers... in that case,
1850                 exceptions need to be handled with
1851                 Glib::add_exception_handler()
1852         - added filename-only reading support to TarFile class
1853         - added pending gui/TODO items
1854 2007/01/19
1855         - backup GUI now properly shows progress
1856         - the buttons become insensitive when backup is busy
1857         - refactored directory check code, and added mkdir check
1858                 when to the backup setup (so the directory exists
1859                 when we try to write to it)
1860         - updated code to use Barry::Data in new namespace
1861 2007/01/18
1862         - moved Data class into Barry namespace
1863 2007/01/13
1864         - updated copyright dates for the new year
1865         - clarified exception message in controller.cc
1866         - fixed pointer initialization bug in controller.cc
1867         - added documentation comments to parser.h and builder.h
1868         - updated ReleaseChecklist.txt
1869         - updated README
1870         - changed Barry library configure scripts to make better
1871                 use of pkg-config for autodetecting dependencies
1872         - added initial Barry Backup GUI (gui/ directory), capable of making
1873                 backups only at this point
1874 2007/01/11
1875         - added doc/ReleaseChecklist.txt
1876         - added version API, returning version number and string
1877         - added Troy Engel to AUTHORS
1878         - added special case to bcharge.cc for the Blackberry Pearl,
1879                 which doesn't reset itself after the charge handshake
1880                 Thanks to Troy Engel for testing.
1881 2007/01/05
1882         - added pkg-config support for the library (libbarry-0.pc.in)
1883         - fixed compile error on g++ 3.3 systems (missing stdint.h
1884                 in probe.h)
1885         - fixed protocol hang at end of Controller operation... in
1886                 controller destructor, it was deleting the USB interface
1887                 before closing the socket at the BlackBerry level, thereby
1888                 leaving the device in Desktop mode
1889 2007/01/04
1890         - support the newer udev packages on Ubuntu, which need slightly
1891                 different rules
1892         - modified bcharge.cc to search for Pearl devices too.
1893                 USB product ID 6
1894         - added Pearl product ID to probe code, but likely not functional
1895                 yet until we find someone able to get a USB capture for us
1896 2006/12/29
1897         - version bump in configure.ac and src/Makefile.am
1899 Release: version 0.4 - 2006/12/29
1900 ------------------------------------------------------------------------------
1901 2006/12/29
1902         - added bcharge.cc to the tools/ directory (whoohoo!)
1903         - added initial release version of rpm/barry.spec (aka bcharge.spec)
1904                 This begins the barry binary release, currently only
1905                 including the bcharge utility, but possibly more in
1906                 the future.  Future binary packages will likely include
1907                 libbarry, libbarry-devel, etc, which barry will then
1908                 depend on.
1909         - added udev rule script for BlackBerry devices
1910         - added man/ directory and bcharge.1 manpage
1911         - added debian/ directory for building deb packages, with initial
1912                 package scripts
1913         - added rpm/make-rpm-tarball.sh for building RPMs
1914         - split out technical docs into separate libbarry.docs file for
1915                 a future Debian install
1916         - added more cleaning to buildgen.sh
1917         - added new udev rule file for Debian stable
1918         - hardcoded g++ to 3.3 in debian/rules as I have multiple versions
1919                 on my system and need to compile releases with stable
1920 2006/12/21
1921         - ported Barry to use the stable branch of libusb
1922                 NOTE: no longer depends on the devel libusb tarball!
1923                         Just use your distro's libusb packages.
1924         - fixed more endian issues
1925         - minor update to TODO
1926 2006/12/15
1927         - moved Exceptions, Hacking, and VersionNotes to doc/
1928         - added doc/USB-capture.txt
1929 2006/12/08
1930         - added Controller::AddRecord() and template helper
1931         - added beginning version of generic RecordFetch<> template
1932         - set default of Barry::Init() to false (no data dump mode)
1933         - added examples/ directory, with first addcontact.cc example
1934 2006/12/07
1935         - added autoconf support based on Peter McAlpine's patch
1936         - renamed Makefiles to Makefile.orig and added script to turn
1937                 on old build system if wanted
1938         - fixed boost-specific error path in btool
1939         - moved platform specific code out of time.h and into time.cc
1940         - moved btool.cc, translate.cc, and upldif.cc out of src/ and
1941                 into their own tools/ subdirectory
1942         - added NEWS file to make autotools happy
1943         - added a "clean" option to the buildgen.sh script... maintainer's
1944                 use only
1945         - reworked autoconf and automake files, to support
1946                 barry as a library, to move the programs into their
1947                 own tools directory, and support a proper installation
1948         - fixed headers in parser.h, btool.cc, and upldif.cc to work
1949                 properly when installed standalone
1950         - added tools/Makefile.plain for testing compiling against
1951                 installed barry library
1952         - added commentary on version number system
1953         - removed Makefile.conf and Makefile.orig, as new autoconf
1954                 system supercedes it
1955         - added support for boost serialization library in autoconf build
1956         - added library version number to autoconf build
1957         - changed boost flag to __BARRY_BOOST_MODE__ to avoid collisions
1958         - removed debug.h dependency from btool.cc
1959         - removed libusb check in favour of specific --with-libusb
1960                 option... may need to revisit this later
1961         - quick installation update in README
1962 2006/12/01
1963         - fixed some missed endian conversions in record.cc and added
1964                 some size checks
1965         - fixed endian issues in time.h
1966         - added 2 more functions to the time zone API, and adjusted
1967                 the time zone table for better defaults in North America
1968         - added btool and upldif to the make install sequence
1969         - added support for Calendar recurrence data
1970         - small doc/TimeZones.txt update
1971 2006/11/24
1972         - added BlackBerry time zone code list, reverse engineered from a 7750
1973         - added GetTimeZone() to convert device time zone codes to useful data
1975 Release: version 0.0.3 - 2006/11/24
1976 ------------------------------------------------------------------------------
1977 2006/11/23
1978         - added return code check to Controller::SaveDatabase()
1979         - fixed Data() class constructor, so it doesn't auto-convert
1980                 from any int
1981         - fixed size checking bug in Packet::ReturnCode() that caused
1982                 uploading to device to fail
1983 2006/11/10
1984         - added Exceptions doc file, documenting the C++ exceptions used,
1985                 and their hierarchy
1986         - fixed small bug in 'make install' which didn't build first
1987         - minor documentation and cleanup in upldif.cc
1988         - added utility functions to the RecordStateTable class,
1989                 GetIndex() and MakeNewRecordId()
1990         - changed btool so that the -d command modifiers can be
1991                 specified multiple times to work with multiple records
1992                 at once
1993         - added Calendar sync code to the opensync module (not complete)
1994         - cleaned up exception handling in the opensync module, making
1995                 more use of the base exception to make sure no
1996                 exceptions leak into the C library code
1998 Release: version 0.0.2 - 2006/10/12
1999 ------------------------------------------------------------------------------
2000 2006/10/12
2001         - fixed casting error in opensync module
2002         - minor updates to documentation to prepare for release
2003 2006/09/29
2004         - added stdint.h to parser.h for uint32_t.  Thanks Ron Gage for
2005                 the bug report
2006 2006/09/08
2007         - large refactoring of the packet parsing and building code,
2008                 splitting the code into 3 groups:
2009                 - record: handles record specific parsing and building...
2010                         this is mostly subfields with CommonField structs
2011                         as their headers, but sometimes has a specific
2012                         header of its own, in the case of email
2013                         Note: email's header is as yet undecoded.
2014                         Record does not know the details of the packet
2015                         formats, only the formats of its own record data.
2016                 - packet: handles building of complete command packets
2017                         and handles parsing of commonly used header values,
2018                         providing an API for it... packet does not know
2019                         the record format details, but does know the
2020                         details of each Database Operation (protocol.h)
2021                         packet format.
2022                         So far, it seems that there is a real separation
2023                         of operation formats and record formats, with the
2024                         record formats being the same even with different
2025                         database operation codes (GET_RECORDS /
2026                         OLD_GET_RECORDS), which was not confirmed before.
2027                         See the header size of the email record after
2028                         refactoring.
2029                 - controller: handles device state, and the management of
2030                         sockets, commands, and checking for response values.
2031                         The Controller object does not know the format
2032                         of either the record or the packet it is sending,
2033                         but does know the protocol handshake logic used
2034                         to talk to the device.
2035         - implemented SetRecord (SET_RECORD_BY_INDEX)... syncing, here
2036                 we come!
2037         - spelling correction in opensync-plugin/AUTHORS
2038 2006/09/01
2039         - added sample hotplug scripts
2040         - added .cvsignore files for doxygen and opensync directories
2041         - added src/endian.h... still need to add configure support to
2042                 handle non-little-endian machines
2043         - added exception handler in opensync plugin commit_change()
2044         - removed the device reset code in probe.cc, as resetting a device
2045                 can renumber the devices in /proc on kernel 2.4.x,
2046                 and cause a failure to reach the device...
2047                 FIXME - this should be changed someday to reset if probing
2048                 fails, and restart the probe on reset, as sometimes
2049                 the blackberry devices respond differently when not reset
2050                 Ideally, the probe protocol should be properly reverse
2051                 engineered.
2052         - added support for retrieving record state table, which is needed
2053                 for smarter syncing
2054         - added support for retrieving, deleting, and clearing the dirty
2055                 flags of individual blackberry device records
2056         - added endian macros throughout the code
2057 2006/07/13
2058         - added opensync-plugin to root Makefile's clean
2059         - updated time conversion calls to match opensync's latest SVN
2060         - added opensync_change_set_changetype() (only add for now,
2061                 for development)
2062         - removed slow sync functions for now
2063 2006/07/07
2064         - added quick "install" makefile target, to src/install by default
2065         - added static library target... this is temporary until autoconf
2066                 stuff is added properly... needed for the opensync plugin
2067         - documented in comments that Barry::BError is intended to be
2068                 the base classes for all exceptions
2069         - added first round of implementation of an opensync plugin, based
2070                 on the example plugin code from the opensync sources
2071 2006/06/22
2072         - added to Contact record class:
2073                 - Clear()
2074                 - ReadLdif() to load and parse LDAP data
2075         - added fragmented send support to Socket class
2076         - added Probe::FindActive() to make client programs more streamlined
2077         - fixed hex/decimal printing of record counts in btool
2078         - added upldif.cc, a utility to take ldapsearch output on stdin
2079                 and upload it to a blackberry
2080         - updated src/.cvsignore
2081 2006/06/16
2082         - added parsing of service book fields:
2083                 - old and new name
2084                 - old and new unique ID (UID)
2085                 - content ID (CID)
2086                 - old and new description
2087                 - DSID
2088                 - bes domain / domain
2089         - date change in legal.txt
2090         - added initial parsing of ServiceBook field 0x09, and calling it
2091                 ServiceBookConfig for now, for lack of a better name
2092         - added parsing for ServiceBook field 0x02 on 72xx Blackberries...
2093                 seems to be a name or description, but doesn't appear
2094                 in the device's own GUI... called "Hidden Name" for now
2095 2006/06/09
2096         - added ServiceBook record class and parser code, based on some
2097                 of Ron Gage's reverse engineering... code is by Chris Frey
2098         - added AUTHORS file
2099         - fixed the libusb set_configuration/claim_interface order
2100                 bug in controller.{h,cc}... already fixed in probe,
2101                 but not controller.  Thanks Ron Gage for finding this.
2102 2006/05/25
2103         - renamed Changelog to ChangeLog in preparation for autoconf
2104         - renamed Todo to TODO in preparation for autoconf
2105 2006/05/18
2106         - make clean cleans up tests properly now
2107 2006/03/31
2108         - turned source code browsing on in Doxyfile
2109         - added LoadDatabaseByName() and LoadDatabaseByType() template members
2110                 to the Controller class
2111                 - new file: controllertmpl.h
2112         - documentation fixes in builder.h
2113         - added static GetDBName() functions to all record classes, in
2114                 support of the template Controller functions
2115         - fleshed out DatabaseDatabase::GetDBNumber() and GetDBName(),
2116                 returning errors properly
2117         - documented sample btool.cc code better, and added example
2118                 of Controller template member usage
2119 2006/03/29
2120         - copyright dates updated for 2006
2121 2006/01/05
2122         - backed out update to latest libusb DEVEL tree, since it is buggy.
2123                 Stick with libusb 2005/11/26
2124 2005/12/30
2125         - added clean target to convenience Makefile
2126         - added Boost to list of dependencies in README
2127         - fixed minor compile warnings in base64.cc
2128         - fixed new USB discovery code, and changed endpoint usage to use
2129                 it, instead of the READ_ENDPOINT and WRITE_ENDPOINT
2130                 constants... constants are now removed
2131                 common.h, controller.cc, probe.cc, probe.h, usbwrap.cc
2132         - added ClearHalt() to Usb::Device (usbwrap.cc)
2133         - updated usbwrap.h to match latest libusb CVS devel tree
2134         - updated README to refer to 2005/12/30 libusb CVS devel tree
2135         - added roadmap to Todo list
2136 2005/12/29
2137         - added convenience Makefile in root directory
2138         - added Hacking document
2139         - minor touchups to README
2140         - added caution warning to README, since this release will support
2141                 delete / overwrite / upload functionality
2142         - minor compile order change in Makefile (speed reasons)
2143         - added dynamic endpoint discovery to probe.cc
2144         - changed claim_interface/set_configuration() function call order in
2145                 probe.cc based on feedback on the libusb mailing list
2146         - added USB discovery code to usbwrap.{h,cc}
2147 2005/12/23
2148         - fixed packing bug in new upload header struct
2149         - renamed CommonField union from data to u to be consistent
2150         - added return_code field to DBAccess struct, for error checking
2151         - added response checking during upload: if response is non-zero
2152                 throw exception in controller.cc
2153         - added sorting operators to record parser classes... when writing
2154                 contact data to the device, it may be important to write
2155                 group link items last, since they reference other contacts...
2156                 This needs to be tested, and if not required, removed.
2157         - added GROUP_FLAG field code to Contact parser class
2158         - fixed offset bug in Contact and Calendar Build() functions
2159         - fixed name bug in Contact::Build(), now output only with data
2160         - added appointment type flag support to Calendar record parser
2161                 class, and "all day event" flag support
2162 2005/12/22
2163         - added autoconf to Todo list
2164         - refactored the protocol structures so that record structs can
2165                 be reused for upload and download
2166         - with new protostructs, more header control is handled by
2167                 controller.cc instead of record.cc parsers and builders
2168         - parser code now accepts an offset, to govern start of record data
2169         - changed Data sizes from int to size_t and removed casts
2170         - removed unneeded Parser::GetHeaderSize() (new protostructs make
2171                 this obsolete)
2172         - added Calendar::Build() for calendar uploads
2173 2005/12/10
2174         - added s11n-boost.h serialization templates for boost::serialization
2175         - added boost::serialization to build
2176         - minor change in usbwrap.cc to display error codes in decimal
2177         - added SizePacket special case code to Socket::Send()... this is
2178                 required when uploaded packet size is a multiple of 0x40,
2179                 a special 3 byte size packet is sent
2180         - moved some record class variables to public: so they can be
2181                 properly serialized
2182         - fixed variable name but in RecordBuilder template
2183         - added -f switch to btool, for saving and loading of record data
2184         - added -s switch to btool, for uploading saved data back to handheld
2185         - added Controller::SaveDatabase()
2186 2005/12/08
2187         - fixed potential casting / pointer bug in controller.cc
2188         - added builder.h, to support uploading
2189         - minor comment fixes in parser.h
2190         - added preliminary Contact protocol record building support
2191         - fixed field order bug in ContactRecord protocol struct
2192         - Contact record.h class now saves unknown Group Link field,
2193                 for later saving
2194 2005/12/07
2195         - added -fno-strict-aliasing to compiler flags so gcc-4.0.x won't
2196                 optimize away protocol struct casts
2197                 see: 
2198                 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25235
2199                 http://mail-index.netbsd.org/tech-kern/2003/08/11/0001.html
2200                 http://groups.google.ca/group/comp.lang.c++.moderated/ \
2201                         browse_thread/thread/e7bf096832526f8e/5714701b \
2202                         02a2a3cc?hl=en#5714701b02a2a3cc
2203         - changed headers so that any low level protocol-specific sizes and
2204                 structs are completely hidden in the library...
2205                 this adds library-only header: protostructs.h
2207 Release: version 0.0.1 - 2005/11/25
2208 ------------------------------------------------------------------------------
2209 2005/11/25
2210         - added barry.h for documentation purposes and application usage
2211         - updated README for release
2212         - renamed SBError exception class to BError
2213         - updated Doxyfile to version 1.4.5
2214         - added more doxygen comments
2215 2005/11/24
2216         - added conversion routines (and tests) between time_t and min1900_t
2217         - added -v option to btool to dynamically control protocol dumping
2218         - removed duplicated database database table display in controller.cc
2219         - minor spelling corrections
2220         - added copyright to usbwrap.{h,cc} as per earlier meeting
2221         - added support for Old protocol Calendar entries
2222 2005/11/20
2223         - added legal.txt, to save typing when adding new source files
2224         - ignore test-base64 file (cvsignore)
2225         - added contact-to-ldif generation, and updated supporting code
2226         - added argument to btool to support contact-to-ldif operation
2227         - added Contact::GetPostalAddress()
2228         - added README documentation in preparation for future release
2229 2005/11/19
2230         - added parser.{h,cc} virtual wrapper to generalize LoadDatabase()
2231         - added code to socket.cc's Packet() command to re-receive on
2232                 reception of empty packets... this seems to be a signal
2233                 from the device that it needs more time for long transfers
2234                 Current limit: 10 blank packets before exception is thrown
2235                 Observed maximum blank count: 1
2236         - added MessageRecord and OldMessageRecord to protocol.h
2237         - changed common record field structs to one CommonField struct
2238         - increased default USB timeout to 10 seconds (some loaded devices
2239                 seem to need more time...)
2240         - reorganized record.{h,cc} to try to reduce the code duplication
2241         - record.h classes now "know" the sizes of their corresponding
2242                 protocol structs... this may cause trouble down the line
2243                 with Python, if used(?)
2244         - added Message class for Email records
2245         - removed the "Get*" database functions and replaced with
2246                 general LoadDatabase() call, which loads any database
2247                 available, and parses it with a Parser object
2248         - added GetDBID() for searching for database numbers via name
2249         - added test code to retrieve and display all email
2250         - cleaned up comments
2251         - renamed blackberry.{h,cc} to controller.{h,cc}
2252         - renamed bbtool.cc to btool.cc
2253         - added Makefile.conf
2254         - added copyright notices to source files
2255         - added COPYING file with GPL
2256         - put parser in Barry namespace, and added auto_ptr-like mode for
2257                 store object pointers
2258         - added doxygen docs
2259         - added header comments to convo.awk script
2260         - removed Test() function in Controller object, and made class
2261                 better suited to its general API purpose
2262         - changed OpenMode() so it loads command table and DBDB... it is now
2263                 a public API function
2264         - moved Controller test code to btool.cc and made tool more
2265                 generically useful... can now download any DB by name on
2266                 the command line
2267         - added mode checks to Controller
2268         - added -t and -d command line options to btool
2269         - added base64 routines from John Walker / Fourmilab and Citadel/UX
2270         - converted base64 routines into an API, instead of hardcoded
2271                 file based
2272 2005/11/18
2273         - changed project name to Barry, including namespaces
2274         - renamed sbcommon.* to common.*
2275         - increased USB default timeout to 2 seconds
2276         - fixed formatting bug in Data operator<< output
2277         - cleaned up the protocol packet structs, getting rid of the
2278                 confusing param/simple split... param is now the tableCmd
2279                 from the Command Table
2280         - moved protocol structs from record.h to protocol.h
2281         - added support for older version of the USB protocol, which matches
2282                 the Cassis spec more closely
2283         - fixed the hardcoded offsets in blackberry.cc's protocol parsing
2284         - fixed Socket::Close() so on error, socket flags are reset.
2285                 This stops Close() from being called twice on exception
2286                 destructors
2287 2005/11/17
2288         - added Doxyfile to the project
2289         - tuned Makefile
2290         - added mode selection support to Blackberry class (RIM Desktop,
2291                 RIM Bypass, and RIM_JavaLoader)
2292                 Mode selection governs which socket is used in subsequent
2293                 data transfers.
2294         - added Command Table parsing and protocol support
2295                 Blackberry class, and CommandTable record class
2296         - added Database database parsing and protocol support
2297                 Blackberry class and DatabaseDatabase record class
2298         - added Address book retrieval support - dumps data to stdout for now
2299         - fixed bug in CopyOnWrite mode in Data class, where could allocate
2300                 less buffer than data copied
2301         - added "easy exception" debug output macro
2302         - fixed minor spelling error in protocol.cc
2303         - fixed ModeSelectCommand protocol structure - it is not a parameter
2304                 command, but uses the unknown slots for socket and flag
2305                 data
2306         - removed hardcoded socket numbers from protocol.h
2307         - fixed bug in socket.cc:Open() where packet size was not properly
2308                 saved
2309         - implemented socket::Close()
2310         - fixed sequence number checks, so it is reset properly on socket 0
2311         - added Socket::NextRecord() for multiple record data transfers
2312         - fixed input handling bug in translate.cc
2313 2005/11/11
2314         - added .cvsignore files to project
2315         - added README notes to document the source architecture
2316         - added dbsetup data script, which shows how to get into database
2317                 mode, using the RIM Desktop mode, and open a socket
2318         - added blackberry.{h,cc} class
2319         - added command line parameters to bbtool.cc
2320                 -l = list only
2321                 -p = specify pin of blackberry device
2322         - added blackberry test code in bbtool.cc - debugging the initial
2323                 opening protocol: sockets, modes, etc... see dbsetup for
2324                 results
2325         - added copy-on-write functionality to Data class, so it can be used
2326                 with plain data buffers with little performance impact
2327         - added eout() and ddout() debugging - to separate:
2328                 - regular debug output
2329                 - exception debug output (should probably be logged to
2330                         syslog someday, and never turned off)
2331                 - raw data dump output
2332         - changed errno SBError exception handler to try to decode the error
2333                 numbers into english (limited success)
2334         - fixed probe and socket USB Bulk message handling, so they don't
2335                 use PollCompletions(), but use IO::Wait() (libusb_io_wait())
2336         - added common packet size checker in protocol.cc
2337         - fixed unpacked protocol packet structs... using gcc's
2338                 __attribute__ ((packed)) ... see protocol.h
2339         - added ModeSelectCommand structure (protocol.h)
2340         - finished Socket::Open() call  (Close() not yet implemented)
2341         - moved Socket::Send/Receive() out of private, as they can be used
2342                 for socket 0 operations.
2343         - cleaned up pointer management with macros:
2344                 MAKE_PACKET()
2345                 COMMAND()
2346                 IS_COMMAND()
2347         - added IO::Wait() and IO::Cancel() to correspond with libusb API
2348         - added datadumping in usbwrap for easy protocol capture
2349         - added preliminary record.{h,cc} classes
2350         - added Contact record parsing, and test code
2351 2005/10/20
2352         - syncberry tree started