X-Git-Url: http://git.maemo.org/git/?p=jenirok;a=blobdiff_plain;f=src%2Fdaemon%2Fcalllistener.h;fp=src%2Fdaemon%2Fcalllistener.h;h=54677f12ff73331570fa9f7d0f43c32a3708013a;hp=4fe29b46e684d76cb114cc49c8420936665365f9;hb=2136f257ebff2370bdfe7572e0c87ef50705feb2;hpb=6046fed79d373b56f8a5c90aaff1358531e8f99d diff --git a/src/daemon/calllistener.h b/src/daemon/calllistener.h index 4fe29b4..54677f1 100644 --- a/src/daemon/calllistener.h +++ b/src/daemon/calllistener.h @@ -39,7 +39,9 @@ public: void end(); static const int REQUEST_TIMEOUT = 10000; static const int BANNER_DELAY = 350; - static const int NUMBER_OF_RETRIES = 3; + static const int NUMBER_OF_RETRIES = 2; + static const int CONNECT_RETRIES = 2; + static const int ERROR_BANNER_TIMEOUT = 5000; private slots: void requestFinished(QVector const& results, Eniro::SearchDetails const& details, bool error); @@ -55,6 +57,8 @@ private: void showDelayedResult(QString const& text, int delay); void searchInit(); void searchClose(); + bool handleConnection(); + void showError(QString const& msg); QString createResult(QString const& name, QString const& street, QString const& city); QString timedMessage_; Eniro* eniro_; @@ -67,6 +71,8 @@ private: int retries_; QString currentSearch_; Eniro::Site site_; + QString connectionName_; + bool autoconnect_; }; #endif // CALLLISTENER_H