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