Added HttpClient class skeleton.
authortiina.kivilinna-korhola@windowslive.com <tkk@tkk-laptop.(none)>
Tue, 9 Mar 2010 11:00:45 +0000 (13:00 +0200)
committertiina.kivilinna-korhola@windowslive.com <tkk@tkk-laptop.(none)>
Tue, 9 Mar 2010 11:00:45 +0000 (13:00 +0200)
Client/UI.pro
Client/httpclient.cpp [new file with mode: 0644]
Client/httpclient.h [new file with mode: 0644]

index 924d9d7..763244b 100644 (file)
@@ -1,11 +1,9 @@
 # -------------------------------------------------
 # Project created by QtCreator 2010-02-23T14:17:30
 # -------------------------------------------------
 # 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
 # -------------------------------------------------
 # @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
 QT += network \
     xml
 TARGET = UI
@@ -21,8 +19,8 @@ SOURCES += main.cpp \
     registration.cpp \
     measures.cpp \
     xmlwriter.cpp \
     registration.cpp \
     measures.cpp \
     xmlwriter.cpp \
-    xmlreader.cpp
-
+    xmlreader.cpp \
+    httpclient.cpp
 HEADERS += carmainwindow.h \
     resultdialog.h \
     stringlistmodel.h \
 HEADERS += carmainwindow.h \
     resultdialog.h \
     stringlistmodel.h \
@@ -33,8 +31,8 @@ HEADERS += carmainwindow.h \
     registration.h \
     measures.h \
     xmlwriter.h \
     registration.h \
     measures.h \
     xmlwriter.h \
-    xmlreader.h
-
+    xmlreader.h \
+    httpclient.h
 FORMS += carmainwindow.ui \
     resultdialog.ui \
     measuredialog.ui \
 FORMS += carmainwindow.ui \
     resultdialog.ui \
     measuredialog.ui \
diff --git a/Client/httpclient.cpp b/Client/httpclient.cpp
new file mode 100644 (file)
index 0000000..79231a1
--- /dev/null
@@ -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 (file)
index 0000000..0ade96c
--- /dev/null
@@ -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 <QNetworkAccessManager>
+#include <QNetworkRequest>
+#include <QNetworkReply>
+
+
+class HttpClient : public QObject
+{
+    Q_OBJECT
+public:
+    HttpClient();
+    ~HttpClient();
+
+private:
+    QNetworkAccessManager *netManager;
+
+public slots:
+
+};
+
+#endif // HTTPCLIENT_H