2014-02-08 22:50:24 +01:00
|
|
|
// Copyright (c) 2011-2014 The Bitcoin developers
|
2013-11-04 16:20:43 +01:00
|
|
|
// Distributed under the MIT/X11 software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
2013-04-14 11:35:37 +02:00
|
|
|
#ifndef SPLASHSCREEN_H
|
|
|
|
#define SPLASHSCREEN_H
|
|
|
|
|
|
|
|
#include <QSplashScreen>
|
|
|
|
|
|
|
|
/** class for the splashscreen with information of the running client
|
|
|
|
*/
|
|
|
|
class SplashScreen : public QSplashScreen
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2013-12-18 09:45:36 +01:00
|
|
|
explicit SplashScreen(const QPixmap &pixmap, Qt::WindowFlags f, bool isTestNet);
|
2014-01-08 08:59:24 +01:00
|
|
|
~SplashScreen();
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
/** Slot to call finish() method as it's not defined as slot */
|
|
|
|
void slotFinish(QWidget *mainWin);
|
|
|
|
|
|
|
|
private:
|
|
|
|
/** Connect core signals to splash screen */
|
|
|
|
void subscribeToCoreSignals();
|
|
|
|
/** Disconnect core signals to splash screen */
|
|
|
|
void unsubscribeFromCoreSignals();
|
2013-04-14 11:35:37 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SPLASHSCREEN_H
|