summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_caps.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-08-10 22:55:51 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-08-10 22:55:51 +0300
commit67632f24c08ee19cc80bf08bb4bcd387d3e6b042 (patch)
treeef41d3468b5275b97039247e97c5221bfd060150 /protocols/JabberG/src/jabber_caps.h
parent84432de6088e2f929585ba425c0e02b728969f0e (diff)
Jabber:
- fix for partially supported XEP-0115; - unused methods removed
Diffstat (limited to 'protocols/JabberG/src/jabber_caps.h')
-rwxr-xr-xprotocols/JabberG/src/jabber_caps.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/protocols/JabberG/src/jabber_caps.h b/protocols/JabberG/src/jabber_caps.h
index eaf9875891..70f1ff188c 100755
--- a/protocols/JabberG/src/jabber_caps.h
+++ b/protocols/JabberG/src/jabber_caps.h
@@ -240,6 +240,11 @@ public:
__inline const wchar_t* GetSoftMir() const { return m_szSoftMir.get(); }
__inline int GetIqId() const { return m_nIqId; }
+
+ __inline void SetVer(const wchar_t *szVer)
+ {
+ m_szSoft = mir_wstrdup(szVer);
+ }
};
class CJabberClientCaps
@@ -256,7 +261,6 @@ public:
JabberCapsBits GetPartialCaps(const wchar_t *szVer);
CJabberClientPartialCaps* SetPartialCaps(const wchar_t *szHash, const wchar_t *szVer, JabberCapsBits jcbCaps, int nIqId = -1);
- CJabberClientPartialCaps* SetPartialCaps(int nIqId, JabberCapsBits jcbCaps);
__inline wchar_t* GetNode() const { return m_szNode; }
};
@@ -286,8 +290,6 @@ public:
CJabberClientPartialCaps* GetPartialCaps(const wchar_t *szNode, const wchar_t *szHash);
CJabberClientPartialCaps* SetClientCaps(const wchar_t *szNode, const wchar_t *szHash, const wchar_t *szVer, JabberCapsBits jcbCaps, int nIqId = -1);
- CJabberClientPartialCaps* SetClientCaps(int nIqId, JabberCapsBits jcbCaps);
-
__inline CJabberClientPartialCaps* SetOwnCaps(const wchar_t *szNode, const wchar_t *szVer, JabberCapsBits jcbCaps, int nIqId = -1)
{
return SetClientCaps(szNode, m_szFeaturesCrc, szVer, jcbCaps, nIqId);