summaryrefslogtreecommitdiff
path: root/plugins/StopSpamMod/src/utilities.h
blob: 62a3ef57507195344367bd657d19166c31e6b96f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
tstring DBGetContactSettingStringPAN(HANDLE hContact, char const * szModule, char const * szSetting, tstring errorValue);
std::string DBGetContactSettingStringPAN_A(HANDLE hContact, char const * szModule, char const * szSetting, std::string errorValue);
tstring &GetDlgItemString(HWND hwnd, int id);
std::string &GetProtoList();
bool ProtoInList(std::string proto);
void RemoveExcludedUsers();
tstring variables_parse(tstring const &tstrFormat, HANDLE hContact);
const int Stricmp(const TCHAR *str, const TCHAR *substr);
//const int Stristr(const TCHAR *str, const TCHAR *substr);
TCHAR* ReqGetText(DBEVENTINFO* dbei);
BOOL IsUrlContains(TCHAR * Str);
void DeleteCListGroupsByName(TCHAR* szGroupName);
tstring GetContactUid(HANDLE hContact, std::string Protocol);
void LogSpamToFile(HANDLE hContact, tstring message);
std::string toUTF8(std::wstring str);
std::string toUTF8(std::string str);
std::wstring toUTF16(std::string str);
void HistoryLogFunc(HANDLE hContact, std::string message);
std::string get_random_num(int length);