Files
neochat/src/windowcontroller.h
Nicolas Fella 7818747e45 Also handle notification startupId on X11
On X11 we can get a startupId/token from the notification too, so don't waste it
2023-01-14 12:51:15 +00:00

27 lines
501 B
C++

// SPDX-FileCopyrightText: 2022 Nicolas Fella <nicolas.fella@gmx.de>
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include <QObject>
#include <QWindow>
class WindowController : public QObject
{
Q_OBJECT
public:
static WindowController &instance();
void setWindow(QWindow *window);
void restoreGeometry();
void saveGeometry();
void showAndRaiseWindow(const QString &startupId);
private:
WindowController() = default;
QWindow *m_window = nullptr;
};