#ifndef HISTORY_H #define HISTORY_H #define HISTORY_MAX_SIZE 25 #define HISTORYPIXMAP_MAX_PREVIEW_WIDTH 160 #define HISTORYPIXMAP_MAX_PREVIEW_HEIGHT 90 #include #include #include struct HISTORY_FILE_NAME { QString file; QString token; QString type; }; class History { public: History(); void save(const QPixmap&, const QString&); const QList& history(); const QString& path(); const HISTORY_FILE_NAME& unpackFileName(const QString&); const QString& packFileName(const QString&, const QString&, const QString&); private: QString m_historyPath; QList m_thumbs; // temporary variables QString m_packedFileName; HISTORY_FILE_NAME m_unpackedFileName; }; #endif // HISTORY_H