Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
networkstyle.h
Go to the documentation of this file.
1// Copyright (c) 2014-present 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 <util/chaintype.h>
9
10#include <QIcon>
11#include <QPixmap>
12#include <QString>
13
14/* Coin network-specific GUI style information */
16{
17public:
20
21 const QString &getAppName() const { return appName; }
22 const QIcon &getAppIcon() const { return appIcon; }
23 const QIcon &getTrayAndWindowIcon() const { return trayAndWindowIcon; }
24 const QString &getTitleAddText() const { return titleAddText; }
25
26private:
28
29 QString appName;
30 QIcon appIcon;
32 QString titleAddText;
33};
34
35#endif // BITCOIN_QT_NETWORKSTYLE_H
ChainType
Definition chaintype.h:11
const QIcon & getTrayAndWindowIcon() const
QString appName
const QIcon & getAppIcon() const
QIcon trayAndWindowIcon
static const NetworkStyle * instantiate(ChainType networkId)
Get style associated with provided network id, or 0 if not known.
NetworkStyle(const QString &appName, int iconColorHueShift, int iconColorSaturationReduction, const char *titleAddText)
QString titleAddText
const QString & getAppName() const
const QString & getTitleAddText() const
const int iconColorHueShift
const ChainType networkId
const char * appName
const int iconColorSaturationReduction