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