Small fix to prevent daemon from closing itself.
[jenirok] / src / daemon / calllistener.h
index 2ec5b7f..cbc4698 100644 (file)
@@ -39,9 +39,11 @@ public:
     static const int REQUEST_TIMEOUT = 10000;
     static const int BANNER_DELAY = 350;
     static const int SEARCH_RETRIES = 2;
-    static const int CONNECT_RETRIES = 3;
-    static const int CONNECTION_LOOKUP_RETRIES = 15;
-    static const int WAIT_BETWEEN_RETRIES = 1000;
+    static const int CONNECT_RETRIES = 2;
+    static const int CONNECTION_LOOKUP_RETRIES = 8;
+    static const int GPRS_SCANS = 2;
+    static const int WLAN_SCANS = 5;
+    static const int WAIT_BETWEEN_RETRIES = 500;
     static const int ERROR_BANNER_TIMEOUT = 4500;
 
 protected:
@@ -63,9 +65,9 @@ private:
     void searchClose();
     bool handleConnection();
     void showError(QString const& msg, int delay = 0);
-    void sleep(int ms);
-    void findGprsId();
     bool is3g();
+    void sleep(int ms);
+    void sendRetrySignal(QString const& iap, bool retry);
     QString createResult(QString const& name, QString const& street, QString const& city);
     QString timedMessage_;
     Source* source_;
@@ -79,7 +81,6 @@ private:
     int retries_;
     QString currentSearch_;
     int timer_;
-    QString gprsId_;
 };
 
 #endif // CALLLISTENER_H