diff options
| author | George Hazan <ghazan@miranda.im> | 2020-05-13 16:09:27 +0300 |
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2020-05-13 16:09:27 +0300 |
| commit | 2b30685427500c9eedac4c0c4862b32af144a90c (patch) | |
| tree | a34df3dd8446a4ec9cb466ddd0632b2fcbcde448 /include | |
| parent | e27e90cf6167d5d23a4458ae99479df6135a16b2 (diff) | |
kinda first working version of database event cursors
Diffstat (limited to 'include')
| -rw-r--r-- | include/m_database.h | 10 | ||||
| -rw-r--r-- | include/m_db_int.h | 8 |
2 files changed, 8 insertions, 10 deletions
diff --git a/include/m_database.h b/include/m_database.h index 03f99ee21e..c47f3ef872 100644 --- a/include/m_database.h +++ b/include/m_database.h @@ -707,13 +707,11 @@ class MIR_CORE_EXPORT EventCursor : public MZeroedObject friend class EventIterator;
protected:
- DBEVENTINFO &dbei;
MCONTACT hContact;
public:
- EventCursor(MCONTACT _1, DBEVENTINFO &_2) :
- hContact(_1),
- dbei(_2)
+ EventCursor(MCONTACT _1) :
+ hContact(_1)
{ }
virtual ~EventCursor();
@@ -752,8 +750,8 @@ public: }
};
-MIR_CORE_DLL(EventCursor*) Events(MCONTACT, DBEVENTINFO &);
-MIR_CORE_DLL(EventCursor*) EventsRev(MCONTACT, DBEVENTINFO &);
+MIR_CORE_DLL(EventCursor*) Events(MCONTACT, MEVENT iStartEvent = 0);
+MIR_CORE_DLL(EventCursor*) EventsRev(MCONTACT, MEVENT iStartEvent = 0);
};
diff --git a/include/m_db_int.h b/include/m_db_int.h index bf9823484c..d6ca63d206 100644 --- a/include/m_db_int.h +++ b/include/m_db_int.h @@ -134,8 +134,8 @@ interface MIR_APP_EXPORT MIDatabase STDMETHOD_(MEVENT, GetEventById)(LPCSTR szModule, LPCSTR szId) PURE;
STDMETHOD_(BOOL, SetEventId)(LPCSTR szModule, MEVENT, LPCSTR szId) PURE;
- STDMETHOD_(DB::EventCursor*, EventCursor)(MCONTACT hContact, DBEVENTINFO &dbei) PURE;
- STDMETHOD_(DB::EventCursor*, EventCursorRev)(MCONTACT hContact, DBEVENTINFO &dbei) PURE;
+ STDMETHOD_(DB::EventCursor*, EventCursor)(MCONTACT hContact, MEVENT hDbEvent) PURE;
+ STDMETHOD_(DB::EventCursor*, EventCursorRev)(MCONTACT hContact, MEVENT hDbEvent) PURE;
};
/////////////////////////////////////////////////////////////////////////////////////////
@@ -188,8 +188,8 @@ public: STDMETHODIMP_(BOOL) Compact(void) override;
STDMETHODIMP_(BOOL) Backup(LPCWSTR) override;
- STDMETHODIMP_(DB::EventCursor*) EventCursor(MCONTACT hContact, DBEVENTINFO &dbei) override;
- STDMETHODIMP_(DB::EventCursor*) EventCursorRev(MCONTACT hContact, DBEVENTINFO &dbei) override;
+ STDMETHODIMP_(DB::EventCursor*) EventCursor(MCONTACT hContact, MEVENT hDbEvent) override;
+ STDMETHODIMP_(DB::EventCursor*) EventCursorRev(MCONTACT hContact, MEVENT hDbEvent) override;
};
#pragma warning(pop)
|
