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