summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_proto.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-07 12:31:01 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-07 12:31:01 +0000
commitfc4ca4545540ba1f35e4e7ad01646edf11199b4e (patch)
treef5725c89e6674b73bed183af7530350ad25ddf65 /protocols/VKontakte/src/vk_proto.h
parent2e1ccca56dcd321148ac0e233dc88e553a951d0b (diff)
ability to set the alternative VK domain
git-svn-id: http://svn.miranda-ng.org/main/trunk@7531 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.h')
-rw-r--r--protocols/VKontakte/src/vk_proto.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_proto.h b/protocols/VKontakte/src/vk_proto.h
index 7b488f15ae..dbb5d68100 100644
--- a/protocols/VKontakte/src/vk_proto.h
+++ b/protocols/VKontakte/src/vk_proto.h
@@ -135,6 +135,9 @@ struct CVkProto : public PROTO<CVkProto>
__forceinline LPCTSTR getGroup() const { return m_defaultGroup; }
__forceinline void setGroup(LPCTSTR grp) { m_defaultGroup = mir_tstrdup(grp); }
+ __forceinline LPCSTR getDomain() const { return m_baseDomain; }
+ __forceinline void setDomain(LPCSTR domain) { m_baseDomain = mir_strdup(domain); }
+
private:
LIST<AsyncHttpRequest> m_arRequestsQueue;
CRITICAL_SECTION m_csRequestsQueue;
@@ -189,7 +192,7 @@ private:
bool m_bOnline;
LONG m_myUserId;
- ptrA m_szAccessToken;
+ ptrA m_baseDomain, m_szAccessToken;
ptrT m_defaultGroup;
UINT_PTR m_timer;