summaryrefslogtreecommitdiff
path: root/spamfilter/options.h
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2009-10-13 05:04:06 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2009-10-13 05:04:06 +0300
commit227022d9ed977c75196725502847e0b371e4e879 (patch)
tree6fe79f5ae836fe4a974db459553eb6b46a1bf8eb /spamfilter/options.h
parent23d6d3e482927c13294f204b34ce23c6f445e8ac (diff)
spamfilter branchHEADmaster
Diffstat (limited to 'spamfilter/options.h')
-rw-r--r--spamfilter/options.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/spamfilter/options.h b/spamfilter/options.h
new file mode 100644
index 0000000..b5b0380
--- /dev/null
+++ b/spamfilter/options.h
@@ -0,0 +1,60 @@
+/*
+
+"Spam Filter"-Plugin for Miranda IM
+
+Copyright 2003-2006 Heiko Herkenrath
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation; either version 2
+of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program ("SpamFilter-License.txt"); if not, write to the Free Software
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+*/
+
+#ifndef SF_OPTIONS_H__
+#define SF_OPTIONS_H__ 1
+
+// -- Defines: Self-defined dialog messages
+#define SFM_REBUILD_MSGTYPES (WM_APP+111) // wParam=lParam=0
+#define SFM_VALIDATE_LOGFILENAME (WM_APP+112) // wParam=lParam=0
+#define SFM_CHECK_AUTOIGNORE (WM_APP+113) // wParam=lParam=0
+#define SFM_RELOAD_DEFAULTBADWORDS (WM_APP+114) // wParam=lParam=0
+#define SFM_REFRESH_SPAMDEFINITIONS (WM_APP+115) // wParam=bForceRefresh; lParam=0 or lParam=dwFilterType
+#define SFM_REFRESH_SPAMMERS (WM_APP+116) // wParam=lParam=0
+
+// -- Protoypes
+BOOL CALLBACK DlgProcSpamFilterOpt(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
+BOOL CALLBACK DlgProcConfigureAdvertismentFilter(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
+BOOL CALLBACK DlgProcConfigureDislikedMessagesFilter(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
+BOOL CALLBACK DlgProcConfigureRobotFilter(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
+
+BOOL CALLBACK DlgProcSpamDefinitionsInfo(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
+BOOL CALLBACK DlgProcSpammersInfo(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
+
+static int OptionsInitialise(WPARAM wParam, LPARAM lParam);
+static int DbSettingChanged(WPARAM wParam, LPARAM lParam);
+
+LRESULT CALLBACK WordsListBoxSubclassProc(HWND hwndList, UINT uMsg, WPARAM wParam, LPARAM lParam);
+BOOL CALLBACK DlgProcWordsListBoxAddItem(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
+void WordsListBoxInit(HWND hwndDlg, int iIDListBox, int iIDAddButton, int iIDDeleteButton, STRINGLIST* pslContents, const char* pszAddTooltip, const char* pszDeleteTooltip);
+BOOL WordsListBoxDragDrop(HWND hwndDlg, int iIDListBox, UINT uMsg, LPARAM lParam, BOOL bAllowCopy);
+BOOL WordsListBoxAddItem(HWND hwndDlg, int iIDListbox, STRINGLIST* pslOtherContents, const WCHAR* pszMsgTitle, const WCHAR* pszMsgTextInList, const WCHAR* pszMsgTextInOther, int iIDButtonDelete);
+int WordsListBoxDeleteItem(HWND hwndDlg, int iIDListBox, int iIDButtonDelete);
+
+BOOL ToggleTreeViewItemState(HWND hwndTreeView, HTREEITEM hItem) ;
+MESSAGETYPEDESC* GetDataFromTreeViewItem(HWND hwndTreeView, HTREEITEM hTreeItem);
+
+BOOL MakeVariablesHelpButton(HWND hwndDlg, int iIDButton);
+
+void InitOptions(void);
+void UninitOptions(void);
+
+#endif // SF_OPTIONS_H__