blob: 50563c29e1313adb08ca4040650c560743057381 (
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
|
#ifndef VMCHOOSER_XSESSION_H_
#define VMCHOOSER_XSESSION_H_
#include <QString>
#include <QList>
#include <QDomDocument>
#include <QDir>
#include "session.h"
// TODO: check includes (in all files)
// TODO: sort (operator<)
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;
int priority() const;
QString shortDescription() const {
return this->name_;
}
QString description() const {
return this->comment_;
}
QString icon() const;
bool run() const;
bool operator<(const Session& other) const;
static QList<Session*> readSessions(const QString& path);
private:
QString name_;
QString exec_;
QString comment_;
QString icon_;
};
#endif /*VMCHOOSER_XSESSION_H_*/
|