diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2012-10-02 17:48:44 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2012-10-02 17:48:44 +0000 |
commit | a5ea1613d623ad8d7027ddd402632a842ba5f0af (patch) | |
tree | 5b859ebf9309fa8763bc52cca41cb9db52ae832f /protocols/Skype/src/skype_proto.h | |
parent | efea4456e19eb42826af55c9ff327c25291cad3c (diff) |
git-svn-id: http://svn.miranda-ng.org/main/trunk@1764 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_proto.h')
-rw-r--r-- | protocols/Skype/src/skype_proto.h | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/protocols/Skype/src/skype_proto.h b/protocols/Skype/src/skype_proto.h index bb3a0bcebb..d9f2a4b634 100644 --- a/protocols/Skype/src/skype_proto.h +++ b/protocols/Skype/src/skype_proto.h @@ -84,8 +84,14 @@ protected: void __cdecl SignIn(void*);
void __cdecl LoadContactList(void*);
+ // contacts
void OnContactChanged(CContact* contact, int prop);
- HANDLE GetContactBySkypeLogin(const char* skypeLogin);
+
+ bool IsSkypeContact(HANDLE hContact);
+ HANDLE AddContactBySkypeName(wchar_t* skypeName, wchar_t* displayName, DWORD flags);
+ HANDLE GetContactBySkypeName(wchar_t* skypeName);
+ int SkypeToMirandaStatus(CContact::AVAILABILITY availability);
+ CContact::AVAILABILITY MirandaToSkypeStatus(int status);
void SetAllContactStatuses(int status);
// utils
@@ -114,10 +120,10 @@ protected: WORD GetSettingWord(HANDLE hContact, const char *setting, WORD errorValue = 0);
DWORD GetSettingDword(const char *setting, DWORD defVal = 0);
DWORD GetSettingDword(HANDLE hContact, const char *setting, DWORD errorValue = 0);
- TCHAR* GetSettingString(const char *setting, TCHAR* errorValue = NULL);
- TCHAR* GetSettingString(HANDLE hContact, const char *setting, TCHAR* errorValue = NULL);
- TCHAR* GetDecodeSettingString(const char *setting, TCHAR* errorValue = NULL);
- TCHAR* GetDecodeSettingString(HANDLE hContact, const char *setting, TCHAR* errorValue = NULL);
+ wchar_t* GetSettingString(const char *setting, wchar_t* errorValue = NULL);
+ wchar_t* GetSettingString(HANDLE hContact, const char *setting, wchar_t* errorValue = NULL);
+ wchar_t* GetDecodeSettingString(const char *setting, wchar_t* errorValue = NULL);
+ wchar_t* GetDecodeSettingString(HANDLE hContact, const char *setting, wchar_t* errorValue = NULL);
bool SetSettingByte(const char *setting, BYTE value = 0);
bool SetSettingByte(HANDLE hContact, const char *setting, BYTE value = 0);
@@ -125,10 +131,10 @@ protected: bool SetSettingWord(HANDLE hContact, const char *setting, WORD value = 0);
bool SetSettingDword(const char *setting, DWORD value = 0);
bool SetSettingDword(HANDLE hContact, const char *setting, DWORD value = 0);
- bool SetSettingString(const char *setting, TCHAR* value = NULL);
- bool SetSettingString(HANDLE hContact, const char *setting, TCHAR* value = NULL);
- bool SetDecodeSettingString(const char *setting, TCHAR* value = NULL);
- bool SetDecodeSettingString(HANDLE hContact, const char *setting, TCHAR* value = NULL);
+ bool SetSettingString(const char *setting, wchar_t* value = NULL);
+ bool SetSettingString(HANDLE hContact, const char *setting, wchar_t* value = NULL);
+ bool SetDecodeSettingString(const char *setting, wchar_t* value = NULL);
+ bool SetDecodeSettingString(HANDLE hContact, const char *setting, wchar_t* value = NULL);
// dialog procs
static INT_PTR CALLBACK SkypeAccountProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam);
|