/* * 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 #include #include #include #include #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_*/