diff options
author | Simon Rettberg | 2024-05-08 18:51:13 +0200 |
---|---|---|
committer | Simon Rettberg | 2024-05-08 18:51:13 +0200 |
commit | 4cf1feb0b7b2854c43aaab534a2301eca0c25b4d (patch) | |
tree | fd66caef9b5191c264c7b4e81b0f9468dae774e8 /src/session.h | |
parent | Turn deprecated-declarations into warning (diff) | |
download | vmchooser2-master.tar.gz vmchooser2-master.tar.xz vmchooser2-master.zip |
Diffstat (limited to 'src/session.h')
-rw-r--r-- | src/session.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/session.h b/src/session.h index 675aada..e926af8 100644 --- a/src/session.h +++ b/src/session.h @@ -17,6 +17,12 @@ enum SectionType { class Session { public: + + enum EditType { + EDIT_TYPE_EDIT = 1, + EDIT_TYPE_COPY = 2, + }; + virtual ~Session() {} virtual bool isActive() const = 0; @@ -46,6 +52,8 @@ class Session { virtual int type() const = 0; virtual SectionType section() const = 0; virtual bool needsVtx() const { return false; } + virtual bool canEdit() const { return false; } + virtual int editModeTypes() const { return 0; } virtual QVariant foregroundRole() const { return QVariant(); } virtual bool operator<(const Session& s) const = 0; |