From ed20c95fff998cb25457e5b9d95bce312816ebd9 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 12 Jun 2010 11:22:10 +0200 Subject: Created singleton for SmUberModel Implemented a singleton for SmUberModel. --- smubermodelsingleton.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 smubermodelsingleton.h (limited to 'smubermodelsingleton.h') 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 -- cgit v1.2.3-70-g09d2