mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-01-31 15:22:18 +00:00
45 lines
923 B
C++
45 lines
923 B
C++
/*
|
|
SPDX-FileCopyrightText: 2010 Ivan Cukic <ivan.cukic(at)kde.org>
|
|
SPDX-FileCopyrightText: 2013 Martin Klapetek <mklapetek(at)kde.org>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <QBasicTimer>
|
|
#include <QGuiApplication>
|
|
#include <QObject>
|
|
|
|
class SplashWindow;
|
|
|
|
class SplashApp : public QGuiApplication
|
|
{
|
|
Q_OBJECT
|
|
Q_CLASSINFO("D-Bus Interface", "org.kde.KSplash")
|
|
|
|
public:
|
|
explicit SplashApp(int &argc, char **argv);
|
|
~SplashApp() override;
|
|
|
|
public Q_SLOTS:
|
|
Q_SCRIPTABLE void setStage(const QString &messgae);
|
|
|
|
protected:
|
|
void timerEvent(QTimerEvent *event) override;
|
|
void setStage(int stage);
|
|
|
|
private:
|
|
void setupWaylandIntegration();
|
|
int m_stage;
|
|
QList<SplashWindow *> m_windows;
|
|
bool m_testing;
|
|
bool m_window;
|
|
QStringList m_stages;
|
|
QBasicTimer m_timer;
|
|
QString m_theme;
|
|
|
|
private Q_SLOTS:
|
|
void adoptScreen(QScreen *);
|
|
};
|