X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=DBBackends%2FiDBBackend.h;h=5acafde0d223a929d25bed6cc45f65cefdd6ea88;hb=09cf284409d11f5269cbc106429046f993bffa68;hp=841bd9418acc4e30bd74fed5a0594ce330b4c01b;hpb=4abcc9ab77d80562371024c243eb6b4f9f28dfcc;p=qwerkisync diff --git a/DBBackends/iDBBackend.h b/DBBackends/iDBBackend.h index 841bd94..5acafde 100644 --- a/DBBackends/iDBBackend.h +++ b/DBBackends/iDBBackend.h @@ -23,15 +23,24 @@ namespace EventProcessors { class iEventProcessor; } namespace EventTypes { class RtcomEvent; class iEvent; } class NumberToNameLookup; +template class QList; + namespace DBBackends { class iDBBackend { public: + virtual ~iDBBackend() {} virtual void Insert(EventTypes::iEvent &event, const NumberToNameLookup &numberToNameLookup) =0; + virtual void PostInsert() =0; + virtual void ClearInsertedIDs() =0; //virtual uint Remove(); virtual void Process(EventProcessors::iEventProcessor &eventProcessor) =0; + + protected: + virtual const QList &InsertedIDs() const =0; + }; }