Added automatic retries to call listener.
[jenirok] / src / daemon / calllistener.h
index b7c6edf..a2f5e88 100644 (file)
@@ -38,8 +38,9 @@ public:
     ~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);
@@ -60,6 +61,8 @@ private:
     InformationBox* box_;
     QLabel* label_;
     static QDBusConnection systemBus_;
+    int retries_;
+    Eniro::SearchDetails currentSearch_;
 };
 
 #endif // CALLLISTENER_H