25 lines
430 B
C++
25 lines
430 B
C++
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <QVariantMap>
|
|
#include <QQmlEngine>
|
|
|
|
namespace ZShell::services {
|
|
|
|
class DesktopStateManager : public QObject {
|
|
Q_OBJECT
|
|
QML_ELEMENT
|
|
QML_SINGLETON
|
|
|
|
public:
|
|
explicit DesktopStateManager(QObject *parent = nullptr);
|
|
|
|
Q_INVOKABLE void saveLayout(const QVariantMap& layout);
|
|
Q_INVOKABLE QVariantMap getLayout();
|
|
|
|
private:
|
|
QString getConfigFilePath() const;
|
|
};
|
|
|
|
} // namespace ZShell::services
|