summaryrefslogtreecommitdiffstats
path: root/src/Session.h
blob: 4b0ad69049f26843283cc67946a6d2682e1d4992 (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
/*
 * 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_*/