#include <QtGui/QMainWindow>
#include <QWidget>
#include <QDebug>
+#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;
/*******************************************************************************
* MEMBER FUNCTIONS AND SLOTS
******************************************************************************/
-
public slots:
/**
* @brief Public slot, which open settings dialog
/**
* @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:
- /**
- * @brief Slot to change value of m_loggedIn to true
- */
- void loginOK();
-
- /**
- * @brief Slot to check login status and exits if necessary
- */
- void loginScreenClosed();
-
+ void openLocationUpdateDialog();
/*******************************************************************************
* DATA MEMBERS
******************************************************************************/
private:
- FacebookAuthentication *m_facebookAuthenticator; ///< Instance for facebook authenticator
- QNetworkAccessManager *m_networkManager; ///< NetworkManager that is passed on to SituareService
- SituareService *m_situareService; ///< Instance of the situare server communication service
- 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
+ UpdateLocationDialog *m_locationDialog; ///< Message dialog
};
#endif // MAINWINDOW_H