IServiceBase Class Reference

#include <mw/cwrt/servicebase.h>

class IServiceBase
Public Member Functions
pure virtual voidaddRef()
voidgetInterface(const ServiceInterfaceInfo &, T **)
pure virtual voidgetInterface(const ServiceInterfaceInfo &, void **)
pure virtual QObject *getServiceObject()
pure virtual voidrelease()

Detailed Description

The base class for service interfaces. All of interfaces supported by service object must derive from this interface. Service class must derive from this interface or IServiceBase derived interface.

Member Function Documentation

addRef ( )

voidaddRef()[pure virtual]

Increment the reference count

getInterface ( const ServiceInterfaceInfo &, T ** )

voidgetInterface(const ServiceInterfaceInfo &aInterfaceInfo,
T **aInterface
)[inline]

Interface getter helper Get another interface from available interface implemented by the same service provider.

Parameters
aInterfaceInfointerface info
aInterfaceAddress of the pointer that is the interface pointer to the object or NULL.

getInterface ( const ServiceInterfaceInfo &, void ** )

voidgetInterface(const ServiceInterfaceInfo &aInterfaceInfo,
void **aInterface
)[pure virtual]

Interface getter Get another interface from available interface implemented by the same service provider.

Parameters
aInterfaceInfointerface info
aInterfaceAddress of the pointer that is the interface pointer to the object or NULL.

getServiceObject ( )

QObject *getServiceObject()[pure virtual]

Get service object to which the interface pointer points.

Return Value
pointer to the object

release ( )

voidrelease()[pure virtual]

Release the interface. decrement the reference count