logsui/logsengine/tsrc/symbianos_stub/logsdbconnector_stub.cpp
changeset 16 c5af8598d22c
parent 0 4a5361db8937
child 17 90fe74753f71
equal deleted inserted replaced
14:f27aebe284bb 16:c5af8598d22c
   115 
   115 
   116 // ----------------------------------------------------------------------------
   116 // ----------------------------------------------------------------------------
   117 // LogsDbConnector::clearEvents
   117 // LogsDbConnector::clearEvents
   118 // ----------------------------------------------------------------------------
   118 // ----------------------------------------------------------------------------
   119 //
   119 //
   120 bool LogsDbConnector::clearEvents(const QList<int>& /*ids*/)
   120 bool LogsDbConnector::clearEvents(const QList<LogsEvent*>& /*events*/)
   121 {    
   121 {    
   122     logsLastCalledFunction = "clearEvents";
   122     logsLastCalledFunction = "clearEvents";
   123     return true;
   123     return true;
   124 }
   124 }
   125 
   125 
   126 // ----------------------------------------------------------------------------
   126 // ----------------------------------------------------------------------------
   127 // LogsDbConnector::markEventsSeen
   127 // LogsDbConnector::markEventsSeen
   128 // ----------------------------------------------------------------------------
   128 // ----------------------------------------------------------------------------
   129 //
   129 //
   130 bool LogsDbConnector::markEventsSeen(const QList<int>& ids)
   130 bool LogsDbConnector::markEventsSeen(const QList<LogsEvent*>& events)
   131 {
   131 {
   132     bool started(false);
   132     bool started(false);
   133     logsLastCalledFunction = "markEventsSeen";
   133     logsLastCalledFunction = "markEventsSeen";
   134     foreach( int currId, ids ){
   134     foreach( LogsEvent* currEv, events ){
   135         if ( !mEventsSeen.contains(currId) ){
   135         if ( !mEventsSeen.contains(*currEv) ){
   136             mEventsSeen.append(currId);
   136             mEventsSeen.append(*currEv);
   137             started = true;
   137             started = true;
   138         }
   138         }
   139     }
   139     }
   140     return started;
   140     return started;
   141 }
   141 }
   185 
   185 
   186 // ----------------------------------------------------------------------------
   186 // ----------------------------------------------------------------------------
   187 // LogsDbConnector::readCompleted
   187 // LogsDbConnector::readCompleted
   188 // ----------------------------------------------------------------------------
   188 // ----------------------------------------------------------------------------
   189 //
   189 //
   190 void LogsDbConnector::readCompleted(int /*numRead*/)
   190 void LogsDbConnector::readCompleted()
   191 {
   191 {
   192 }
   192 }
   193 
   193 
   194 // ----------------------------------------------------------------------------
   194 // ----------------------------------------------------------------------------
   195 // LogsDbConnector::errorOccurred
   195 // LogsDbConnector::errorOccurred