Commit description: Created basic for engine class. Loads from
authorKaj Wallin <kaj.wallin@ixonos.com>
Thu, 22 Apr 2010 12:57:56 +0000 (15:57 +0300)
committerKaj Wallin <kaj.wallin@ixonos.com>
Thu, 22 Apr 2010 12:57:56 +0000 (15:57 +0300)
MainWindow

Reviewed by:

src/engine/engine.cpp [new file with mode: 0644]
src/engine/engine.h [new file with mode: 0644]
src/src.pro
src/ui/mainwindow.cpp

diff --git a/src/engine/engine.cpp b/src/engine/engine.cpp
new file mode 100644 (file)
index 0000000..a7a577c
--- /dev/null
@@ -0,0 +1,28 @@
+ /*
+    Situare - A location system for Facebook
+    Copyright (C) 2010  Ixonos Plc. Authors:
+
+        Kaj Wallin - kaj.wallin@ixonos.com
+
+    Situare is free software; you can redistribute it and/or
+    modify it under the terms of the GNU General Public License
+    version 2 as published by the Free Software Foundation.
+
+    Situare is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with Situare; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
+    USA.
+ */
+
+#include "engine.h"
+
+SituareEngine::SituareEngine(QWidget *parent)
+{
+    qDebug() << __PRETTY_FUNCTION__;
+    qDebug() << "WRUUUM! WRUUM!";
+}
diff --git a/src/engine/engine.h b/src/engine/engine.h
new file mode 100644 (file)
index 0000000..ab4206d
--- /dev/null
@@ -0,0 +1,48 @@
+ /*
+    Situare - A location system for Facebook
+    Copyright (C) 2010  Ixonos Plc. Authors:
+
+        Kaj Wallin - kaj.wallin@ixonos.com
+
+    Situare is free software; you can redistribute it and/or
+    modify it under the terms of the GNU General Public License
+    version 2 as published by the Free Software Foundation.
+
+    Situare is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with Situare; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
+    USA.
+ */
+
+
+#ifndef ENGINE_H
+#include <QWidget>
+#include <QtDebug>
+
+/**
+* @brief Engine class for Situare Application
+*
+* This class handles all the underlaying login of the Situare
+* application.
+*
+* @class SituareEngine engine.h "engine/engine.h"
+*/
+class SituareEngine : public QWidget
+{
+public:
+    /**
+    * @brief Constructor
+    *
+    * @param parent
+    */
+    SituareEngine(QWidget *parent = 0);
+};
+
+#define ENGINE_H
+
+#endif // ENGINE_H
index d0ad06e..45ce742 100644 (file)
@@ -20,7 +20,8 @@ SOURCES += main.cpp \
     ui/pixmap.cpp \
     ui/infotab.cpp \
     ui/updatelocation/updatelocationdialog.cpp \
-    ui/updatelocation/texteditautoresizer.cpp
+    ui/updatelocation/texteditautoresizer.cpp \
+    engine/engine.cpp
 HEADERS += ui/mainwindow.h \
     ui/mapviewscreen.h \
     ui/listviewscreen.h \
@@ -40,7 +41,8 @@ HEADERS += ui/mainwindow.h \
     facebookservice/facebookcredentials.h \
     facebookservice/facebookauthentication.h \
     facebookservice/facebookcommon.h \
-    ui/engine.h
+    ui/engine.h \
+    engine/engine.h
 QT += network \
     webkit
 
index fe270bc..d12e69d 100644 (file)
@@ -26,6 +26,7 @@
 #include "mapviewscreen.h"
 #include "facebookservice/facebookauthentication.h"
 #include "situareservice/situareservice.h"
+#include "engine/engine.h"
 
 MainWindow::MainWindow(QWidget *parent)
     : QMainWindow(parent)
@@ -45,6 +46,8 @@ MainWindow::MainWindow(QWidget *parent)
 
     m_networkManager = new QNetworkAccessManager;
     m_situareService = new SituareService(this,m_networkManager);
+
+    QWidget *lasse = new SituareEngine(this);
 }
 
 MainWindow::~MainWindow()