#include "maptile.h"
#include "mapzoompanel.h"
#include "ownlocationitem.h"
+#include "friendlocationitem.h"
+#include "user/user.h"
/**
* @brief Map engine
*/
MapEngine(QObject *parent = 0);
+ ~MapEngine();
+
/*******************************************************************************
* MEMBER FUNCTIONS AND SLOTS
******************************************************************************/
*/
void viewResized(const QSize &size);
+ void receiveOwnLocation(User *user);
+ void receiveFriendLocations(QList<User *> &friendsList);
+
private:
/**
* @brief Build URL for donwloading single map tile from OpenStreetMap tile server
*/
void zoomOut();
+
+
/*******************************************************************************
* SIGNALS
******************************************************************************/
*/
void zoomLevelChanged(int newZoomLevel);
+
+
/*******************************************************************************
* DATA MEMBERS
******************************************************************************/
private:
+ //FriendLocationItem *m_friendLocation; ///< Item to show friends location
MapFetcher *m_mapFetcher; ///< Fetcher for map tiles
MapScene *m_mapScene; ///< Scene for map tiles
MapZoomPanel *m_mapZoomPanel; ///< Toolbar for zoom buttons
QRect m_viewGrid; ///< Current grid of tiles in view (includes margin)
QSize m_viewSize; ///< Current view size
int m_zoomLevel; ///< Current zoom level
+ QList<FriendLocationItem *> m_friendsLocations; ///< Location of friends
};
#endif // MAPENGINE_H