From 32ff719333801069f44e7e23bc281198f83a8040 Mon Sep 17 00:00:00 2001 From: Chris Frey Date: Thu, 1 May 2008 20:10:56 -0400 Subject: [PATCH] Added Calendar to list of Builders in tools/btool. It is now possible to run: btool -s "Calendar" -f datafile --- ChangeLog | 2 ++ tools/btool.cc | 11 ++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6c42ef8b..60603bf7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,8 @@ Release: version 0.13 - 2008/05/?? like a null terminated string... also added more BuildField() helper functions for accuracy - fixed missing fields in the Calendar record build process + - added Calendar to list of Builders in tools/btool... + it is now possible to run: btool -s "Calendar" -f datafile 2008/04/29 - applied Jason Thomas's ACLOCAL_FLAGS patch to make autoreconf work again... Thanks! diff --git a/tools/btool.cc b/tools/btool.cc index 053564bf..23d1ac8c 100644 --- a/tools/btool.cc +++ b/tools/btool.cc @@ -283,17 +283,17 @@ auto_ptr GetBuilder(const string &name, const string &filename) new RecordBuilder > ( new Store(filename, true))); } + else if( name == Calendar::GetDBName() ) { + return auto_ptr( + new RecordBuilder > ( + new Store(filename, true))); + } /* else if( name == "Messages" ) { return auto_ptr( new RecordParser > ( new Store(filename, true))); } - else if( name == "Calendar" ) { - return auto_ptr( - new RecordParser > ( - new Store(filename, true))); - } else if( name == "Service Book" ) { return auto_ptr( new RecordParser > ( @@ -331,6 +331,7 @@ void ShowParsers() << "\n" << "Supported Database builders:\n" << " Address Book\n" + << " Calendar\n" << endl; } -- 2.11.4.GIT