summaryrefslogtreecommitdiffstats
path: root/src/session.h
diff options
context:
space:
mode:
authorSimon Rettberg2024-05-08 18:51:13 +0200
committerSimon Rettberg2024-05-08 18:51:13 +0200
commit4cf1feb0b7b2854c43aaab534a2301eca0c25b4d (patch)
treefd66caef9b5191c264c7b4e81b0f9468dae774e8 /src/session.h
parentTurn deprecated-declarations into warning (diff)
downloadvmchooser2-master.tar.gz
vmchooser2-master.tar.xz
vmchooser2-master.zip
Support CoW, and selecting between edit and copyHEADmaster
Diffstat (limited to 'src/session.h')
-rw-r--r--src/session.h8
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;