*/
~SituareService();
+ /*******************************************************************************
+ * MEMBER FUNCTIONS AND SLOTS
+ ******************************************************************************/
+
/**
* @brief Retrieves location user and friends information from Situare server
*
*/
void requestFinished(QNetworkReply *reply);
-
/**
* @brief Public slot, which indicates when facebook credentials are ready
*
QString formUrlParameters(const QPointF &coordinates, QString status = 0, QString publish = 0);
/**
+ * @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
*/
void sendRequest(const QUrl &url, const QString &cookieType, const QString &cookie);
- /**
- * @brief Parses user and friend data from JSON string
- *
- * @param jsonReply JSON string
- */
- void parseUserData(const QByteArray &jsonReply);
+ /*******************************************************************************
+ * SIGNALS
+ ******************************************************************************/
signals:
* @param user instance of user
* @param friendList list of friends
*/
- void userDataChanged(User &user, QList<User *> &friendList); // not final
+ void userDataChanged(User &user, QList<User *> &friendList);
+
+ /*******************************************************************************
+ * DATA MEMBERS
+ ******************************************************************************/
private:
QList<QNetworkReply *> m_currentRequests; ///< List of current http requests
FacebookAuthentication m_facebookAuthentication; ///< Pointer to FacebookAuthentication
QNetworkAccessManager *m_networkManager; ///< Pointer to QNetworkAccessManager
- //QList<User *> m_friendList;
- //User m_user;
};
#endif // SITUARESERVICE_H
# -------------------------------------------------
TARGET = ../situare
TEMPLATE = app
-INCLUDEPATH += "/home/lampehe-local/Downloads/qjson/src"
+INCLUDEPATH += "/usr/include/qjson"
LIBS += "-lqjson"
RESOURCES += images.qrc
SOURCES += main.cpp \
message(install headers with: sudo apt-get install libgl-dev libglu-dev)
}
+!maemo5 {
+ message(QJson built in)
+ message(Make sure you have QJson development headers installed)
+ message(install headers with: sudo apt-get install libqjson-dev)
+}
+
+maemo5 {
+ message(QJson built in)
+ message(Make sure you have QJson development headers installed)
+ message(add: deb http://repository.maemo.org/extras-devel fremantle free non-free)
+ message(and deb-src http://repository.maemo.org/extras-devel fremantle free non-free)
+ message(to scratchbox's sources.list in /etc/apt)
+ message(run: apt-get update)
+ message(install headers with: apt-get install libqjson-dev)
+}
+
# -----------------------------------------------------------------
# Debian packetizing additions
# -----------------------------------------------------------------
const QUrl imageUrl, const QString timestamp, const bool type, const QString userId,
const QString units = 0, const double value = 0);
+ /*******************************************************************************
+ * MEMBER FUNCTIONS AND SLOTS
+ ******************************************************************************/
+
/**
* @brief Set address
*
*/
QString userId() const;
+ /*******************************************************************************
+ * DATA MEMBERS
+ ******************************************************************************/
+
private:
QString m_address; ///< placeholder for address information
QPointF m_coordinates; ///< placeholder for coordinates