You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
923 B
44 lines
923 B
/* |
|
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 *); |
|
};
|
|
|