diff options
author | Simon Rettberg | 2018-06-15 14:05:25 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-06-15 14:05:25 +0200 |
commit | ba3c5aa40274c11f9cefd4e9842be3488cad07b4 (patch) | |
tree | 2865703ae78ed397f24fa32fca642332ac7b3a49 /src/vsession.h | |
parent | fileDownloader.* -> filedownloader.* (diff) | |
download | vmchooser2-ba3c5aa40274c11f9cefd4e9842be3488cad07b4.tar.gz vmchooser2-ba3c5aa40274c11f9cefd4e9842be3488cad07b4.tar.xz vmchooser2-ba3c5aa40274c11f9cefd4e9842be3488cad07b4.zip |
Fix indentation, cleanup, refactoring, deletions
* Remove unused methods for adding hostname and user to xml
* Avoid copying/(de)serializing XML a thousand times
* Fix Session::isValid() or rather make it a bit more usable
(although it's unused currently)
* baseDir is global, not per VSession, which doesn't make any
sense without the legacy approach of recusively loading
one xml file per entry
Diffstat (limited to 'src/vsession.h')
-rw-r--r-- | src/vsession.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/vsession.h b/src/vsession.h index 2ded3ae..bd0f7a2 100644 --- a/src/vsession.h +++ b/src/vsession.h @@ -5,7 +5,6 @@ #include <QList> #include <QDomDocument> #include <QDir> -#include <QProcess> #include "session.h" #include "httpxmldownloader.h" @@ -17,7 +16,7 @@ enum ImgType { class VSession : public Session { public: - bool init(const QString& xml, const QString& baseDirPath); + bool init(const QDomElement& xml); ImgType imgtype() const; bool isActive() const; @@ -79,8 +78,6 @@ class VSession : public Session { const QString& value, const QString& attribute = "param", bool replace = true); - void addUserAndHostname(); - void mergePoolXml(); QString toXml() const; @@ -97,11 +94,10 @@ class VSession : public Session { private: QList<QString> keywords_; QDomDocument doc_; - QString baseDirPath_; - - QProcess *_process; + QDomElement eintrag_; void readKeywords(); + }; #endif /*VMCHOOSER_VSESSION_H_*/ |