Changeset View
Changeset View
Standalone View
Standalone View
src/qt/networkstyle.h
// Copyright (c) 2014 The Bitcoin Core developers | // Copyright (c) 2014 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_QT_NETWORKSTYLE_H | #ifndef BITCOIN_QT_NETWORKSTYLE_H | ||||
#define BITCOIN_QT_NETWORKSTYLE_H | #define BITCOIN_QT_NETWORKSTYLE_H | ||||
#include <QIcon> | #include <QIcon> | ||||
#include <QPixmap> | #include <QPixmap> | ||||
#include <QString> | #include <QString> | ||||
/* Coin network-specific GUI style information */ | /* Coin network-specific GUI style information */ | ||||
class NetworkStyle { | class NetworkStyle { | ||||
public: | public: | ||||
/** Get style associated with provided BIP70 network id, or 0 if not known | /** | ||||
* Get style associated with provided BIP70 network id, or 0 if not known. | |||||
*/ | */ | ||||
static const NetworkStyle *instantiate(const QString &networkId); | static const NetworkStyle *instantiate(const std::string &networkId); | ||||
const QString &getAppName() const { return appName; } | const QString &getAppName() const { return appName; } | ||||
const QIcon &getAppIcon() const { return appIcon; } | const QIcon &getAppIcon() const { return appIcon; } | ||||
const QIcon &getTrayAndWindowIcon() const { return trayAndWindowIcon; } | const QIcon &getTrayAndWindowIcon() const { return trayAndWindowIcon; } | ||||
const QString &getTitleAddText() const { return titleAddText; } | const QString &getTitleAddText() const { return titleAddText; } | ||||
private: | private: | ||||
NetworkStyle(const QString &appName, const int iconColorHueShift, | NetworkStyle(const QString &appName, const int iconColorHueShift, | ||||
Show All 10 Lines |