forked from flameshot-org/flameshot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhistory.h
More file actions
39 lines (30 loc) · 747 Bytes
/
history.h
File metadata and controls
39 lines (30 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef HISTORY_H
#define HISTORY_H
#define HISTORYPIXMAP_MAX_PREVIEW_WIDTH 250
#define HISTORYPIXMAP_MAX_PREVIEW_HEIGHT 100
#include <QList>
#include <QPixmap>
#include <QString>
struct HistoryFileName
{
QString file;
QString token;
QString type;
};
class History
{
public:
History();
void save(const QPixmap&, const QString&);
const QList<QString>& history();
const QString& path();
const HistoryFileName& unpackFileName(const QString&);
const QString& packFileName(const QString&, const QString&, const QString&);
private:
QString m_historyPath;
QList<QString> m_thumbs;
// temporary variables
QString m_packedFileName;
HistoryFileName m_unpackedFileName;
};
#endif // HISTORY_H