diff options
author | Alex Zolotarev <deathbaba@gmail.com> | 2011-10-21 19:39:00 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:26:32 +0300 |
commit | 946bf7b727cce9dbc8a0c1b0f7f7ddec2d2d16cb (patch) | |
tree | 1750b08be8882e1d656ca42253085b3fc7909230 /qt/mainwindow.hpp | |
parent | 43a0bd87f5856a303d552ca895dd0fea72a1ecda (diff) |
[qt][ios] Refactored location manager
Diffstat (limited to 'qt/mainwindow.hpp')
-rw-r--r-- | qt/mainwindow.hpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/qt/mainwindow.hpp b/qt/mainwindow.hpp index a2569fcc86..dd1b9460c9 100644 --- a/qt/mainwindow.hpp +++ b/qt/mainwindow.hpp @@ -2,6 +2,10 @@ #include "../storage/storage.hpp" +#include "../platform/location_service.hpp" + +#include "../std/scoped_ptr.hpp" + #include <QtGui/QMainWindow> class QDockWidget; @@ -13,7 +17,7 @@ namespace qt class DrawWidget; class UpdateDialog; - class MainWindow : public QMainWindow + class MainWindow : public QMainWindow, location::LocationObserver { QAction * m_pMyPositionAction; QAction * m_pSearchAction; @@ -27,20 +31,22 @@ namespace qt storage::Storage m_storage; + scoped_ptr<location::LocationService> m_locationService; + Q_OBJECT public: MainWindow(); virtual ~MainWindow(); + virtual void OnLocationStatusChanged(location::TLocationStatus newStatus); + virtual void OnGpsUpdated(location::GpsInfo const & info); + protected: string GetIniFile(); void SaveState(); void LoadState(); - private: - void OnLocationFound(); - protected: #ifndef NO_DOWNLOADER void CreateClassifPanel(); |