From 85e3a5bdcee0721d9021359be42adfb778a776a3 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sun, 25 Mar 2018 02:57:00 +0300 Subject: protocols: jabber: started implementation of xep-0198 --- protocols/JabberG/src/jabber_opt.cpp | 1 + protocols/JabberG/src/jabber_proto.cpp | 3 ++- protocols/JabberG/src/jabber_proto.h | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) (limited to 'protocols/JabberG/src') 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, public IJabberInterface CMOption m_bIgnoreRosterGroups; CMOption m_bEnableCarbons; CMOption m_bUseOMEMO; + CMOption m_bEnableStreamMgmt; CMOption m_iConnectionKeepAliveInterval; CMOption m_iConnectionKeepAliveTimeout; -- cgit v1.2.3