2014-10-09 11:04:49 +02:00
|
|
|
// Copyright (c) 2014 The Bitcoin developers
|
|
|
|
// Distributed under the MIT software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
2014-11-03 16:16:40 +01:00
|
|
|
#ifndef BITCOIN_QT_NETWORKSTYLE_H
|
|
|
|
#define BITCOIN_QT_NETWORKSTYLE_H
|
2014-10-09 11:04:49 +02:00
|
|
|
|
|
|
|
#include <QIcon>
|
|
|
|
#include <QPixmap>
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
/* Coin network-specific GUI style information */
|
|
|
|
class NetworkStyle
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
/** Get style associated with provided BIP70 network id, or 0 if not known */
|
|
|
|
static const NetworkStyle *instantiate(const QString &networkId);
|
|
|
|
|
|
|
|
const QString &getAppName() const { return appName; }
|
2014-11-14 12:58:30 +01:00
|
|
|
const QIcon &getAppIcon() const { return appIcon; }
|
2014-10-09 11:04:49 +02:00
|
|
|
const QString &getTitleAddText() const { return titleAddText; }
|
|
|
|
|
|
|
|
private:
|
2014-11-06 16:28:29 +01:00
|
|
|
NetworkStyle(const QString &appName, const int iconColorHueShift, const int iconColorSaturationReduction, const char *titleAddText);
|
2014-10-09 11:04:49 +02:00
|
|
|
|
|
|
|
QString appName;
|
2014-11-14 12:58:30 +01:00
|
|
|
QIcon appIcon;
|
2014-10-09 11:04:49 +02:00
|
|
|
QString titleAddText;
|
|
|
|
};
|
|
|
|
|
2014-11-03 16:16:40 +01:00
|
|
|
#endif // BITCOIN_QT_NETWORKSTYLE_H
|