From: tiina.kivilinna-korhola@windowslive.com Date: Tue, 9 Mar 2010 11:00:45 +0000 (+0200) Subject: Added HttpClient class skeleton. X-Git-Tag: v0.1~69^2 X-Git-Url: http://git.maemo.org/git/?p=speedfreak;a=commitdiff_plain;h=172164935645ee70f7221d6f956dc09862d8e36d;hp=a7967f2ca03a3ab17a76e021813bed2fe4f32db1 Added HttpClient class skeleton. --- diff --git a/Client/UI.pro b/Client/UI.pro index 924d9d7..763244b 100644 --- a/Client/UI.pro +++ b/Client/UI.pro @@ -1,11 +1,9 @@ # ------------------------------------------------- # Project created by QtCreator 2010-02-23T14:17:30 -# # @author Speed Freak team # @copyright (c) 2010 Speed Freak team # @license http://opensource.org/licenses/gpl-license.php GNU Public License # ------------------------------------------------- - QT += network \ xml TARGET = UI @@ -21,8 +19,8 @@ SOURCES += main.cpp \ registration.cpp \ measures.cpp \ xmlwriter.cpp \ - xmlreader.cpp - + xmlreader.cpp \ + httpclient.cpp HEADERS += carmainwindow.h \ resultdialog.h \ stringlistmodel.h \ @@ -33,8 +31,8 @@ HEADERS += carmainwindow.h \ registration.h \ measures.h \ xmlwriter.h \ - xmlreader.h - + xmlreader.h \ + httpclient.h FORMS += carmainwindow.ui \ resultdialog.ui \ measuredialog.ui \ diff --git a/Client/httpclient.cpp b/Client/httpclient.cpp new file mode 100644 index 0000000..79231a1 --- /dev/null +++ b/Client/httpclient.cpp @@ -0,0 +1,18 @@ +#include "httpclient.h" + +/** + *@brief Constructor, connects object to GUI + *@param Pointer to carmainwindow, which is temporarily used during development + */ +HttpClient::HttpClient() +{ + netManager = new QNetworkAccessManager(); +} + +/** + *@brief Destructor + */ +HttpClient::~HttpClient() +{ + +} diff --git a/Client/httpclient.h b/Client/httpclient.h new file mode 100644 index 0000000..0ade96c --- /dev/null +++ b/Client/httpclient.h @@ -0,0 +1,31 @@ +/* + * Http client Connects application to server. + * + * @author Tiina Kivilinna-Korhola + * @copyright (c) 2010 Speed Freak team + * license http://opensource.org/licenses/gpl-license.php GNU Public License + */ + +#ifndef HTTPCLIENT_H +#define HTTPCLIENT_H + +#include +#include +#include + + +class HttpClient : public QObject +{ + Q_OBJECT +public: + HttpClient(); + ~HttpClient(); + +private: + QNetworkAccessManager *netManager; + +public slots: + +}; + +#endif // HTTPCLIENT_H