File indexing completed on 2025-02-23 04:35:15
0001 // SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com> 0002 // SPDX-License-Identifier: GPL-3.0-or-later 0003 0004 #pragma once 0005 0006 #include <QObject> 0007 #include <QQuickWindow> 0008 #include <QtQml> 0009 0010 class Identity; 0011 class Post; 0012 0013 class WindowController : public QObject 0014 { 0015 Q_OBJECT 0016 QML_ELEMENT 0017 QML_SINGLETON 0018 0019 public: 0020 void setWindow(QQuickWindow *window); 0021 0022 void restoreGeometry(); 0023 Q_INVOKABLE void saveGeometry(); 0024 0025 private: 0026 QQuickWindow *m_window = nullptr; 0027 };