blob: 8c94ff2f002d2b5915a6b91e78c2ceeed97f62f6 (
plain)
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
|
// Copyright (C) 2016 Nicolas Arnaud-Cormos
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include <QList>
#include <QString>
namespace Macros::Internal {
class MacroEvent;
class Macro
{
public:
Macro();
Macro(const Macro& other);
~Macro();
Macro& operator=(const Macro& other);
bool load();
bool loadHeader(const QString &fileName);
bool save(const QString &fileName);
const QString &description() const;
void setDescription(const QString &text);
const QString &version() const;
const QString &fileName() const;
QString displayName() const;
void append(const MacroEvent &event);
const QList<MacroEvent> &events() const;
bool isWritable() const;
private:
class MacroPrivate;
MacroPrivate* d;
};
} // namespace Macros::Internal
|