#ifndef SYMBOLUSAGEMANAGER_H #define SYMBOLUSAGEMANAGER_H #include #include #include #include struct SymbolUsage { QString fullName; int count; }; using PSymbolUsage = std::shared_ptr; class SymbolUsageManager : public QObject { Q_OBJECT public: explicit SymbolUsageManager(QObject *parent = nullptr); void load(); void save(); void reset(); PSymbolUsage findUsage(const QString& fullName) const; void updateUsage(const QString& symbol, int count); private: QHash mUsages; }; using PSymbolUsageManager = std::shared_ptr; #endif // SYMBOLUSAGEMANAGER_H