diff options
author | George Hazan <ghazan@miranda.im> | 2020-02-12 20:49:26 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-02-12 20:49:33 +0300 |
commit | c64e697b69c0c36c034f00683011894b7a41efea (patch) | |
tree | ec37956644bc7f354ae42525d6058bca90bac639 /protocols/JabberG/src/jabber_proto.h | |
parent | 4e6ceb0e009498b4589de4bbe012444ca79881ab (diff) |
Jabber: XEP-0333 implementation (chat markers)
Diffstat (limited to 'protocols/JabberG/src/jabber_proto.h')
-rwxr-xr-x | protocols/JabberG/src/jabber_proto.h | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/protocols/JabberG/src/jabber_proto.h b/protocols/JabberG/src/jabber_proto.h index 20e6a34ee0..e30d434c58 100755 --- a/protocols/JabberG/src/jabber_proto.h +++ b/protocols/JabberG/src/jabber_proto.h @@ -62,6 +62,18 @@ struct TFilterInfo wchar_t pattern[256];
};
+struct CChatMark
+{
+ CChatMark(MEVENT _p1, const CMStringA &_p2, const CMStringA &_p3) :
+ hEvent(_p1),
+ szId(_p2),
+ szFrom(_p3)
+ {}
+
+ MEVENT hEvent;
+ CMStringA szId, szFrom;
+};
+
struct CJabberProto : public PROTO<CJabberProto>, public IJabberInterface
{
class CJabberProtoImpl
@@ -113,6 +125,8 @@ struct CJabberProto : public PROTO<CJabberProto>, public IJabberInterface HWND SearchAdvanced(HWND owner) override;
HWND CreateExtendedSearchUI(HWND owner) override;
+ MEVENT RecvMsg(MCONTACT hContact, PROTORECVEVENT *) override;
+
int SendContacts(MCONTACT hContact, int flags, int nContacts, MCONTACT *hContactsList) override;
HANDLE SendFile(MCONTACT hContact, const wchar_t *szDescription, wchar_t **ppszFiles) override;
int SendMsg(MCONTACT hContact, int flags, const char *msg) override;
@@ -136,6 +150,7 @@ struct CJabberProto : public PROTO<CJabberProto>, public IJabberInterface //====| Events |======================================================================
void __cdecl OnAddContactForever(MCONTACT hContact);
+ int __cdecl OnDbMarkedRead(WPARAM, LPARAM);
int __cdecl OnDbSettingChanged(WPARAM, LPARAM);
int __cdecl OnIdleChanged(WPARAM, LPARAM);
int __cdecl OnLangChanged(WPARAM, LPARAM);
@@ -219,14 +234,14 @@ struct CJabberProto : public PROTO<CJabberProto>, public IJabberInterface HANDLE m_hThreadHandle;
- char *m_szJabberJID;
- int m_nJabberSearchID;
- time_t m_tmJabberLoggedInTime;
- time_t m_tmJabberIdleStartTime;
- UINT m_nJabberCodePage;
- char *m_tszSelectedLang;
+ char* m_szJabberJID;
+ int m_nJabberSearchID;
+ time_t m_tmJabberLoggedInTime;
+ time_t m_tmJabberIdleStartTime;
+ UINT m_nJabberCodePage;
+ char* m_tszSelectedLang;
- mir_cs m_csModeMsgMutex;
+ mir_cs m_csModeMsgMutex;
JABBER_MODEMSGS m_modeMsgs;
bool m_bCisAvailable;
@@ -312,6 +327,8 @@ struct CJabberProto : public PROTO<CJabberProto>, public IJabberInterface CNoteList m_notes;
+ OBJLIST<CChatMark> m_arChatMarks;
+
/*******************************************************************
* Function declarations
*******************************************************************/
|