summaryrefslogtreecommitdiffstats
path: root/src/session.h
diff options
context:
space:
mode:
authorNils Schwabe2014-03-03 15:14:20 +0100
committerNils Schwabe2014-03-03 15:14:20 +0100
commit030d91e628a2ecd5634376c9c4d903a1fa0fb423 (patch)
tree227029e3b48deb1d4d01ce497d9ec3b8d47f7a61 /src/session.h
parentInitial commit (diff)
downloadvmchooser2-030d91e628a2ecd5634376c9c4d903a1fa0fb423.tar.gz
vmchooser2-030d91e628a2ecd5634376c9c4d903a1fa0fb423.tar.xz
vmchooser2-030d91e628a2ecd5634376c9c4d903a1fa0fb423.zip
added files from vmchooser1
Diffstat (limited to 'src/session.h')
-rw-r--r--src/session.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/session.h b/src/session.h
new file mode 100644
index 0000000..f3d4b4b
--- /dev/null
+++ b/src/session.h
@@ -0,0 +1,26 @@
+#ifndef VMCHOOSER_SESSION_H_
+#define VMCHOOSER_SESSION_H_
+
+class QString;
+
+class Session {
+ public:
+ virtual ~Session() {}
+
+ virtual bool isActive() const = 0;
+ virtual bool isLocked() const = 0;
+ virtual bool isValid() const = 0;
+ virtual int priority() const = 0;
+ virtual QString shortDescription() const = 0;
+ virtual QString description() const = 0;
+ virtual QString icon() const = 0;
+ virtual bool run() const = 0;
+ virtual int type() const = 0;
+
+ virtual bool operator<(const Session& s) const = 0;
+
+ const static int XSESSION = 0;
+ const static int VSESSION = 1;
+
+};
+#endif /*VMCHOOSER_SESSION_H_*/