projects
/
jenirok
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added automatic retries to call listener.
[jenirok]
/
src
/
daemon
/
calllistener.h
diff --git
a/src/daemon/calllistener.h
b/src/daemon/calllistener.h
index
b7c6edf
..
a2f5e88
100644
(file)
--- a/
src/daemon/calllistener.h
+++ b/
src/daemon/calllistener.h
@@
-38,8
+38,9
@@
public:
~CallListener();
void begin();
void end();
~CallListener();
void begin();
void end();
- static const int REQUEST_TIMEOUT = 15000;
- static const int BANNER_DELAY = 350;
+ static const int REQUEST_TIMEOUT = 10000;
+ static const int BANNER_DELAY = 300;
+ static const int NUMBER_OF_RETRIES = 3;
private slots:
void requestFinished(QVector <Eniro::Result> const& results, Eniro::SearchDetails const& details, bool error);
private slots:
void requestFinished(QVector <Eniro::Result> const& results, Eniro::SearchDetails const& details, bool error);
@@
-60,6
+61,8
@@
private:
InformationBox* box_;
QLabel* label_;
static QDBusConnection systemBus_;
InformationBox* box_;
QLabel* label_;
static QDBusConnection systemBus_;
+ int retries_;
+ Eniro::SearchDetails currentSearch_;
};
#endif // CALLLISTENER_H
};
#endif // CALLLISTENER_H