--- /dev/null
+/**
+ * © 2008 by David ‘Bombe’ Roden <bombe@pterodactylus.net>
+ */
+
+#include "GlobalSettings.h"
+
+GlobalSettings::GlobalSettings() {
+ verbose = false;
+}
+
+GlobalSettings::~GlobalSettings() {
+}
+
+GlobalSettings* GlobalSettings::instance = 0;
+
+GlobalSettings* GlobalSettings::getInstance() {
+ if (instance) {
+ return instance;
+ }
+ instance = new GlobalSettings();
+ return instance;
+}
+
+void GlobalSettings::setVerbose(bool verbose) {
+ this->verbose = verbose;
+}
+
--- /dev/null
+/**
+ * © 2008 by David ‘Bombe’ Roden <bombe@pterodactylus.net>
+ */
+
+#pragma once
+
+class GlobalSettings {
+
+private:
+ GlobalSettings();
+ ~GlobalSettings();
+
+public:
+ static GlobalSettings* getInstance();
+
+ void setVerbose(bool verbose);
+
+private:
+ static GlobalSettings* instance;
+ bool verbose;
+
+};
+