Add QGraphicView Objects
[groove] / gscom.cpp
index 733d679..9506ed8 100644 (file)
--- a/gscom.cpp
+++ b/gscom.cpp
@@ -19,7 +19,7 @@ gscom::gscom()
     model->setHorizontalHeaderLabels(
         QStringList() << "Online");
     addDebugMsg("You may now search for a song");
-    addProgressbar("test");
+    //addProgressbar("test");
     //getSessionKey();
 }
 
@@ -53,7 +53,7 @@ QStandardItemModel* gscom::getSongModel(QString song)
         jlist.insertMulti("header",header);
         QVariantMap param;
         param.insert("type","Songs");
-        param.insert("query",song.toAscii());
+        param.insert("query",song);
         jlist.insertMulti("parameters",param);
         QJson::Serializer *serializer = new QJson::Serializer();
         //qDebug() << serializer->serialize(jlist);
@@ -174,6 +174,8 @@ void gscom::replyFinished(QNetworkReply *reply)
                 if(cookie.name() == "PHPSESSID")
                 {
                     phpSession = new QString(cookie.value());
+                    qDebug() << QDateTime::currentDateTime();
+                    qDebug() << cookie.expirationDate();
                 }
             }
             reply->readAll();
@@ -197,6 +199,7 @@ void gscom::replyFinished(QNetworkReply *reply)
                 sessionKey = new QString(result["result"].toString());
                 qDebug() << sessionKey->toAscii();
             }
+            qDebug() << result;
             currentaction = none;
             reply->close();
             emit finishedSearch();
@@ -216,6 +219,7 @@ void gscom::replyFinished(QNetworkReply *reply)
                 currentaction = getPHP;
                 manager->get(QNetworkRequest(QUrl(QString("http://") + GS_LISTEN)));
                 qDebug() << reply->readAll();
+                qDebug() << result;
                 reply->close();
                 return;
             }