File indexing completed on 2024-05-12 05:37:59
0001 /* 0002 SPDX-FileCopyrightText: 2010 Ivan Cukic <ivan.cukic(at)kde.org> 0003 SPDX-FileCopyrightText: 2013 Martin Klapetek <mklapetek(at)kde.org> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #pragma once 0009 0010 #include <QBasicTimer> 0011 #include <QGuiApplication> 0012 #include <QObject> 0013 0014 class SplashWindow; 0015 0016 class SplashApp : public QGuiApplication 0017 { 0018 Q_OBJECT 0019 Q_CLASSINFO("D-Bus Interface", "org.kde.KSplash") 0020 0021 public: 0022 explicit SplashApp(int &argc, char **argv); 0023 ~SplashApp() override; 0024 0025 public Q_SLOTS: 0026 Q_SCRIPTABLE void setStage(const QString &messgae); 0027 0028 protected: 0029 void timerEvent(QTimerEvent *event) override; 0030 void setStage(int stage); 0031 0032 private: 0033 void setupWaylandIntegration(); 0034 int m_stage; 0035 QList<SplashWindow *> m_windows; 0036 bool m_testing; 0037 bool m_window; 0038 QStringList m_stages; 0039 QBasicTimer m_timer; 0040 QString m_theme; 0041 0042 private Q_SLOTS: 0043 void adoptScreen(QScreen *); 0044 };