blob: c1b83c9a2ee944df10bd83ab188c6e5a76c90216 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
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_*/
|