Initial placefile manager implementation

This commit is contained in:
Dan Paulat 2023-07-18 23:16:50 -05:00
parent 207cc1e302
commit f70de26a2d
3 changed files with 177 additions and 2 deletions

View file

@ -0,0 +1,38 @@
#pragma once
#include <memory>
#include <string>
#include <QObject>
namespace scwx
{
namespace qt
{
namespace manager
{
class PlacefileManager : public QObject
{
Q_OBJECT
public:
explicit PlacefileManager();
~PlacefileManager();
void LoadFile(const std::string& filename);
static std::shared_ptr<PlacefileManager> Instance();
signals:
void PlacefileEnabled(const std::string& name, bool enabled);
void PlacefileUpdated(const std::string& name);
private:
class Impl;
std::unique_ptr<Impl> p;
};
} // namespace manager
} // namespace qt
} // namespace scwx