From 347b63f23b40b403470d9636d691337cf8713e54 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Thu, 19 Mar 2015 22:01:53 +0000 Subject: SkypeWeb: - added own info reading - refactored contact info reading git-svn-id: http://svn.miranda-ng.org/main/trunk@12437 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_proto.h | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'protocols/SkypeWeb/src/skype_proto.h') diff --git a/protocols/SkypeWeb/src/skype_proto.h b/protocols/SkypeWeb/src/skype_proto.h index a94fa3ae6a..8e963de84e 100644 --- a/protocols/SkypeWeb/src/skype_proto.h +++ b/protocols/SkypeWeb/src/skype_proto.h @@ -118,6 +118,28 @@ private: void OnLoginSecond(const NETLIBHTTPREQUEST *response); + // profile + void UpdateProfileFirstName(JSONNODE *root, MCONTACT hContact = NULL); + void UpdateProfileLastName(JSONNODE *root, MCONTACT hContact = NULL); + void UpdateProfileDisplayName(JSONNODE *root, MCONTACT hContact = NULL); + void UpdateProfileGender(JSONNODE *root, MCONTACT hContact = NULL); + void UpdateProfileBirthday(JSONNODE *root, MCONTACT hContact = NULL); + void UpdateProfileCountry(JSONNODE *node, MCONTACT hContact = NULL); + void UpdateProfileState(JSONNODE *node, MCONTACT hContact = NULL); + void UpdateProfileCity(JSONNODE *node, MCONTACT hContact = NULL); + void UpdateProfileLanguage(JSONNODE *root, MCONTACT hContact = NULL); + void UpdateProfileHomepage(JSONNODE *root, MCONTACT hContact = NULL); + void UpdateProfileAbout(JSONNODE *node, MCONTACT hContact = NULL); + void UpdateProfileEmails(JSONNODE *root, MCONTACT hContact = NULL); + void UpdateProfilePhoneMobile(JSONNODE *root, MCONTACT hContact = NULL); + void UpdateProfilePhoneHome(JSONNODE *root, MCONTACT hContact = NULL); + void UpdateProfilePhoneOffice(JSONNODE *root, MCONTACT hContact = NULL); + void UpdateProfileStatusMessage(JSONNODE *root, MCONTACT hContact = NULL); + void UpdateProfileXStatusMessage(JSONNODE *root, MCONTACT hContact = NULL); + void UpdateProfileAvatar(JSONNODE *root, MCONTACT hContact = NULL); + + void LoadProfile(const NETLIBHTTPREQUEST *response); + // contacts WORD GetContactStatus(MCONTACT hContact); void SetContactStatus(MCONTACT hContact, WORD status); @@ -129,8 +151,8 @@ private: MCONTACT GetContactFromAuthEvent(MEVENT hEvent); - void LoadProfiles(const NETLIBHTTPREQUEST *response); - void LoadContacts(const NETLIBHTTPREQUEST *response); + void LoadContactsInfo(const NETLIBHTTPREQUEST *response); + void LoadContactList(const NETLIBHTTPREQUEST *response); INT_PTR __cdecl OnRequestAuth(WPARAM hContact, LPARAM lParam); INT_PTR __cdecl OnGrantAuth(WPARAM hContact, LPARAM); -- cgit v1.2.3