diff options
author | George Hazan <george.hazan@gmail.com> | 2013-10-07 16:29:17 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-10-07 16:29:17 +0000 |
commit | 59de222d916876cc158d03909b661dd8b2cf6a3f (patch) | |
tree | 0eeffe666cfd2a5e151edacf26237cddab74d264 /protocols/VKontakte/src/vk_proto.h | |
parent | ae6d0b3c9f732c3770fc4bf00ba2e52012671108 (diff) |
- frient list & statuses;
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@6396 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.h')
-rw-r--r-- | protocols/VKontakte/src/vk_proto.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_proto.h b/protocols/VKontakte/src/vk_proto.h index c8ee1a21cb..71a9eecf1c 100644 --- a/protocols/VKontakte/src/vk_proto.h +++ b/protocols/VKontakte/src/vk_proto.h @@ -89,6 +89,12 @@ struct CVkProto : public PROTO<CVkProto> TCHAR* GetUserStoredPassword(void);
+ void RetrieveUserInfo(LPCSTR szUserId);
+ void OnReceiveUserInfo(NETLIBHTTPREQUEST*);
+
+ void RetrieveFriends();
+ void OnReceiveFriends(NETLIBHTTPREQUEST*);
+
__forceinline bool IsOnline() const { return m_bOnline; }
private:
@@ -113,7 +119,7 @@ private: void InitQueue();
void UninitQueue();
void ExecuteRequest(AsyncHttpRequest*);
- bool PushAsyncHttpRequest(int iRequestType, LPCSTR szUrl, bool bSecure, VK_REQUEST_HANDLER pFunc, int nParams = 0, NETLIBHTTPHEADER *pParams = 0, int iTimeout = 10000);
+ bool PushAsyncHttpRequest(int iRequestType, LPCSTR szUrl, bool bSecure, VK_REQUEST_HANDLER pFunc, int nParams = 0, HttpParam *pParams = 0, int iTimeout = 10000);
bool PushAsyncHttpRequest(AsyncHttpRequest*, int iTimeout = 10000);
int SetupConnection(void);
void __cdecl WorkerThread(void*);
@@ -125,6 +131,8 @@ private: void OnLoggedOut();
void ShutdownSession();
+ HANDLE FindUser(LPCSTR userid, bool bCreate = false);
+
void SetAllContactStatuses(int status);
int SetServerStatus(int);
@@ -132,5 +140,6 @@ private: HANDLE m_hNetlibUser, m_hNetlibConn;
HANDLE hAvatarFolder;
- ptrA m_szAccessToken;
+ ptrA m_szAccessToken, m_myUserId;
+ ptrT m_defaultGroup;
};
|