// SPDX-License-Identifier: BSD-3-Clause // Copyright (c) 2020-2021, The Monero Project. #ifndef FEATHER_APPDATA_H #define FEATHER_APPDATA_H #include #include #include #include "prices.h" #include "TxFiatHistory.h" #include "RestoreHeightLookup.h" class AppData : public QObject { Q_OBJECT public: explicit AppData(QObject *parent); static AppData* instance(); Prices prices; TxFiatHistory *txFiatHistory; QMap heights; QMap restoreHeights; private slots: void onBlockHeightsReceived(int mainnet, int stagenet); private: void initRestoreHeights(); static QPointer m_instance; }; inline AppData* appData() { return AppData::instance(); } #endif //FEATHER_APPDATA_H