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 |