diff options
author | Gluzskiy Alexandr <sss123next@gmail.com> | 2010-02-15 05:51:01 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@gmail.com> | 2010-02-15 05:51:01 +0300 |
commit | 7fd9fe181150f166a098eaf4e006f878c28cb770 (patch) | |
tree | 093af9d26a08e6bac60112a9c5f2f870ddef0fe8 /spamdefinitions.h | |
parent | 6f32ef233b95d78efb905c97081193a2a454590e (diff) |
sort
Diffstat (limited to 'spamdefinitions.h')
-rw-r--r-- | spamdefinitions.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/spamdefinitions.h b/spamdefinitions.h new file mode 100644 index 0000000..00b2bb0 --- /dev/null +++ b/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__
|