mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 13:55:26 +00:00
23 lines
417 B
C++
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
|