diff options
author | Arno <am@disconnect.de> | 2010-06-12 11:22:10 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2010-06-12 11:22:10 +0200 |
commit | ed20c95fff998cb25457e5b9d95bce312816ebd9 (patch) | |
tree | 7f6d56b676b3c41f5acb586f26258b5ab87335f7 /smubermodelsingleton.h | |
parent | f84598155ee8a6b20f163b459722e27eb24658ab (diff) | |
download | SheMov-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.h | 24 |
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 |