summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2016-09-01 11:28:16 +0200
committerSimon Rettberg2016-09-01 11:28:16 +0200
commitafdf4b458dc23c8dc250e108690c95a3cb75f459 (patch)
tree3aaece9ebe0a2e9d5cc36f5943481ae1c98e0b71
parentcheck for autostart when download is finished (diff)
downloadvmchooser2-afdf4b458dc23c8dc250e108690c95a3cb75f459.tar.gz
vmchooser2-afdf4b458dc23c8dc250e108690c95a3cb75f459.tar.xz
vmchooser2-afdf4b458dc23c8dc250e108690c95a3cb75f459.zip
Cleanup: Remove execCommand from vsession, add newslines around methods
-rw-r--r--src/session.h2
-rw-r--r--src/vsession.h4
-rw-r--r--src/xsession.h2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/session.h b/src/session.h
index 907fbaa..0d2ab10 100644
--- a/src/session.h
+++ b/src/session.h
@@ -26,7 +26,7 @@ class Session {
virtual QString description() const = 0;
virtual QIcon icon() const = 0;
virtual bool run() const = 0;
- virtual QString execCommand() const = 0;
+ virtual QString execCommand() const { return QString(); }
virtual int type() const = 0;
virtual SectionType section() const = 0;
virtual bool is64Bit() const { return false; }
diff --git a/src/vsession.h b/src/vsession.h
index 4fda2e1..2b00206 100644
--- a/src/vsession.h
+++ b/src/vsession.h
@@ -40,9 +40,7 @@ class VSession : public Session {
QString description() const {
return getAttribute("long_description");
}
- QString execCommand() const {
- return QString("");
- }
+
QIcon icon() const;
QString os() const {
diff --git a/src/xsession.h b/src/xsession.h
index 87283c9..27e431e 100644
--- a/src/xsession.h
+++ b/src/xsession.h
@@ -30,9 +30,11 @@ class XSession : public Session {
QString description() const {
return this->comment_;
}
+
QString execCommand() const {
return this->exec_;
}
+
QIcon icon() const;
bool run() const;