status-desktop/src-cpp/app/include/singleton.h

22 lines
340 B
C
Raw Normal View History

2022-01-06 19:29:19 +00:00
#pragma once
#include <QQmlApplicationEngine>
namespace Global
{
class Singleton
{
public:
// FIXME: should return reference
QQmlApplicationEngine* engine();
// FIXME: should return reference
static Singleton* instance();
2022-01-06 19:29:19 +00:00
private:
Singleton() = default;
QQmlApplicationEngine m_engine;
2022-01-06 19:29:19 +00:00
};
} // namespace Global