11 class Locations: public QObject
16 static Locations *GetInstance();
17 //static void destroyLocations();
19 bool addEditLocation(Location *location);
20 bool removeLocation(Location *location);
22 bool increaseLocationIndex(const QString &label);
23 bool lowerLocationIndex(const QString &label);
25 Location *getLocation(const QString &label) const;
26 Location *getLocation(const int&) const;
27 Location *getGpsLocation() const;
30 //const QHash<QString, Location *>& getLocations() const;
33 void locationsChanged();
38 Locations(const Locations&);
39 void operator=(const Locations&);
41 void restoreLocations();
42 void saveLocation(Location *location);
43 bool findLabel(const int &index, QString &label) const;
44 void changeIndex(const QString &label, const int &index, bool signal = true);
46 QHash<QString, Location*> m_locationStorage;
47 QList<QString> m_indexStorage;
48 Location* m_gpsLocation;
50 static Locations *m_instance;