summaryrefslogtreecommitdiffstats
path: root/src/Session.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Session.h')
-rw-r--r--src/Session.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/Session.h b/src/Session.h
new file mode 100644
index 0000000..4b0ad69
--- /dev/null
+++ b/src/Session.h
@@ -0,0 +1,50 @@
+/*
+ * Copyright (c) 2010,2011 - RZ Uni Freiburg
+ * Copyright (c) 2010,2011 - OpenSLX Project
+ *
+ * This program/file is free software distributed under the GPL version 2.
+ * See http://gpl.openslx.org/
+ *
+ * If you have any feedback please consult http://feedback.openslx.org/ and
+ * send your feedback to feedback@openslx.org
+ *
+ * General information about OpenSLX - libChooser can be found under
+ * http://openslx.org
+ *
+ */
+
+#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 QString title() const = 0;
+ virtual QString screenshot() const = 0;
+ virtual QString os() const = 0;
+ virtual QString emulator() const = 0;
+ virtual QString author() const = 0;
+ virtual QString creationDate () const = 0;
+ virtual QString changeDate() 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_*/