diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2012-10-06 09:54:57 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2012-10-06 09:54:57 +0000 |
commit | 15dafd06973f1a3a49faeeb7b781bd11f9e011a5 (patch) | |
tree | 751ec084f31c5198fa2453bcad9bce2499ff6b55 /protocols/Skype/src/skype_proto.h | |
parent | e8fa894df94628c991f19a7c1642bac68fa069b1 (diff) |
- added part of contact info loading
git-svn-id: http://svn.miranda-ng.org/main/trunk@1790 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_proto.h')
-rw-r--r-- | protocols/Skype/src/skype_proto.h | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/protocols/Skype/src/skype_proto.h b/protocols/Skype/src/skype_proto.h index 2b1384c9ba..3db7cd5bfa 100644 --- a/protocols/Skype/src/skype_proto.h +++ b/protocols/Skype/src/skype_proto.h @@ -71,6 +71,10 @@ public: virtual int __cdecl OnEvent( PROTOEVENTTYPE eventType, WPARAM wParam, LPARAM lParam );
+ // utils
+ static int countriesCount;
+ static CountryListEntry* countryList;
+
// events
int __cdecl OnModulesLoaded(WPARAM, LPARAM);
int __cdecl OnPreShutdown(WPARAM, LPARAM);
@@ -105,6 +109,8 @@ protected: HANDLE signin_lock;
void __cdecl SignIn(void*);
+
+ void LoadContactInfo(HANDLE hContact, CContact::Ref contact);
void __cdecl LoadContactList(void*);
// contacts
@@ -117,6 +123,10 @@ protected: CContact::AVAILABILITY MirandaToSkypeStatus(int status);
void SetAllContactStatus(int status);
+ // utils
+ static char* GetCountryNameById(int countryId);
+ static int GetCountryIdByName(const char* countryName);
+
// instances
static LIST<CSkypeProto> instanceList;
static int CompareProtos(const CSkypeProto *p1, const CSkypeProto *p2);
@@ -162,16 +172,16 @@ protected: 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);
- 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, 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);
+ bool SetSettingByte(const char *setting, BYTE value);
+ bool SetSettingByte(HANDLE hContact, const char *setting, BYTE value);
+ bool SetSettingWord(const char *setting, WORD value);
+ bool SetSettingWord(HANDLE hContact, const char *setting, WORD value);
+ bool SetSettingDword(const char *setting, DWORD value);
+ bool SetSettingDword(HANDLE hContact, const char *setting, DWORD value);
+ bool SetSettingString(const char *setting, wchar_t* value);
+ bool SetSettingString(HANDLE hContact, const char *setting, wchar_t* value);
+ bool SetDecodeSettingString(const char *setting, wchar_t* value);
+ bool SetDecodeSettingString(HANDLE hContact, const char *setting, wchar_t* value);
// dialog procs
static INT_PTR CALLBACK SkypeAccountProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam);
|