cutter/src/common/IOModesController.h

23 lines
417 B
C
Raw Normal View History

#ifndef IOMODESCONTROLLER_H
#define IOMODESCONTROLLER_H
#include "core/Cutter.h"
class IOModesController : public QObject
{
Q_OBJECT
public:
enum class Mode { READ_ONLY, CACHE, WRITE };
bool prepareForWriting();
bool canWrite();
bool allChangesComitted();
Mode getIOMode();
void setIOMode(Mode mode);
public slots:
bool askCommitUnsavedChanges();
};
#endif // IOMODESCONTROLLER_H