summaryrefslogtreecommitdiffstats
path: root/src/vsession.h
diff options
context:
space:
mode:
authorSimon Rettberg2019-07-08 15:34:43 +0200
committerSimon Rettberg2019-07-08 15:34:43 +0200
commit6d4e332fc6da62cae08de3508ddec18f8830fb25 (patch)
treeb19d230e634c2dc4f986291a15182fd4c212d451 /src/vsession.h
parentChange WM spawning once again to hopefully fix invisible chooser (diff)
downloadvmchooser2-6d4e332fc6da62cae08de3508ddec18f8830fb25.tar.gz
vmchooser2-6d4e332fc6da62cae08de3508ddec18f8830fb25.tar.xz
vmchooser2-6d4e332fc6da62cae08de3508ddec18f8830fb25.zip
Get rid of ImgType, use string directly
The virtualizer ID should (mostly) be treated as an opaque value. The only place it's evaluated is where we determine whether a VM needs VTx or not. In the future this should be handled by meta data queried from run-virt (extend --query)
Diffstat (limited to 'src/vsession.h')
-rw-r--r--src/vsession.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/vsession.h b/src/vsession.h
index 6c48ce4..ad81833 100644
--- a/src/vsession.h
+++ b/src/vsession.h
@@ -8,17 +8,10 @@
#include "session.h"
#include "globals.h"
-enum ImgType {
- VMWARE,
- VBOX,
- OTHER
-};
-
class VSession : public Session {
public:
bool init(const QDomElement& xml);
- ImgType imgtype() const;
bool isActive() const;
bool isLocked() const;
bool isValid() const;
@@ -37,6 +30,10 @@ class VSession : public Session {
return getAttribute("allow_edit").toInt() != 0;
}
+ QString virtualizer() const {
+ return getAttribute(QLatin1String("virtualmachine"));
+ }
+
QString shortDescription() const {
return getAttribute("short_description");
}
@@ -90,6 +87,7 @@ class VSession : public Session {
static QList<Session*> readXmlFile(const QString& filepath);
private:
+
QList<QString> keywords_;
QDomDocument doc_;
QDomElement eintrag_;