diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2009-10-13 05:04:06 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2009-10-13 05:04:06 +0300 |
commit | 227022d9ed977c75196725502847e0b371e4e879 (patch) | |
tree | 6fe79f5ae836fe4a974db459553eb6b46a1bf8eb /spamfilter/spamdefinitions.h | |
parent | 23d6d3e482927c13294f204b34ce23c6f445e8ac (diff) |
Diffstat (limited to 'spamfilter/spamdefinitions.h')
-rw-r--r-- | spamfilter/spamdefinitions.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/spamfilter/spamdefinitions.h b/spamfilter/spamdefinitions.h new file mode 100644 index 0000000..00b2bb0 --- /dev/null +++ b/spamfilter/spamdefinitions.h @@ -0,0 +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__
|