#include <QtGui/QMainWindow>
#include <QWidget>
#include <QDebug>
-//#include "facebookservice/facebookauthentication.h"
+#include <QObject>
+#include "facebookservice/facebookauthentication.h"
+#include "situareservice/situareservice.h"
+#include <QNetworkAccessManager>
+#include "engine/engine.h"
+#include "listviewscreen.h"
+#include "mapviewscreen.h"
+#include "updatelocation/updatelocationdialog.h"
class QLabel;
class QStackedWidget;
*/
~MainWindow();
+/*******************************************************************************
+ * MEMBER FUNCTIONS AND SLOTS
+ ******************************************************************************/
public slots:
/**
+ * @brief Public slot, which open settings dialog
+ */
+ void openSettingsDialog();
+
+ /**
* @brief Public slot, which initiates toListViewAct action to switch view
*/
void toListView();
/**
* @brief Method used to switch active view.
*
- * @param nextIndex 0 for listview, 1 for mapview
+ * @paraDaily scrum 2010-03-26m nextIndex 0 for listview, 1 for mapview
*/
void switchView(int);
+private slots:
+ void openLocationUpdateDialog();
+/*******************************************************************************
+ * DATA MEMBERS
+ ******************************************************************************/
+
private:
- bool m_loggedIn; ///< Boolean value to indicate whether login has been successfull or not
+ SituareEngine *m_situareEngine;
+
+ ListViewScreen *m_listViewScreen;
+ MapViewScreen *m_mapViewScreen;
QStackedWidget *m_situareViews; ///< Stacked widget that hold both view widgets
QAction *m_toListViewAct; ///< Action to trigger switch to list view
QAction *m_toMapViewAct; ///< Action to trigger switch to map view
+ QAction *m_toSettingsAct; ///< Action to trigger switch to settings dialog
QMenu *m_viewMenu; ///< Object that hold the view menu items
- QAction *m_openUpdateDialog; ///< DUMMY item used to launch location update dialog
-private slots:
- /**
- * @brief Slot to change value of m_loggedIn to true
- */
- void loginOK();
-
- /**
- * @brief Slot to check login status and exits if necessary
- */
- void loginScreenClosed();
-
- /**
- * @brief DUMMY slot to open update location dialog
- */
- void openUpdateDialog();
+ UpdateLocationDialog *m_locationDialog; ///< Message dialog
};
#endif // MAINWINDOW_H