#ifndef PIXMAPGENERATOR_H #define PIXMAPGENERATOR_H #include #include class PingPixmapGenerator { private: static QMap pmCache; public: static QPixmap generatePixmap(int size, int value, int max); static void clear() { pmCache.clear(); } }; class CountryPixmapGenerator { private: static QMap pmCache; public: static QPixmap generatePixmap(int height, const QString &countryCode); static void clear() { pmCache.clear(); } }; class UserLevelPixmapGenerator { private: static QMap pmCache; public: static QPixmap generatePixmap(int height, int userLevel); static void clear() { pmCache.clear(); } }; #endif