diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-04-05 19:30:17 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-04-05 19:30:17 +0300 |
commit | d7730685516d6ed6fc278a6ea74f7a5cf12e0042 (patch) | |
tree | 41a381fbe4051ed4b9041f5596913b6c174cf9be /spamdefinitions.h | |
parent | 7fd9fe181150f166a098eaf4e006f878c28cb770 (diff) |
dos2unixspamfilter
Diffstat (limited to 'spamdefinitions.h')
-rw-r--r-- | spamdefinitions.h | 118 |
1 files changed, 59 insertions, 59 deletions
diff --git a/spamdefinitions.h b/spamdefinitions.h index 00b2bb0..a030bad 100644 --- a/spamdefinitions.h +++ b/spamdefinitions.h @@ -1,59 +1,59 @@ -/*
-
-"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_SPAMDEFINITIONS_H__
-#define SF_SPAMDEFINITIONS_H__ 1
-
-
-// -- Defines
-#define SDID_CUSTOM_BADWORDS 0
-#define SDID_CUSTOM_GOODWORDS 1
-#define SDID_CUSTOM_DISLIKEDWORDS 2
-#define SDID_BADWORDS 3
-#define SDID_HOAXTEXTS 4
-#define SDID_TEASERTEXTS 5
-#define SDID_URLTLDS 6
-#define SDID_PHONENUMBERS 7
-#define SDID_SPECIALCHARS_REPLACE_TEXT 8
-#define SDID_SPECIALCHARS_REPLACE_NUMBERS 9
-#define SDID_SPECIALCHARS_SEPARATORS 10
-#define SDID_SPAMMERS 11
-
-#define SDID_CUSTOMMAX 2
-#define SDID_MAX 11
-
-
-// -- Callbacks
-typedef BOOL (CALLBACK* SPAMDEFINITIONS_ENUMPROC)(UINT uSpamDefID, WCHAR* pszFilePath, WCHAR* pszName, SYSTEMTIME* pstDate, WPARAM wParam, LPARAM lParam);
-
-// -- Prototypes
-BOOL GetSpamDefinitionData(STRINGLIST* psl, UINT uSpamDefID);
-BOOL SetSpamDefinitionData(STRINGLIST* psl, UINT uSpamDefID, HWND hwndDlg);
-
-BOOL IsSpamDefinitionDataPresent(UINT uSpamDefID);
-BOOL EnumSpamDefinitions(UINT uSpamDefID, BOOL AtLeastOneTime, SPAMDEFINITIONS_ENUMPROC psdenump, WPARAM wParam, LPARAM lParam);
-
-void ToggleSpamDefinitionsCache(BOOL bEnable);
-
-void InitSpamDefinitions(void);
-void UninitSpamDefinitions(void);
-
-#endif // SF_SPAMDEFINITIONS_H__
+/* + +"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_SPAMDEFINITIONS_H__ +#define SF_SPAMDEFINITIONS_H__ 1 + + +// -- Defines +#define SDID_CUSTOM_BADWORDS 0 +#define SDID_CUSTOM_GOODWORDS 1 +#define SDID_CUSTOM_DISLIKEDWORDS 2 +#define SDID_BADWORDS 3 +#define SDID_HOAXTEXTS 4 +#define SDID_TEASERTEXTS 5 +#define SDID_URLTLDS 6 +#define SDID_PHONENUMBERS 7 +#define SDID_SPECIALCHARS_REPLACE_TEXT 8 +#define SDID_SPECIALCHARS_REPLACE_NUMBERS 9 +#define SDID_SPECIALCHARS_SEPARATORS 10 +#define SDID_SPAMMERS 11 + +#define SDID_CUSTOMMAX 2 +#define SDID_MAX 11 + + +// -- Callbacks +typedef BOOL (CALLBACK* SPAMDEFINITIONS_ENUMPROC)(UINT uSpamDefID, WCHAR* pszFilePath, WCHAR* pszName, SYSTEMTIME* pstDate, WPARAM wParam, LPARAM lParam); + +// -- Prototypes +BOOL GetSpamDefinitionData(STRINGLIST* psl, UINT uSpamDefID); +BOOL SetSpamDefinitionData(STRINGLIST* psl, UINT uSpamDefID, HWND hwndDlg); + +BOOL IsSpamDefinitionDataPresent(UINT uSpamDefID); +BOOL EnumSpamDefinitions(UINT uSpamDefID, BOOL AtLeastOneTime, SPAMDEFINITIONS_ENUMPROC psdenump, WPARAM wParam, LPARAM lParam); + +void ToggleSpamDefinitionsCache(BOOL bEnable); + +void InitSpamDefinitions(void); +void UninitSpamDefinitions(void); + +#endif // SF_SPAMDEFINITIONS_H__ |