Some error banner delays fixed.
[jenirok] / src / daemon / calllistener.h
index a07743e..0cd70ed 100644 (file)
@@ -42,7 +42,7 @@ public:
     static const int CONNECT_RETRIES = 3;
     static const int CONNECTION_LOOKUP_RETRIES = 15;
     static const int WAIT_BETWEEN_RETRIES = 1000;
-    static const int ERROR_BANNER_TIMEOUT = 4000;
+    static const int ERROR_BANNER_TIMEOUT = 4500;
 
 protected:
     virtual void timerEvent(QTimerEvent* event);
@@ -62,7 +62,7 @@ private:
     void searchInit();
     void searchClose();
     bool handleConnection();
-    void showError(QString const& msg);
+    void showError(QString const& msg, int delay = 0);
     void sleep(int ms);
     QString createResult(QString const& name, QString const& street, QString const& city);
     QString timedMessage_;
@@ -75,9 +75,7 @@ private:
     int retries_;
     QString currentSearch_;
     Eniro::Site site_;
-    QString connectionName_;
     int timer_;
-    bool autoconnect_;
 };
 
 #endif // CALLLISTENER_H