Public Member Functions | Public Attributes | Protected Attributes

ctkServiceRegistrationPrivate Class Reference

#include <Libs/PluginFramework/ctkServiceRegistrationPrivate.h>

Inheritance diagram for ctkServiceRegistrationPrivate:
Inheritance graph
[legend]
Collaboration diagram for ctkServiceRegistrationPrivate:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ctkServiceRegistrationPrivate (ctkServiceRegistration *sr, ctkPluginPrivate *plugin, QObject *service, const ServiceProperties &props)
virtual QObject * getService ()
bool isUsedByPlugin (ctkPlugin *p)
 Q_DECLARE_PUBLIC (ctkServiceRegistration)
virtual ~ctkServiceRegistrationPrivate ()

Public Attributes

volatile bool available
QHash< ctkPlugin *, int > dependents
QMutex eventLock
ctkPluginPrivateplugin
ServiceProperties properties
QMutex propsLock
ctkServiceReferencereference
QHash< ctkPlugin *, QObject * > serviceInstances
volatile bool unregistering

Protected Attributes

ctkServiceRegistration *const q_ptr
QObject * service

Detailed Description

Definition at line 35 of file ctkServiceRegistrationPrivate.h.


Constructor & Destructor Documentation

ctkServiceRegistrationPrivate::ctkServiceRegistrationPrivate ( ctkServiceRegistration sr,
ctkPluginPrivate plugin,
QObject *  service,
const ServiceProperties props 
)

Definition at line 25 of file ctkServiceRegistrationPrivate.cpp.

ctkServiceRegistrationPrivate::~ctkServiceRegistrationPrivate (  )  [virtual]

Definition at line 34 of file ctkServiceRegistrationPrivate.cpp.


Member Function Documentation

QObject * ctkServiceRegistrationPrivate::getService (  )  [virtual]

Reimplemented in ctkQtServiceRegistrationPrivate.

Definition at line 45 of file ctkServiceRegistrationPrivate.cpp.

bool ctkServiceRegistrationPrivate::isUsedByPlugin ( ctkPlugin p  ) 

Check if a plugin uses this service

Parameters:
p Plugin to check
Returns:
true if plugin uses this service

Definition at line 39 of file ctkServiceRegistrationPrivate.cpp.

ctkServiceRegistrationPrivate::Q_DECLARE_PUBLIC ( ctkServiceRegistration   ) 

Member Data Documentation

Is service available. I.e., if true then holders of a ctkServiceReference for the service are allowed to get it.

Definition at line 82 of file ctkServiceRegistrationPrivate.h.

Plugins dependent on this service. Integer is used as reference counter, counting number of unbalanced getService().

Definition at line 71 of file ctkServiceRegistrationPrivate.h.

Lock object for synchronous event delivery.

Definition at line 94 of file ctkServiceRegistrationPrivate.h.

Plugin registering this service.

Definition at line 55 of file ctkServiceRegistrationPrivate.h.

Service properties.

Definition at line 65 of file ctkServiceRegistrationPrivate.h.

Definition at line 96 of file ctkServiceRegistrationPrivate.h.

Definition at line 40 of file ctkServiceRegistrationPrivate.h.

Reference object to this service registration.

Definition at line 60 of file ctkServiceRegistrationPrivate.h.

Service or ctkServiceFactory object.

Definition at line 45 of file ctkServiceRegistrationPrivate.h.

Object instances that factory has produced.

Definition at line 76 of file ctkServiceRegistrationPrivate.h.

Avoid recursive unregistrations. I.e., if true then unregistration of this service has started but is not yet finished.

Definition at line 89 of file ctkServiceRegistrationPrivate.h.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines