This repository has been archived by the owner on Feb 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
extension.h
76 lines (56 loc) · 1.89 KB
/
extension.h
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#ifndef EXTENSION_H
#define EXTENSION_H
#include <QSharedPointer>
#include <QString>
class Extension
{
public:
Extension() = default;
~Extension() = default;
Extension(const Extension &e);
Extension &operator=(const Extension &e);
bool load(const QString &path);
bool save();
void destroy();
const QString &title() const;
void setTitle(const QString &title);
const QString &author() const;
void setAuthor(const QString &author);
const QString &field() const;
void setField(const QString &field);
const QString &method() const;
void setMethod(const QString &method);
const QString &content() const;
void setContent(const QString &content);
const QString &createdAt() const;
void setCreatedAt(const QString &createdAt);
const QString &lastModifiedAt() const;
void setLastModifiedAt(const QString &lastModifiedAt);
const QString &uuid() const;
void setUuid(const QString &uuid);
const QString &from() const;
void setFrom(const QString &from);
const QString &shortcut() const;
void setShortcut(const QString &shortcut);
const QString &comment() const;
void setComment(const QString &comment);
void changePathToCustomExtensionDirectory();
const QString &category() const;
void setCategory(const QString &category);
private:
QString m_title;
QString m_author;
QString m_field;
QString m_method;
QString m_content;
QString m_createdAt;
QString m_lastModifiedAt;
QString m_uuid;
QString m_from;
QString m_comment;
QString m_shortcut;
QString m_category;
QString m_path;
};
typedef QSharedPointer<Extension> ExtensionPtr;
#endif // EXTENSION_H