Update of /cvsroot/mahogany/M/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31699/include

Modified Files:
        SpamFilter.h 
Log Message:
added code to configure isspam() filter function argument

Index: SpamFilter.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/SpamFilter.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -b -u -2 -r1.6 -r1.7
--- SpamFilter.h        11 Jul 2004 22:52:21 -0000      1.6
+++ SpamFilter.h        12 Jul 2004 00:33:37 -0000      1.7
@@ -27,5 +27,5 @@
 
 class Message;
-class wxOptionsPage;
+class SpamOptionsPage;
 
 class WXDLLEXPORT wxFrame;
@@ -116,7 +116,15 @@
       Show a GUI dialog allowing the user to configure all spam filters.
 
+      This function is a hack because it is used in two cases:
+         - to access the global filter dialog in which case params == NULL
+           and the options are read from and written to profile
+         - to configure a given spam rule (i.e. is_spam() filter function
+           call) in which case the options are contained and returned in params
+
       @param parent the parent frame for the dialog
+      @param params in/out parameters describing the filters options
+      @return true if something was changed, false otherwise
     */
-   static void Configure(wxFrame *parent);
+   static bool Configure(wxFrame *parent, String *params = NULL);
 
    /**
@@ -149,5 +157,5 @@
       Virtual dtor for the base class.
     */
-   virtual ~SpamFilter() { }
+   virtual ~SpamFilter();
 
    /**
@@ -214,10 +222,12 @@
 
       @param notebook the parent for the page
+      @param profile the profile to use for the page settings (no need to
+                     Inc/DecRef() it)
+      @param param is the argument passed to Configure()
       @return pointer to the page (which will be deleted by the caller) ot NULL
     */
-   virtual wxOptionsPage *CreateOptionPage(wxListOrNoteBook *notebook) const
-   {
-      return NULL;
-   }
+   virtual SpamOptionsPage *CreateOptionPage(wxListOrNoteBook *notebook,
+                                             Profile *profile,
+                                             String *params) const;
 
    /**



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to