/* "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__