logsui/logsengine/logssymbianos/inc/logsdbconnector.h
changeset 17 90fe74753f71
parent 15 76d2cf7a585e
--- a/logsui/logsengine/logssymbianos/inc/logsdbconnector.h	Mon Aug 23 18:14:51 2010 +0300
+++ b/logsui/logsengine/logssymbianos/inc/logsdbconnector.h	Fri Sep 03 14:26:05 2010 +0300
@@ -36,7 +36,6 @@
 class LogsEvent;
 class LogsRemove;
 class RFs;
-class CRepository;
 
 // CLASS DECLARATIONS
 
@@ -159,12 +158,6 @@
         bool markEventsSeen(const QList<LogsEvent*>& events);
         
         /**
-         * Clear missed calls counter.
-         * @return 0 if clearing was success
-         */
-        int clearMissedCallsCounter();
-        
-        /**
          * Read duplicates for specified event
          * @param eventId
          * @return 0 if reading started succesfully
@@ -179,26 +172,6 @@
         
         int refreshData();
         int compressData();
-		
-        
-        /**
-         * Returns cenrep key status of predictive search feature. 
-         * @return 0 - feature is permanently off and can't be turned on,
-         *         1 - feature is on
-         *         2 - feature is temporarily off and can be turned on 
-         *         negative value indicates some error in fetching the key
-         */
-        int predictiveSearchStatus();
-        
-        /**
-         * Allows to modify cenrep key value of predictive search features. 
-         * However, this function can't be used if feature is set permanently off 
-         * (see predictiveSearchStatus())
-         * @param enabled, specify whether cenrep key will be set to 1 or 2
-         * @ return 0 if cenrep key value modified succesfully,
-         *          -1 in case of some error
-         */
-        int setPredictiveSearch(bool enabled);
         
         
     protected: // From LogsReaderObserver
@@ -219,7 +192,7 @@
 		void deleteInvalidEvents(int newEventCount);
 		int doMarkEventSeen();
 		bool handleModifyingCompletion(int err=0);
-		void getTelNumMatchLenL(int& matchLen);
+		void releaseDbConnections();
 
     private: // data
 
@@ -231,9 +204,9 @@
         RFs* mFsSession;
         LogsReader* mReader;
         LogsRemove* mLogsRemove;
-        CRepository* mRepository;
         bool mCompressionEnabled;
-        
+        bool mFirstReadCompleted;
+                
         QList<LogsEvent*> mEvents;
         QList<LogsEvent*> mDuplicatedEvents;
         QList<int> mRemovedEventIndexes;