summaryrefslogtreecommitdiffstats
path: root/juk/splashscreen.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commite2de64d6f1beb9e492daf5b886e19933c1fa41dd (patch)
tree9047cf9e6b5c43878d5bf82660adae77ceee097a /juk/splashscreen.h
downloadtdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.tar.gz
tdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'juk/splashscreen.h')
-rw-r--r--juk/splashscreen.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/juk/splashscreen.h b/juk/splashscreen.h
new file mode 100644
index 00000000..407ed509
--- /dev/null
+++ b/juk/splashscreen.h
@@ -0,0 +1,52 @@
+/***************************************************************************
+ begin : Sun Dec 8 2002
+ copyright : (C) 2002 - 2004 by Scott Wheeler
+ email : wheeler@kde.org
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef SPLASHSCREEN_H
+#define SPLASHSCREEN_H
+
+#include <qlabel.h>
+
+/**
+ * Well, all of this session restoration sure is fun, but it's starting to take
+ * a while, especially say, if you're building KDE and indexing your file system
+ * in the background. ;-) So, despite my general hate of splashscreens I
+ * thought on appropriate here.
+ *
+ * As in other places, this is a singleton. That makes it relatively easy to
+ * handle the updates from whichever class seems appropriate through static
+ * methods.
+ */
+
+class SplashScreen : public QLabel
+{
+public:
+ static SplashScreen *instance();
+ static void finishedLoading();
+ static void increment();
+ static void update();
+
+protected:
+ SplashScreen();
+ virtual ~SplashScreen();
+
+private:
+ void processEvents();
+
+ static SplashScreen *splash;
+ static bool done;
+ static int count;
+};
+
+#endif