Update of /cvsroot/mahogany/M/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8377/include
Modified Files:
SpamFilter.h
Log Message:
added interface for showing spam filters options dialog
Index: SpamFilter.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/SpamFilter.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -b -u -2 -r1.4 -r1.5
--- SpamFilter.h 10 Jul 2004 22:58:10 -0000 1.4
+++ SpamFilter.h 11 Jul 2004 19:04:34 -0000 1.5
@@ -24,5 +24,11 @@
#include "MModule.h"
+#include "gui/listbook.h"
+
class Message;
+class wxOptionsPage;
+
+class WXDLLEXPORT wxFrame;
+
/*
@@ -102,4 +108,11 @@
/**
+ Show a GUI dialog allowing the user to configure all spam filters.
+
+ @param parent the parent frame for the dialog
+ */
+ static void Configure(wxFrame *parent);
+
+ /**
Unload all loaded spam filters.
@@ -111,4 +124,14 @@
static void UnloadAll();
+
+#if 0
+ /// Get the head of the linked list of the loaded filters
+ static SpamFilter *GetFirst() { return ms_first; }
+
+ /// Get the next filter in the list or NULL
+ SpamFilter *GetNext() const { return m_next; }
+#endif
+
+
protected:
/**
@@ -118,4 +141,9 @@
/**
+ Virtual dtor for the base class.
+ */
+ virtual ~SpamFilter() { }
+
+ /**
Loads all available spam filters.
@@ -165,4 +193,27 @@
/**
+ Return the name of the icon used by the option page.
+
+ This is rather ugly but unfortunately we need to have all the icons names
+ first (to initialize the notebook image list) and we need a notebook in
+ CreateOptionPage() so we can't combine these 2 functions into 1.
+
+ @return the name of the icon to use or NULL
+ */
+ virtual const wxChar *GetOptionPageIconName() const { return NULL; }
+
+ /**
+ Return a pointer to the option page used for editing this spam filter
+ options.
+
+ @param notebook the parent for the page
+ @return pointer to the page (which will be deleted by the caller) ot NULL
+ */
+ virtual wxOptionsPage *CreateOptionPage(wxListOrNoteBook *notebook) const
+ {
+ return NULL;
+ }
+
+ /**
Return the internal name of this spam filter.
@@ -198,4 +249,6 @@
// the next filter in the linked list or NULL
SpamFilter *m_next;
+
+ friend class SpamOptionsDialog;
};
-------------------------------------------------------
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