summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_caps.h
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2017-04-02 16:16:36 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2017-04-02 16:21:26 +0300
commitd353887c8cde702539d8d0f3d339c158498648ed (patch)
tree9ae3d71ee095da94637d57f77b4c396749dd2ebe /protocols/JabberG/src/jabber_caps.h
parent85f860270ed1c622e3e15ee49e741512305a5fe2 (diff)
jabber: omemo: working on 4.3
proper dynamic caps implementation for omemo caps/features and for miranda caps/features in general as required by xep-0115 removed my old attempt to implement dynamic omemo cap fixed few bugs in OmemoHandleDeviceList
Diffstat (limited to 'protocols/JabberG/src/jabber_caps.h')
-rwxr-xr-xprotocols/JabberG/src/jabber_caps.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/JabberG/src/jabber_caps.h b/protocols/JabberG/src/jabber_caps.h
index 097108c608..16805680b5 100755
--- a/protocols/JabberG/src/jabber_caps.h
+++ b/protocols/JabberG/src/jabber_caps.h
@@ -167,7 +167,7 @@ typedef unsigned __int64 JabberCapsBits;
JABBER_CAPS_ROSTER_EXCHANGE | JABBER_CAPS_DIRECT_MUC_INVITE)
#define JABBER_CAPS_MIRANDA_ALL (JABBER_CAPS_MIRANDA_PARTIAL | JABBER_CAPS_COMMANDS | \
- JABBER_CAPS_USER_MOOD_NOTIFY | JABBER_CAPS_USER_TUNE_NOTIFY | JABBER_CAPS_USER_ACTIVITY_NOTIFY | JABBER_CAPS_OMEMO_DEVICELIST_NOTIFY \
+ JABBER_CAPS_USER_MOOD_NOTIFY | JABBER_CAPS_USER_TUNE_NOTIFY | JABBER_CAPS_USER_ACTIVITY_NOTIFY \
| JABBER_CAPS_PLATFORMX86 | JABBER_CAPS_PLATFORMX64)
@@ -175,6 +175,7 @@ typedef unsigned __int64 JabberCapsBits;
#define JABBER_EXT_MIROTR L"mirotr"
#define JABBER_EXT_JINGLE L"jingle"
#define JABBER_EXT_NEWGPG L"new_gpg"
+#define JABBER_EXT_OMEMO L"omemo"
#define JABBER_EXT_NUDGE L"nudge"
#define JABBER_EXT_COMMANDS L"cmds"
#define JABBER_EXT_USER_MOOD L"mood"
@@ -276,6 +277,7 @@ protected:
mir_cs m_cs;
CJabberClientCaps *m_pClients;
CJabberProto *ppro;
+ wchar_t *m_szFeaturesCrc;
protected:
CJabberClientCaps *FindClient(const wchar_t *szNode);
@@ -285,6 +287,8 @@ public:
~CJabberClientCapsManager();
void AddDefaultCaps();
+ const wchar_t* GetFeaturesCrc();
+ void UpdateFeatHash();
JabberCapsBits GetClientCaps(wchar_t *szNode, wchar_t *szVer);
BOOL SetClientCaps(const wchar_t *szNode, const wchar_t *szVer, JabberCapsBits jcbCaps, int nIqId = -1);