cutter/src/common/IOModesController.h
2020-05-23 14:41:12 +03:00

23 lines
417 B
C++

#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