summaryrefslogtreecommitdiffstats
path: root/src/globals.h
diff options
context:
space:
mode:
authorNils Schwabe2014-03-03 15:14:20 +0100
committerNils Schwabe2014-03-03 15:14:20 +0100
commit030d91e628a2ecd5634376c9c4d903a1fa0fb423 (patch)
tree227029e3b48deb1d4d01ce497d9ec3b8d47f7a61 /src/globals.h
parentInitial commit (diff)
downloadvmchooser2-030d91e628a2ecd5634376c9c4d903a1fa0fb423.tar.gz
vmchooser2-030d91e628a2ecd5634376c9c4d903a1fa0fb423.tar.xz
vmchooser2-030d91e628a2ecd5634376c9c4d903a1fa0fb423.zip
added files from vmchooser1
Diffstat (limited to 'src/globals.h')
-rw-r--r--src/globals.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/globals.h b/src/globals.h
new file mode 100644
index 0000000..32ecedb
--- /dev/null
+++ b/src/globals.h
@@ -0,0 +1,46 @@
+#ifndef VMCHOOSER_GLOBALS_H
+#define VMCHOOSER_GLOBALS_H
+
+#define VMCHOOSER_VERSION "0.1.0"
+
+#define VMCHOOSER_PLUGIN_PATH "/opt/openslx/plugin-repo/vmchooser"
+#define VMCHOOSER_BIN_PATH "/var/opt/openslx/bin"
+#define VMCHOOSER_ETC_BASE_PATH "/etc/vmchooser"
+#define VMCHOOSER_VMPATH "/var/lib/virt"
+#define VMCHOOSER_THEME_BASE "/usr/local/share/vmchooser/themes"
+
+#define VMCHOOSER_X_SESSIONS_PATH "/usr/share/xsessions"
+
+#define VMCHOOSER_SESSION_START_SCRIPT "/opt/openslx/vmchooser/sessionstart"
+
+#define VMCHOOSER_DEFAULT_WIDTH 500
+#define VMCHOOSER_DEFAULT_HEIGHT 580
+
+#define OPENSLXCONFIG "/opt/openslx/config"
+
+class QString;
+
+extern bool debugMode;
+extern bool pvsEnabled;
+
+extern QString binPath;
+extern QString etcPath;
+extern QString vSessionPath;
+extern QString xSessionPath;
+extern QString userPath;
+
+extern QString runVmScript;
+extern QString filterScript;
+extern QString printerScript;
+extern QString scannerScript;
+// Script that is run before the xsession/vsession is started
+extern QString sessionStartScript;
+
+extern const QString globalConfFile;
+extern const QString userConfFile;
+extern const QString previousSessionFile;
+
+extern QString pool;
+extern QString theme;
+
+#endif