diff options
author | Simon Rettberg | 2016-01-20 16:43:34 +0100 |
---|---|---|
committer | Simon Rettberg | 2016-01-20 16:43:34 +0100 |
commit | 414c109d650a1014e7b84dfb66a00df420d67c97 (patch) | |
tree | ede0c5404aa408cd2bbb626312ed46383c7b13b6 /src/session.h | |
parent | Re-introduce tree structure: Allow server-defined sections (diff) | |
download | vmchooser2-414c109d650a1014e7b84dfb66a00df420d67c97.tar.gz vmchooser2-414c109d650a1014e7b84dfb66a00df420d67c97.tar.xz vmchooser2-414c109d650a1014e7b84dfb66a00df420d67c97.zip |
Remodel section handling: Use constants
Diffstat (limited to 'src/session.h')
-rw-r--r-- | src/session.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/session.h b/src/session.h index 8e41120..d88e766 100644 --- a/src/session.h +++ b/src/session.h @@ -4,6 +4,14 @@ class QString; class QIcon; +enum SectionType { + SECTION_NULL, + SECTION_XSESSION, + SECTION_FOR_LOCATION, + SECTION_TEMPLATES, + SECTION_GENERIC +}; + class Session { public: virtual ~Session() {} @@ -17,7 +25,7 @@ class Session { virtual QIcon icon() const = 0; virtual bool run() const = 0; virtual int type() const = 0; - virtual QString section() const = 0; + virtual SectionType section() const = 0; virtual bool operator<(const Session& s) const = 0; |