Log In
New Account
  
Home My Page Project Cloud Code Snippets Project Openings Jenirok
Summary Tracker SCM Files
authoreshe <jessehakanen@gmail.com>
Tue, 17 Aug 2010 14:01:43 +0000 (15:01 +0100)
committereshe <jessehakanen@gmail.com>
Tue, 17 Aug 2010 14:01:43 +0000 (15:01 +0100)
src/common/cache.cpp
src/common/eniro.cpp
src/common/source.cpp
src/daemon/calllistener.cpp
src/daemon/calllistener.h

index 2e01f07..5f9a165 100644 (file)
@@ -108,9 +108,12 @@ bool Cache::addItem(Source::Result const& result)
     query.bindValue(":street", result.street);
     query.bindValue(":city", result.city);
 
+    qDebug() << result.number << result.name << result.street << result.city;
+
 
     if(!query.exec())
     {
+        qDebug() << "Unable to add item to cache";
         ret = false;
     }
 
index 77290e2..46fda30 100644 (file)
@@ -257,7 +257,6 @@ void Eniro::handleHttpError(int id)
         pendingLoginRequests_.end())
     {
         emit loginStatus(false);
-
     }
 }
 
index ac246ab..5d1315e 100644 (file)
@@ -181,7 +181,6 @@ void Source::setError(Source::Error error, QString const& errorString)
 
 void Source::httpReady(int id, bool error)
 {
-
     if(error)
     {
         if(http_.error() == QHttp::Aborted)
index 0938fb8..e73bf26 100644 (file)
@@ -164,6 +164,8 @@ void CallListener::requestFinished(QVector <Source::Result> const& results,
         cm.disconnect(true);
     }*/
 
+    qDebug() << "Request finished";
+
     // If box is not visible, the call must have been terminated already
     if(!initialized_ || !box_->isVisible() || !currentCall_)
     {
@@ -426,6 +428,7 @@ bool CallListener::handleConnection()
 
     if(cm.isConnected())
     {
+        cm.connect();
         closeConnection_ = false;
         return true;
     }
index 0fba1c7..16b6218 100644 (file)
@@ -36,7 +36,7 @@ public:
     ~CallListener();
     bool begin();
     void end();
-    static const int REQUEST_TIMEOUT = 10000;
+    static const int REQUEST_TIMEOUT = 8000;
     static const int BANNER_DELAY = 350;
     static const int SEARCH_RETRIES = 2;
     static const int CONNECT_RETRIES = 1;

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment