Add working poi manager implementation

This commit is contained in:
AdenKoperczak 2024-10-04 16:42:54 -04:00
parent ec4387112e
commit f5d867cf1a
2 changed files with 191 additions and 13 deletions

View file

@ -2,6 +2,8 @@
#include <scwx/qt/types/poi_types.hpp>
#include <string>
#include <QObject>
namespace scwx
@ -19,6 +21,15 @@ public:
explicit POIManager();
~POIManager();
size_t poi_count();
types::PointOfInterest get_poi(size_t index);
types::PointOfInterest get_poi(const std::string& name);
void set_poi(size_t index, const types::PointOfInterest& poi);
void set_poi(const std::string& name, const types::PointOfInterest& poi);
void add_poi(const types::PointOfInterest& poi);
void move_poi(size_t from, size_t to);
static std::shared_ptr<POIManager> Instance();
private:
class Impl;