forked from Sneeds-Feed-and-Seed/sneedacity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProjectFSCK.h
32 lines (22 loc) · 1.03 KB
/
ProjectFSCK.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
/**********************************************************************
Sneedacity: A Digital Audio Editor
ProjectFSCK.h
A function that performs consistency checks on the tree of block files
Paul Licameli split this out of DirManager.h
**********************************************************************/
#ifndef __SNEEDACITY_PROJECT_FSCK__
#define __SNEEDACITY_PROJECT_FSCK__
class DirManager;
enum : unsigned {
FSCKstatus_CLOSE_REQ = 0x1,
FSCKstatus_CHANGED = 0x2,
FSCKstatus_SAVE_AUP = 0x4, // used in combination with FSCKstatus_CHANGED
};
// Check the project for errors and possibly prompt user
// bForceError: Always show log error alert even if no errors are found here.
// Important when you know that there are already errors in the log.
// bAutoRecoverMode: Do not show any option dialogs for how to deal with errors found here.
// Too complicated during auto-recover. Just correct problems the "safest" way.
int ProjectFSCK(
DirManager &dm, const bool bForceError, const bool bAutoRecoverMode);
#endif