diff options
| author | George Hazan <ghazan@miranda.im> | 2020-05-14 12:34:32 +0300 |
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2020-05-14 12:34:32 +0300 |
| commit | 5a09915186e4ae70cc39e9343ca02a1b860d7f94 (patch) | |
| tree | ba115287c182bc8dae3308fc23f8d197d68850cb /include | |
| parent | 2b30685427500c9eedac4c0c4862b32af144a90c (diff) | |
simple database event cycles moved to cursors
Diffstat (limited to 'include')
| -rw-r--r-- | include/m_database.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/m_database.h b/include/m_database.h index c47f3ef872..c3d030ccb9 100644 --- a/include/m_database.h +++ b/include/m_database.h @@ -726,6 +726,19 @@ public: }
};
+class MIR_CORE_EXPORT ECPTR : public MNonCopyable
+{
+ EventCursor *m_cursor;
+ MEVENT m_prevFetched, m_currEvent;
+
+public:
+ ECPTR(EventCursor *_1);
+ ~ECPTR();
+
+ void DeleteEvent();
+ MEVENT FetchNext();
+};
+
class EventIterator
{
EventCursor *cursor;
|
