Raven Core  3.0.0
P2P Digital Currency
networkstyle.h
Go to the documentation of this file.
1 // Copyright (c) 2014 The Bitcoin Core developers
2 // Copyright (c) 2017-2019 The Raven Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef RAVEN_QT_NETWORKSTYLE_H
7 #define RAVEN_QT_NETWORKSTYLE_H
8 
9 #include <QIcon>
10 #include <QPixmap>
11 #include <QString>
12 
13 /* Coin network-specific GUI style information */
15 {
16 public:
18  static const NetworkStyle *instantiate(const QString &networkId);
19 
20  const QString &getAppName() const { return appName; }
21  const QIcon &getAppIcon() const { return appIcon; }
22  const QIcon &getSplashIcon() const { return splashIcon; }
23  const QIcon &getTrayAndWindowIcon() const { return trayAndWindowIcon; }
24  const QString &getTitleAddText() const { return titleAddText; }
25 
26 private:
27  NetworkStyle(const QString &appName, const int iconColorHueShift, const int iconColorSaturationReduction, const char *titleAddText);
28 
29  QString appName;
30  QIcon appIcon;
31  QIcon splashIcon;
33  QString titleAddText;
34 };
35 
36 #endif // RAVEN_QT_NETWORKSTYLE_H
const QString & getAppName() const
Definition: networkstyle.h:20
const QIcon & getAppIcon() const
Definition: networkstyle.h:21
const QString & getTitleAddText() const
Definition: networkstyle.h:24
const int iconColorHueShift
QIcon trayAndWindowIcon
Definition: networkstyle.h:32
const QIcon & getSplashIcon() const
Definition: networkstyle.h:22
const char * networkId
QString titleAddText
Definition: networkstyle.h:33
const QIcon & getTrayAndWindowIcon() const
Definition: networkstyle.h:23
QString appName
Definition: networkstyle.h:29
const int iconColorSaturationReduction
NetworkStyle(const QString &appName, const int iconColorHueShift, const int iconColorSaturationReduction, const char *titleAddText)
QIcon splashIcon
Definition: networkstyle.h:31
static const NetworkStyle * instantiate(const QString &networkId)
Get style associated with provided BIP70 network id, or 0 if not known.