summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_proto.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-06-11 22:20:11 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-06-11 22:20:18 +0300
commit5fb805622a3a3368ffb3de0c649074376e70256a (patch)
tree64f0149c8e5d692cf19e5fcebb60b0fba59e3d93 /protocols/JabberG/src/jabber_proto.h
parente6bf9c2a41622424c2cd4006326455e08c80812a (diff)
fixes #1149 (XMPP/Jabber: Implement XEP-0313 ( mam / Message Archive Management )
Diffstat (limited to 'protocols/JabberG/src/jabber_proto.h')
-rwxr-xr-xprotocols/JabberG/src/jabber_proto.h44
1 files changed, 26 insertions, 18 deletions
diff --git a/protocols/JabberG/src/jabber_proto.h b/protocols/JabberG/src/jabber_proto.h
index 32fcd80d64..f6a292029e 100755
--- a/protocols/JabberG/src/jabber_proto.h
+++ b/protocols/JabberG/src/jabber_proto.h
@@ -224,6 +224,7 @@ struct CJabberProto : public PROTO<CJabberProto>, public IJabberInterface
CMOption<bool> m_bUseSSL;
CMOption<bool> m_bUseTLS;
+ CMOption<int> m_iMamMode;
CMOption<DWORD> m_iConnectionKeepAliveInterval;
CMOption<DWORD> m_iConnectionKeepAliveTimeout;
@@ -419,24 +420,6 @@ struct CJabberProto : public PROTO<CJabberProto>, public IJabberInterface
void AddMucListItem(JABBER_MUC_JIDLIST_INFO* jidListInfo, const char *str, const char *reason);
void DeleteMucListItem(JABBER_MUC_JIDLIST_INFO* jidListInfo, const char* jid);
- //---- jabber_omemo.cpp --------------------------------------------------------------
-
- bool OmemoHandleMessage(const TiXmlElement *node, const char *jid, time_t msgTime);
- void OmemoPutMessageToOutgoingQueue(MCONTACT hContact, int, const char* pszSrc);
- void OmemoPutMessageToIncommingQueue(const TiXmlElement *node, const char *jid, time_t msgTime);
- void OmemoHandleMessageQueue();
- void OmemoHandleDeviceList(const TiXmlElement *node);
- void OmemoInitDevice();
- void OmemoAnnounceDevice();
- void OmemoSendBundle();
- void OmemoPublishNodes();
- bool OmemoCheckSession(MCONTACT hContact);
- int OmemoEncryptMessage(XmlNode &msg, const char *msg_text, MCONTACT hContact);
- bool OmemoIsEnabled(MCONTACT hContact);
- void OmemoOnIqResultGetBundle(const TiXmlElement *iqNode, CJabberIqInfo *pInfo);
-
- omemo::omemo_impl m_omemo;
-
//---- jabber_console.cpp ------------------------------------------------------------
INT_PTR __cdecl OnMenuHandleConsole(WPARAM wParam, LPARAM lParam);
@@ -639,6 +622,13 @@ struct CJabberProto : public PROTO<CJabberProto>, public IJabberInterface
void SetBookmarkRequest(XmlNodeIq &iqId);
void UpdateItem(JABBER_LIST_ITEM *pItem, const char *name);
+ //---- jabber_mam.cpp ----------------------------------------------------------------
+
+ void OnIqResultMamInfo(const TiXmlElement *iqNode, CJabberIqInfo *pInfo);
+
+ void MamRetrieveMissingMessages(void);
+ void MamSetMode(int iNewMode);
+
//---- jabber_menu.cpp ---------------------------------------------------------------
INT_PTR __cdecl OnMenuHandleRequestAuth(WPARAM wParam, LPARAM lParam);
@@ -686,6 +676,24 @@ struct CJabberProto : public PROTO<CJabberProto>, public IJabberInterface
CMStringA ExtractImage(const TiXmlElement *node);
const char* GetSoftName(const char *wszName);
+ //---- jabber_omemo.cpp --------------------------------------------------------------
+
+ bool OmemoHandleMessage(const TiXmlElement *node, const char *jid, time_t msgTime);
+ void OmemoPutMessageToOutgoingQueue(MCONTACT hContact, int, const char *pszSrc);
+ void OmemoPutMessageToIncommingQueue(const TiXmlElement *node, const char *jid, time_t msgTime);
+ void OmemoHandleMessageQueue();
+ void OmemoHandleDeviceList(const TiXmlElement *node);
+ void OmemoInitDevice();
+ void OmemoAnnounceDevice();
+ void OmemoSendBundle();
+ void OmemoPublishNodes();
+ bool OmemoCheckSession(MCONTACT hContact);
+ int OmemoEncryptMessage(XmlNode &msg, const char *msg_text, MCONTACT hContact);
+ bool OmemoIsEnabled(MCONTACT hContact);
+ void OmemoOnIqResultGetBundle(const TiXmlElement *iqNode, CJabberIqInfo *pInfo);
+
+ omemo::omemo_impl m_omemo;
+
//---- jabber_password.cpp --------------------------------------------------------------
INT_PTR __cdecl OnMenuHandleChangePassword(WPARAM wParam, LPARAM lParam);