diff options
author | Kirill Volinsky <Mataes2007@gmail.com> | 2017-11-29 09:33:41 +0300 |
---|---|---|
committer | Kirill Volinsky <Mataes2007@gmail.com> | 2017-11-29 09:33:41 +0300 |
commit | 89f3cf8bbb9dc1fa0fe72f6af6638ac086c7e011 (patch) | |
tree | 5be9a7ae2255b9ad420bed266b90b1f98059964a /protocols/WhatsApp/src/utils.h | |
parent | e28c4adb361a87e143eb8cb2af449e3bcb3375b1 (diff) |
libevent, telegram, whatsapp moved to deprecated coz doesn't work
Diffstat (limited to 'protocols/WhatsApp/src/utils.h')
-rw-r--r-- | protocols/WhatsApp/src/utils.h | 52 |
1 files changed, 0 insertions, 52 deletions
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<std::string> split(const std::string &s, char delim);
-std::vector<std::string> &split(const std::string &s, char delim, std::vector<std::string> &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 |