QString degreesToString(double degrees);
/**
- * @brief Forms a http cookie
- *
- * @param apiKeyValue application key
- * @param expiresValue session expire date&time from Facebook
- * @param userValue user id from Facebook
- * @param sessionKeyValue session key from Facebook
- * @param sessionSecretValue session secret from Facebook
- * @param signatureValue md5 generated signature
- * @param localeValue used locale
- * @return QString formed cookie
- */
- QString formCookie(const QString &apiKeyValue, QString expiresValue, QString userValue,
- QString sessionKeyValue, QString sessionSecretValue,
- const QString &signatureValue, const QString &localeValue);
-
- /**
- * @brief Forms a http url
- *
- * @param baseUrl Server url
- * @param phpScript Server script
- * @param urlParameters optional parameters for url
- * @return QUrl formed url
- */
- QUrl formUrl(const QString &baseUrl, const QString &phpScript,
- QString urlParameters = QString());
-
- /**
- * @brief Forms url parameters
- *
- * @param coordinates current coordinates
- * @param status optional status message
- * @param publish optional publish location on Facebook wall
- * @return QString
- */
- QString formUrlParameters(const GeoCoordinate &coordinates, QString status = QString(),
- bool publish = false);
-
- /**
* @brief Parses user and friend data from JSON string
*
* @param jsonReply JSON string
void parseUserData(const QByteArray &jsonReply);
/**
- * @brief Sends http request
- *
- * @param url destination
- * @param cookieType type of the cookie
- * @param cookie http cookie
- */
- void sendRequest(const QUrl &url, const QString &cookieType, const QString &cookie);
-
- /**
* @brief Build and send request
*
* Appends script pathname and parameters to the server base URL. Access token is appended and