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 
10 namespace score
11 {
12 
14 {
15  QString filePath;
16  QString docPath;
17  QString commandsPath;
18  QByteArray doc;
19  QByteArray commands;
20 };
21 
35 struct SCORE_LIB_BASE_EXPORT DocumentBackups
36 {
37  // Check if there are available backup files.
38  static bool canRestoreDocuments();
39 
40  // First is the data, second is the commands.
41  static std::vector<RestorableDocument> restorableDocuments();
42 
43  // Removes all the on-disk files that contains document backups.
44  static void clear();
45 };
46 }
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Manages the list of documents that can be restored after a crash.
Definition: DocumentBackups.hpp:36
Definition: DocumentBackups.hpp:14