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