1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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__
|