summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/history_array.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-05-01 18:23:21 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-05-01 18:23:27 +0300
commitc9027518b426a134006a7335184df8f9205b2938 (patch)
treed74c7ad6a446c462d559edc9ae2f584f955fb2fc /plugins/NewStory/src/history_array.h
parent7ce5ce71c631671061ba13fd30b97075fa5f3e63 (diff)
fixes #2371 (NewStory: add grouping support)
Diffstat (limited to 'plugins/NewStory/src/history_array.h')
-rw-r--r--plugins/NewStory/src/history_array.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/plugins/NewStory/src/history_array.h b/plugins/NewStory/src/history_array.h
index 8b670fce8f..02a2b7f471 100644
--- a/plugins/NewStory/src/history_array.h
+++ b/plugins/NewStory/src/history_array.h
@@ -10,25 +10,26 @@ struct ItemData
ELM_DATA
};
- BYTE flags = 0;
-
MCONTACT hContact = 0;
MEVENT hEvent = 0;
+ bool wtext_del = false;
+ bool bSelected = false;
bool dbeOk = false;
- DBEVENTINFO dbe;
- bool wtext_del = false;
+ DBEVENTINFO dbe;
wchar_t *wtext = 0;
-
wchar_t *wszNick = 0;
HANDLE data = 0;
+ ItemData *pPrev = 0;
ItemData() { memset(&dbe, 0, sizeof(dbe)); }
~ItemData();
bool load(EventLoadMode mode);
+ bool isGrouped() const;
+
inline bool loadInline(EventLoadMode mode)
{
if (((mode >= ItemData::ELM_INFO) && !dbeOk) || ((mode == ItemData::ELM_DATA) && !dbe.pBlob))
@@ -95,8 +96,6 @@ public:
enum
{
- HIF_SELECTED = 0x01,
-
FILTER_TIME = 0x01,
FILTER_TYPE = 0x02,
FILTER_DIRECTION = 0x04,
@@ -131,7 +130,7 @@ public:
HistoryArray();
~HistoryArray();
- bool addEvent(MCONTACT hContact, MEVENT hEvent, int count, ItemData::EventLoadMode mode = ItemData::ELM_NOTHING);
+ bool addEvent(MCONTACT hContact, MEVENT hEvent, int count);
void addChatEvent(SESSION_INFO *si, LOGINFO *pEvent);
void clear();
int getCount() const;