File indexing completed on 2024-04-28 17:05:12

0001 // SPDX-FileCopyrightText: 2022 Felipe Kinoshita <kinofhek@gmail.com>
0002 // SPDX-License-Identifier: LGPL-2.1-or-later
0003 
0004 #pragma once
0005 
0006 #include <QObject>
0007 #include <QQmlEngine>
0008 #include <QQuickWindow>
0009 
0010 class App : public QObject
0011 {
0012     Q_OBJECT
0013     QML_ELEMENT
0014     QML_SINGLETON
0015 
0016 public:
0017     explicit App(QObject* parent = nullptr);
0018     ~App() override;
0019 
0020     Q_INVOKABLE void restoreWindowGeometry(QQuickWindow* window);
0021     Q_INVOKABLE void saveWindowGeometry(QQuickWindow* window);
0022 
0023 private:
0024 };