Update the post insert behaviour of the RtcomEventLogger backend to update storage...
[qwerkisync] / DBBackends / RtcomEventLogger.h
index a2a5053..728c137 100644 (file)
@@ -31,6 +31,7 @@ typedef _RTComEl RTComEl;
 
 template <typename T1> class QList;
 class QString;
+class QStringList;
 
 #include <QHash>
 
@@ -56,21 +57,22 @@ namespace DBBackends
                virtual EventTypes::iEvent *const CreateEvent(RTComElEvent &revent, QList<RTComElAttachment*> &rattachments);
                void ProcessService(EventProcessors::iEventProcessor &processor, const EventTypes::eEventTypes service, const RTComEl &el);
 
-               virtual const QList<int> &InsertedIDs() const { return m_InsertedIDs; }
+               virtual const QList<uint> &InsertedIDs() const { return m_InsertedIDs; }
 
        public:
                virtual void ClearInsertedIDs();
 
        private:
+               void UpdateInsertedStorageTimes();
                void Reindex();
+               QStringList IntsToStringList(QList<uint> &values);
 
                const Settings &m_Settings;
-               const QString mk_DBPath;
 
                QHash<EventTypes::eEventTypes, int> m_ServiceIDs;
 
-               QList<int> m_InsertedIDs;
-               QList<int> &InsertedIDs() { return m_InsertedIDs; }
+               QList<uint> m_InsertedIDs;
+               QList<uint> &InsertedIDs() { return m_InsertedIDs; }
 
                RtcomEventLoggerComponents::TriggerDisabler *m_TriggerDisabler;
        };