Changed search to retry automatically couple of times before failing.
[jenirok] / src / gui / resultwindow.h
index 3391f7d..dde6501 100644 (file)
@@ -35,7 +35,8 @@ public:
     ResultWindow(QWidget* parent = 0);
     ~ResultWindow();
     static const int REQUEST_TIMEOUT = 30000;
-    static const int SEARCH_INTERVAL = 2000;
+    static const int SEARCH_INTERVAL = 1000;
+    static const int RETRIES = 2;
 
 signals:
     void itemSelected(Source::Result const& result);
@@ -59,6 +60,8 @@ private:
     ConnectionManager* connectionManager_;
     int timer_;
     bool searching_;
+    int retries_;
+    Source::SearchDetails currentSearch_;
 
 };