From 89f3cf8bbb9dc1fa0fe72f6af6638ac086c7e011 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Wed, 29 Nov 2017 09:33:41 +0300 Subject: libevent, telegram, whatsapp moved to deprecated coz doesn't work --- protocols/WhatsApp/src/utils.h | 52 ------------------------------------------ 1 file changed, 52 deletions(-) delete mode 100644 protocols/WhatsApp/src/utils.h (limited to 'protocols/WhatsApp/src/utils.h') diff --git a/protocols/WhatsApp/src/utils.h b/protocols/WhatsApp/src/utils.h deleted file mode 100644 index eddd9fab45..0000000000 --- a/protocols/WhatsApp/src/utils.h +++ /dev/null @@ -1,52 +0,0 @@ -#if !defined(WHATS_NG_UTILS_H) -#define WHATS_NG_UTILS_H - -#include "WhatsAPI++/IMutex.h" - -class Mutex : public IMutex -{ - mir_cs m_cs; - -public: - Mutex() {} - virtual ~Mutex() {} - - virtual void lock() - { - CRITICAL_SECTION &cs = m_cs; - ::EnterCriticalSection(&cs); - } - - virtual void unlock() - { - CRITICAL_SECTION &cs = m_cs; - ::LeaveCriticalSection(&cs); - } -}; - - -std::string getLastErrorMsg(); - -__forceinline wchar_t* str2t(const std::string &str) -{ return mir_utf8decodeW(str.c_str()); -} - -std::vector split(const std::string &s, char delim); -std::vector &split(const std::string &s, char delim, std::vector &elems); - -namespace utils -{ - wchar_t* removeA(wchar_t *str); - void copyText(HWND hwnd, const wchar_t *text); - - void setStatusMessage(MCONTACT hContact, const wchar_t *ptszMessage); - - BYTE* md5string(const BYTE*, int, BYTE* digest); - __forceinline BYTE* md5string(const std::string &str, BYTE* digest) - { - return md5string((BYTE*)str.data(), (int)str.length(), digest); - } -}; - - -#endif \ No newline at end of file -- cgit v1.2.3