• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

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.


Namespaces

namespace  Solid
namespace  Solid::Control

Classes

class  Solid::Control::SingletonHelper< T >

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.

libsolidcontrol

Skip menu "libsolidcontrol"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libplasma
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal