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

Modified Files:
        AdbBook.h AdbEntry.h ProvPalm.h 
Log Message:
Whitelist now searches subgroups too

Index: AdbBook.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/adb/AdbBook.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -b -u -2 -r1.8 -r1.9
--- AdbBook.h   15 Feb 2002 21:29:10 -0000      1.8
+++ AdbBook.h   16 Oct 2003 15:56:00 -0000      1.9
@@ -31,5 +31,5 @@
 */
 
-class AdbBook : public AdbEntryGroup
+class AdbBook : public AdbEntryGroupCommon
 {
 public:

Index: AdbEntry.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/adb/AdbEntry.h,v
retrieving revision 1.28
retrieving revision 1.29
diff -b -u -2 -r1.28 -r1.29
--- AdbEntry.h  16 Oct 2003 10:29:23 -0000      1.28
+++ AdbEntry.h  16 Oct 2003 15:56:00 -0000      1.29
@@ -228,7 +228,17 @@
   virtual AdbEntry *FindEntry(const wxChar *szName) = 0;
 
+    /// apply Matches to each entry and recursively, return union of flags
+  virtual int Matches(const wxChar *str, int where, int how) = 0;
+
   // misc
     /// description of a group is just its name
   virtual String GetDescription() const { return GetName(); }
+};
+
+class AdbEntryGroupCommon : public AdbEntryGroup
+{
+public:
+   /// Brute force implementation that really iterates all entries
+  virtual int Matches(const wxChar *str, int where, int how);
 };
 

Index: ProvPalm.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/adb/ProvPalm.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -b -u -2 -r1.11 -r1.12
--- ProvPalm.h  16 Oct 2003 10:29:23 -0000      1.11
+++ ProvPalm.h  16 Oct 2003 15:56:00 -0000      1.12
@@ -75,5 +75,5 @@
 
 // our AdbEntryGroup implementation
-class PalmEntryGroup : public AdbEntryGroup
+class PalmEntryGroup : public AdbEntryGroupCommon
 {
 public:



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to