libsolidcontrol
singletondefs.h File Reference
#include <kglobal.h>
Include dependency graph for singletondefs.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Classes | |
class | Solid::Control::SingletonHelper< T > |
Namespaces | |
namespace | Solid |
namespace | Solid::Control |
Defines | |
#define | SOLID_SINGLETON(Type) |
#define | SOLID_SINGLETON_IMPLEMENTATION(Type, Name) |
Define Documentation
#define SOLID_SINGLETON | ( | Type | ) |
Value:
public: \ static Type &self(); \ static Type &selfForceBackend(QObject *backend); \ private: \ friend class Solid::Control::SingletonHelper< Type >;
Definition at line 37 of file singletondefs.h.
#define SOLID_SINGLETON_IMPLEMENTATION | ( | Type, | |||
Name | ) |
Value:
K_GLOBAL_STATIC(Solid::Control::SingletonHelper< Type >, global##Name) \ \ Type &Type::self() \ { \ Solid::Control::SingletonHelper< Type > *singleton = global##Name; \ \ return singleton->instance; \ }
Definition at line 44 of file singletondefs.h.