+ postProcess(msg);
+}
+
+void QtUiMessageProcessor::process(QList<Message> &msgs) {
+ QList<Message>::iterator msgIter = msgs.begin();
+ QList<Message>::iterator msgIterEnd = msgs.end();
+ while(msgIter != msgIterEnd) {
+ checkForHighlight(*msgIter);
+ postProcess(*msgIter);
+ msgIter++;
+ }
+ Client::messageModel()->insertMessages(msgs);
+ return;
+
+
+ if(msgs.isEmpty()) return;
+ _processQueue.append(msgs);
+ _msgCount += msgs.count();
+ if(!isProcessing()) startProcessing();
+ else updateProgress();
+}
+
+void QtUiMessageProcessor::startProcessing() {
+ if(processMode() == TimerBased) {
+ if(_currentBatch.isEmpty() && _processQueue.isEmpty()) return;
+ _processing = true;
+ _msgsProcessed = 0;
+ _msgCount = _currentBatch.count();
+ foreach(QList<Message> msglist, _processQueue) _msgCount += msglist.count();
+ updateProgress();
+ if(!_processTimer.isActive()) _processTimer.start();
+ }