summaryrefslogtreecommitdiffstats
path: root/smubermodelsingleton.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2010-06-12 11:22:10 +0200
committerArno <am@disconnect.de>2010-06-12 11:22:10 +0200
commited20c95fff998cb25457e5b9d95bce312816ebd9 (patch)
tree7f6d56b676b3c41f5acb586f26258b5ab87335f7 /smubermodelsingleton.h
parentf84598155ee8a6b20f163b459722e27eb24658ab (diff)
downloadSheMov-ed20c95fff998cb25457e5b9d95bce312816ebd9.tar.gz
SheMov-ed20c95fff998cb25457e5b9d95bce312816ebd9.tar.bz2
SheMov-ed20c95fff998cb25457e5b9d95bce312816ebd9.zip
Created singleton for SmUberModel
Implemented a singleton for SmUberModel.
Diffstat (limited to 'smubermodelsingleton.h')
-rw-r--r--smubermodelsingleton.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/smubermodelsingleton.h b/smubermodelsingleton.h
new file mode 100644
index 0000000..80b2313
--- /dev/null
+++ b/smubermodelsingleton.h
@@ -0,0 +1,24 @@
+/*
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License
+ as published by the Free Software Foundation; either version
+ 2 of the License, or (at your option) any later version.
+*/
+
+#ifndef SMUBERMODELSINGLETON_H
+#define SMUBERMODELSINGLETON_H
+
+class SmUberModel;
+
+class SmUberModelSingleton {
+ public:
+ static SmUberModel *instance();
+
+ private:
+ SmUberModelSingleton() {}
+ SmUberModelSingleton(const SmUberModelSingleton &other);
+ SmUberModelSingleton &operator=(const SmUberModelSingleton &other);
+ static SmUberModel *mInstance;
+};
+
+#endif