Added pre and post procesing "event handlers" to the DB backends. Initially u
[qwerkisync] / DBBackends / RtcomEventLogger.h
index e00f205..a2a5053 100644 (file)
@@ -36,12 +36,15 @@ class QString;
 
 namespace DBBackends
 {
+       namespace RtcomEventLoggerComponents { class TriggerDisabler; }
+
        class RtcomEventLogger : public iDBBackend
        {
        public:
                RtcomEventLogger(const Settings &settings);
                RtcomEventLogger(const Settings &settings, const EventTypes::RtcomEvent &event);
 
+               virtual void PreInsert();
                virtual void Insert(EventTypes::iEvent &event, const NumberToNameLookup &numberToNameLookup);
                virtual void PostInsert();
                virtual void Process(EventProcessors::iEventProcessor &eventProcessor);
@@ -60,14 +63,16 @@ namespace DBBackends
 
        private:
                void Reindex();
-               QList<int> &InsertedIDs() { return m_InsertedIDs; }
 
-       private:
                const Settings &m_Settings;
                const QString mk_DBPath;
-               QList<int> m_InsertedIDs;
 
                QHash<EventTypes::eEventTypes, int> m_ServiceIDs;
+
+               QList<int> m_InsertedIDs;
+               QList<int> &InsertedIDs() { return m_InsertedIDs; }
+
+               RtcomEventLoggerComponents::TriggerDisabler *m_TriggerDisabler;
        };
 }