1 #ifndef _LUMINA_DESKTOP_BOOT_SPLASHSCREEN_H 2 #define _LUMINA_DESKTOP_BOOT_SPLASHSCREEN_H 3 4 #include <QWidget> 5 #include <QLabel> 6 #include <QProgressBar> 7 #include <QPixmap> 8 #include <QPoint> 9 #include <QApplication> 10 #include <QDesktopWidget> 11 12 namespace Ui{ 13 class BootSplash; 14 }; 15 16 class BootSplash : public QWidget{ 17 Q_OBJECT 18 private: 19 Ui::BootSplash *ui; 20 21 void generateTipOfTheDay(); 22 23 public: 24 BootSplash(); ~BootSplash()25 ~BootSplash(){} 26 27 void showScreen(QString loading); //update icon, text, and progress 28 void showText(QString txt); //will only update the text, not the icon/progress 29 }; 30 31 #endif 32