diff options
Diffstat (limited to 'src/XSession.h')
-rw-r--r-- | src/XSession.h | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/src/XSession.h b/src/XSession.h new file mode 100644 index 0000000..c1b83c9 --- /dev/null +++ b/src/XSession.h @@ -0,0 +1,93 @@ +/* + * 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_XSESSION_H_ +#define VMCHOOSER_XSESSION_H_ + +#include <QString> +#include <QList> +#include <QDomDocument> +#include <QDir> +#include <QProcess> + +#include "Session.h" + +class XSession : public Session { + public: + void init(const QString& name, const QString& exec, + const QString& comment, const QString& icon); + bool init(const QString& filename); + + bool isActive() const; + bool isLocked() const; + bool isValid() const; + int priority() const; + + + QString title() const { + return this->name_; + }; + + QString screenshot() const { + return QString(); + }; + + QString os() const { + return QString(); + }; + + QString emulator() const { + return QString(); + }; + + QString author() const { + return QString(); + }; + + QString creationDate () const { + return QString(); + }; + + QString changeDate() const { + return QString(); + }; + + + QString shortDescription() const { + return QString(); + } + + QString description() const { + return QString(); + } + + QString icon() const; + + bool run() const; + + int type() const; + + bool operator<(const Session& other) const; + + private: + QString name_; + QString exec_; + QString comment_; + QString icon_; + + QProcess *_process; +}; + +#endif /*VMCHOOSER_XSESSION_H_*/ |