/
githubmirror
/
bitcoin
Обзор
Документация
Войти
/
githubmirror
/
bitcoin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/qt/networkstyle.h
35 строк
1 KB
MarcoFalke
refactor: Enforce readability-avoid-const-params-in-decls
15 янв 2026, 01:04
15 янв 2026, 01:04
fa64d84
Код
Авторство
О чём код?
// Copyright (c) 2014-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_QT_NETWORKSTYLE_H #define BITCOIN_QT_NETWORKSTYLE_H #include <util/chaintype.h> #include <QIcon> #include <QPixmap> #include <QString> /* Coin network-specific GUI style information */ class NetworkStyle { public: /** Get style associated with provided network id, or 0 if not known */ static const NetworkStyle* instantiate(ChainType networkId); const QString &getAppName() const { return appName; } const QIcon &getAppIcon() const { return appIcon; } const QIcon &getTrayAndWindowIcon() const { return trayAndWindowIcon; } const QString &getTitleAddText() const { return titleAddText; } private: NetworkStyle(const QString& appName, int iconColorHueShift, int iconColorSaturationReduction, const char* titleAddText); QString appName; QIcon appIcon; QIcon trayAndWindowIcon; QString titleAddText; }; #endif // BITCOIN_QT_NETWORKSTYLE_H