#ifndef NOTECOUNTDATASTORE_H #define NOTECOUNTDATASTORE_H #include #include class NoteCountDataStore { private: static NoteCountDataStore* instance; static bool instanced; QMap data; int spendableNotesCount; QString addressWithMaxValue; int maxValue; // HinzugefĆ¼gt, um den maximalen Wert zu speichern NoteCountDataStore() : spendableNotesCount(0), maxValue(0) {} // Initialisiere maxValue public: static NoteCountDataStore* getInstance(); void clear(); void setData(const QString& key, const QString& value); QString getData(const QString& key); QString dump(); void setSpendableNotesCount(int count); int getSpendableNotesCount() const; void setAddressWithMaxValue(const QString& address, int value); QString getAddressWithMaxValue() const; ~NoteCountDataStore() { instanced = false; instance = nullptr; } }; #endif // NOTECOUNTDATASTORE_H