Update of /cvsroot/mahogany/M/include/adb
In directory sc8-pr-cvs1:/tmp/cvs-serv25496/include/adb

Modified Files:
        AdbDataProvider.h AdbManager.h 
Log Message:
Tolerate addressbooks that don't support autodetection

Index: AdbDataProvider.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/adb/AdbDataProvider.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -b -u -2 -r1.10 -r1.11
--- AdbDataProvider.h   28 Dec 2002 02:28:33 -0000      1.10
+++ AdbDataProvider.h   13 Sep 2003 16:03:16 -0000      1.11
@@ -51,7 +51,14 @@
   enum AdbTests
   {
-    Test_Create,        // may create book with this name?
-    Test_Open,          // does the book with this name already exists?
-    Test_OpenReadOnly   // currently unused
+    // may create book with this name?
+    Test_Create,
+    // does the book with this name already exists?
+    Test_OpenReadOnly,
+    // currently unused
+    Test_Open,
+    // Does Test_OpenReadOnly check file format?
+    Test_AutodetectCapable,
+    // Does it have separate namespace? Does it check its name?
+    Test_RecognizesName
   };
 

Index: AdbManager.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/adb/AdbManager.h,v
retrieving revision 1.18
retrieving revision 1.19
diff -b -u -2 -r1.18 -r1.19
--- AdbManager.h        13 Feb 2002 19:57:31 -0000      1.18
+++ AdbManager.h        13 Sep 2003 16:03:16 -0000      1.19
@@ -104,4 +104,8 @@
                        const AdbDataProvider *provider) const;
 
+   static AdbDataProvider *AutodetectFormat(const String& name);
+   static AdbDataProvider *CreateNative(const String& name);
+   static AdbDataProvider *MatchBookName(const String& name);
+
   static AdbManager *ms_pManager;
 



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to