Changing to new authentication mechanism ongoing
[situare] / src / situareservice / situareservice.h
index d34b357..d38bd4b 100644 (file)
@@ -107,6 +107,8 @@ public slots:
     */
     void requestFinished(QNetworkReply *reply);
 
+    void updateAccessToken(const QString &accessToken);
+
 private:
 
     /**
@@ -117,6 +119,8 @@ private:
     */
     void addProfileImages(const QList<QUrl> &imageUrlList);
 
+    void appendAccessToken(QString &requestUrl);
+
     /**
     * @brief Forms a http cookie
     *
@@ -171,6 +175,11 @@ private:
     */
     void sendRequest(const QUrl &url, const QString &cookieType, const QString &cookie);
 
+
+    void buildRequest(const QString &script, const QHash<QString,QString> &parameters);
+
+    void sendRequest(const QString &requestUrl);
+
 private slots:
 
     /**
@@ -239,8 +248,11 @@ private:
     bool m_defaultImage;    ///< Indicates if some of the friends/user doesn't have a image
 
     QList<QNetworkReply *> m_currentRequests;   ///< List of current http requests
+    QList<QString> m_requestsWaitingAccessToken;
     QList<User *> m_friendsList;                ///< List of friends(User)
 
+    QString m_accessToken;
+
     NetworkAccessManager *m_networkManager;    ///< Pointer to QNetworkAccessManager
 
     FacebookCredentials m_credentials;          ///< handle for FacebookCredentials