diff options
author | George Hazan <george.hazan@gmail.com> | 2024-05-12 16:23:20 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-05-12 16:23:20 +0300 |
commit | 59c6a809e3137b088062f244f2f114e150bedd5a (patch) | |
tree | be0a1644b9a65ad3ba8299769fcabba5a684809b /include | |
parent | ae5c72cf0e6e7b287d7cf77fb83cacd017ee2b58 (diff) |
merge commit
Diffstat (limited to 'include')
-rw-r--r-- | include/m_database.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/m_database.h b/include/m_database.h index 03e035623d..788b627cd1 100644 --- a/include/m_database.h +++ b/include/m_database.h @@ -186,6 +186,7 @@ struct DBVARIANT #define DBEF_SECURE 0x0080 // event is encrypted
#define DBEF_STRONG 0x0100 // event is encrypted by the verified sender
#define DBEF_BOOKMARK 0x0200 // event is bookmarked
+#define DBEF_JSON 0x0400 // event's body is a JSON structure
struct DBEVENTINFO
{
@@ -702,6 +703,8 @@ __inline uint32_t DBGetContactSettingRangedDword(MCONTACT hContact, const char * #endif
+class JSONNode;
+
namespace DB
{
MIR_APP_DLL(bool) IsDuplicateEvent(MCONTACT hContact, DBEVENTINFO &dbei);
@@ -713,6 +716,7 @@ namespace DB {
bool m_bValid;
MEVENT m_hEvent;
+ JSONNode *m_json = 0;
public:
explicit EventInfo();
@@ -724,6 +728,7 @@ namespace DB void unload();
void wipeNotify();
+ __forceinline JSONNode& getJson() const { return *m_json; }
__forceinline MEVENT getEvent() const { return m_hEvent; }
__forceinline operator bool() const { return m_bValid; }
@@ -732,6 +737,7 @@ namespace DB bool isAlertable() const; // should raise SRMM window
wchar_t* getString(const char *str) const;
+ JSONNode& setJson();
};
/////////////////////////////////////////////////////////////////////////////////////////
|