Added dialogs to change home and work locations.
[ptas] / zouba / locations.h
diff --git a/zouba/locations.h b/zouba/locations.h
new file mode 100644 (file)
index 0000000..fe32bf4
--- /dev/null
@@ -0,0 +1,22 @@
+#ifndef LOCATIONS_H
+#define LOCATIONS_H
+
+#include "location.h"
+
+#include <QHash>
+#include <QString>
+
+class Locations
+{
+public:
+  Locations();
+  ~Locations();
+
+  bool addLocation( Location *location );
+
+  Location *location( const QString &label );
+
+private:
+  static QHash<QString,Location *> locationHash;
+};
+#endif // LOCATIONS_H