summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_proto.h
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2012-09-30 15:10:33 +0000
committerAlexander Lantsev <aunsane@gmail.com>2012-09-30 15:10:33 +0000
commit75fe175886ceca31d4cade1c067de7b0e1e30d87 (patch)
treea12a99e1fe56fe7ee321af925bc102b92382ba1d /protocols/Skype/src/skype_proto.h
parent5af310dabaed35bdb1d58a6f2eb393d1cece51ef (diff)
- conatcts funcs moved into skype_contacts.cpp
- added settings functions Set* - first approach to load contact list - start skype runtime on startup git-svn-id: http://svn.miranda-ng.org/main/trunk@1731 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_proto.h')
-rw-r--r--protocols/Skype/src/skype_proto.h31
1 files changed, 24 insertions, 7 deletions
diff --git a/protocols/Skype/src/skype_proto.h b/protocols/Skype/src/skype_proto.h
index a5597c4c4f..c5fbda84bf 100644
--- a/protocols/Skype/src/skype_proto.h
+++ b/protocols/Skype/src/skype_proto.h
@@ -87,7 +87,8 @@ protected:
void __cdecl SignIn(void*);
void __cdecl LoadContactList(void*);
- HANDLE AddToListBySkypeLogin(TCHAR* skypeName, TCHAR* nickName, TCHAR* firstName, TCHAR* lastName, DWORD flags);
+ HANDLE GetContactBySkypeLogin(const char* skypeLogin);
+ void SetAllContactStatuses(int status);
void CreateService(const char* szService, SkypeServiceFunc serviceProc);
@@ -102,12 +103,28 @@ protected:
void ForkThread(SkypeThreadFunc, void*);
HANDLE ForkThreadEx(SkypeThreadFunc, void*, UINT* threadID = NULL);
-
- TCHAR* GetSettingString(const char *szSetting, TCHAR* defVal = NULL);
- TCHAR* GetSettingString(HANDLE hContact, const char *szSetting, TCHAR* defVal = NULL);
-
- TCHAR* GetDecodeSettingString(const char *szSetting, TCHAR* defVal = NULL);
- TCHAR* GetDecodeSettingString(HANDLE hContact, const char *szSetting, TCHAR* defVal = NULL);
+ // database settings
+ BYTE GetSettingByte(const char *setting, BYTE errorValue = 0);
+ BYTE GetSettingByte(HANDLE hContact, const char *setting, BYTE errorValue = 0);
+ WORD GetSettingWord(const char *setting, WORD errorValue = 0);
+ 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);
+
+ bool SetSettingByte(const char *setting, BYTE value = 0);
+ bool SetSettingByte(HANDLE hContact, const char *setting, BYTE value = 0);
+ bool SetSettingWord(const char *setting, WORD value = 0);
+ 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);
static INT_PTR CALLBACK SkypeAccountProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam);