Loading...
Searching...
No Matches
DocumentBackups.hpp
1#pragma once
2#include <QByteArray>
3#include <QString>
4
5#include <score_lib_base_export.h>
6
7#include <utility>
8#include <vector>
9
10namespace score
11{
12
14{
15 QString filePath;
16 QString docPath;
17 QString commandsPath;
18 QByteArray doc;
19 QByteArray commands;
23};
24
38struct SCORE_LIB_BASE_EXPORT DocumentBackups
39{
40 // Check if there are available backup files.
41 static bool canRestoreDocuments();
42
43 // First is the data, second is the commands.
44 static std::vector<RestorableDocument> restorableDocuments();
45
46 // Removes all the on-disk files that contains document backups.
47 static void clear();
48};
49}
Base toolkit upon which the software is built.
Definition Application.cpp:83
Manages the list of documents that can be restored after a crash.
Definition DocumentBackups.hpp:39
Definition DocumentBackups.hpp:14
QString modelFileName
Definition DocumentBackups.hpp:22