C++ / build (pull_request) Failing after 15s
Lint & Format (JS/TS) / lint-format (pull_request) Successful in 28s
Python / lint-format (pull_request) Successful in 45s
Python / test (pull_request) Successful in 38s
Lint & Format (Rust) / lint-format (pull_request) Successful in 1m45s
25 lines
453 B
C++
25 lines
453 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:
|
|
[[nodiscard]] QString getConfigFilePath() const;
|
|
};
|
|
|
|
} // namespace ZShell::services
|