diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-03-25 02:57:00 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-03-25 02:58:21 +0300 |
commit | 85e3a5bdcee0721d9021359be42adfb778a776a3 (patch) | |
tree | aa61a75623e62148f838c839d0429e83f8b5eb25 /protocols/JabberG/src | |
parent | 283ccde97a6728200e528e7cae228ba2edf0a59b (diff) |
protocols: jabber: started implementation of xep-0198
Diffstat (limited to 'protocols/JabberG/src')
-rwxr-xr-x | protocols/JabberG/src/jabber_opt.cpp | 1 | ||||
-rwxr-xr-x | protocols/JabberG/src/jabber_proto.cpp | 3 | ||||
-rwxr-xr-x | protocols/JabberG/src/jabber_proto.h | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/protocols/JabberG/src/jabber_opt.cpp b/protocols/JabberG/src/jabber_opt.cpp index 703ba1eb43..a60760fdce 100755 --- a/protocols/JabberG/src/jabber_opt.cpp +++ b/protocols/JabberG/src/jabber_opt.cpp @@ -795,6 +795,7 @@ public: m_otvOptions.AddOption(LPGENW("Messaging") L"/" LPGENW("Automatically save received notes"), m_proto->m_bAutosaveNotes);
m_otvOptions.AddOption(LPGENW("Messaging") L"/" LPGENW("Enable server-side history (XEP-0136)"), m_proto->m_bEnableMsgArchive);
m_otvOptions.AddOption(LPGENW("Messaging") L"/" LPGENW("Receive conversations from other devices (XEP-0280)"), m_proto->m_bEnableCarbons);
+ m_otvOptions.AddOption(LPGENW("Messaging") L"/" LPGENW("Use Stream Management (XEP-0198) if possible (PLACEHOLDER OPTION)"), m_proto->m_bEnableStreamMgmt);
m_otvOptions.AddOption(LPGENW("Server options") L"/" LPGENW("Disable SASL authentication (for old servers)"), m_proto->m_bDisable3920auth);
m_otvOptions.AddOption(LPGENW("Server options") L"/" LPGENW("Enable stream compression (if possible)"), m_proto->m_bEnableZlib);
diff --git a/protocols/JabberG/src/jabber_proto.cpp b/protocols/JabberG/src/jabber_proto.cpp index 5c45e3b912..ceb5fbf44f 100755 --- a/protocols/JabberG/src/jabber_proto.cpp +++ b/protocols/JabberG/src/jabber_proto.cpp @@ -127,7 +127,8 @@ CJabberProto::CJabberProto(const char *aProtoName, const wchar_t *aUserName) : m_bProcessXMPPLinks(this, "ProcessXMPPLinks", FALSE),
m_bIgnoreRosterGroups(this, "IgnoreRosterGroups", FALSE),
m_bEnableCarbons(this, "EnableCarbons", TRUE),
- m_bUseOMEMO(this, "UseOMEMO", FALSE)
+ m_bUseOMEMO(this, "UseOMEMO", FALSE),
+ m_bEnableStreamMgmt(this, "UseStreamMgmt", FALSE) //TODO: this should be true once implemented
{
m_szXmlStreamToBeInitialized = nullptr;
diff --git a/protocols/JabberG/src/jabber_proto.h b/protocols/JabberG/src/jabber_proto.h index 1601bfed14..27232f3fc0 100755 --- a/protocols/JabberG/src/jabber_proto.h +++ b/protocols/JabberG/src/jabber_proto.h @@ -192,6 +192,7 @@ struct CJabberProto : public PROTO<CJabberProto>, public IJabberInterface CMOption<BYTE> m_bIgnoreRosterGroups;
CMOption<BYTE> m_bEnableCarbons;
CMOption<BYTE> m_bUseOMEMO;
+ CMOption<BYTE> m_bEnableStreamMgmt;
CMOption<DWORD> m_iConnectionKeepAliveInterval;
CMOption<DWORD> m_iConnectionKeepAliveTimeout;
|