diff options
author | Simon Rettberg | 2017-03-31 12:24:01 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-03-31 12:24:01 +0200 |
commit | aeffac3139c13270c97d1ef85576ac1a7f7902a6 (patch) | |
tree | 8334af7adafc7279ff9f6631f64548bd1dd5eb73 /src/vsession.h | |
parent | Implement --pvs option (diff) | |
download | vmchooser2-aeffac3139c13270c97d1ef85576ac1a7f7902a6.tar.gz vmchooser2-aeffac3139c13270c97d1ef85576ac1a7f7902a6.tar.xz vmchooser2-aeffac3139c13270c97d1ef85576ac1a7f7902a6.zip |
Add support for <can_edit> XML entry
Diffstat (limited to 'src/vsession.h')
-rw-r--r-- | src/vsession.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vsession.h b/src/vsession.h index 2b00206..2ded3ae 100644 --- a/src/vsession.h +++ b/src/vsession.h @@ -23,6 +23,7 @@ class VSession : public Session { bool isActive() const; bool isLocked() const; bool isValid() const; + int priority() const; bool isTemplate() const { @@ -33,6 +34,10 @@ class VSession : public Session { return getAttribute("for_location").toInt() != 0; } + bool canEdit() const { + return getAttribute("allow_edit").toInt() != 0; + } + QString shortDescription() const { return getAttribute("short_description"); } |