projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Display and update message processing progress
[quassel.git]
/
src
/
qtui
/
qtuimessageprocessor.h
diff --git
a/src/qtui/qtuimessageprocessor.h
b/src/qtui/qtuimessageprocessor.h
index
53d4f02
..
553d580
100644
(file)
--- a/
src/qtui/qtuimessageprocessor.h
+++ b/
src/qtui/qtuimessageprocessor.h
@@
-21,6
+21,7
@@
#ifndef QTUIMESSAGEPROCESSOR_H_
#define QTUIMESSAGEPROCESSOR_H_
#ifndef QTUIMESSAGEPROCESSOR_H_
#define QTUIMESSAGEPROCESSOR_H_
+#include <QTime>
#include <QTimer>
#include "abstractmessageprocessor.h"
#include <QTimer>
#include "abstractmessageprocessor.h"
@@
-51,12
+52,15
@@
class QtUiMessageProcessor : public AbstractMessageProcessor {
private:
void checkForHighlight(Message &msg);
void startProcessing();
private:
void checkForHighlight(Message &msg);
void startProcessing();
+ void updateProgress(bool start = false);
QList<QList<Message> > _processQueue;
QList<Message> _currentBatch;
QTimer _processTimer;
bool _processing;
Mode _processMode;
QList<QList<Message> > _processQueue;
QList<Message> _currentBatch;
QTimer _processTimer;
bool _processing;
Mode _processMode;
+ int _msgsProcessed, _msgCount;
+ QTime _progressTimer;
};
#endif
};
#endif