summaryrefslogtreecommitdiffstats
path: root/src/VSessionHandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/VSessionHandler.h')
-rw-r--r--src/VSessionHandler.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/VSessionHandler.h b/src/VSessionHandler.h
new file mode 100644
index 0000000..c0806c8
--- /dev/null
+++ b/src/VSessionHandler.h
@@ -0,0 +1,62 @@
+/*
+ * 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 VSESSIONHANDLER_H_
+#define VSESSIONHANDLER_H_
+
+#include <QList>
+#include <QString>
+
+class Session;
+
+class VSessionHandler {
+public:
+ VSessionHandler();
+ virtual ~VSessionHandler();
+
+ QList<Session*> readXmlDir(const QString& path);
+ QList<Session*> readXmlFile(const QString& filepath);
+
+
+ void setEnv(QString env);
+ void setPrinterScript(QString printerScript);
+ void setScannerScript(QString scannerScript);
+ void setRunVmScript(QString runVmScript);
+ void setConfPath(QString confPath);
+ void setFilterScript(QString filterScript);
+
+ QString getEnv() ;
+ QString getPrinterScript() ;
+ QString getScannerScript() ;
+ QString getRunVmScript() ;
+ QString getConfPath() ;
+ QString getFilterScript() ;
+
+ bool hasEnv();
+
+
+private:
+ QString _filterScript;
+ QString _env;
+ QString _confPath;
+ QString _printerScript;
+ QString _scannerScript;
+ QString _runVmScript;
+ bool debugMode;
+
+};
+
+#endif /* VSESSIONHANDLER_H_ */