Contents Up Previous Next

wxPMService

TBD:: comments...

Derived from

No base class

Data structures

Members

wxPMService::wxPMService
wxPMService::~wxPMService
wxPMService::AssociateData
wxPMService::GetAssociatedData
wxPMService::GetDescription
wxPMService::GetDisplayName
wxPMService::GetInterface
wxPMService::GetMergableMenuChain
wxPMService::GetWxObject
wxPMService::IsStarted
wxPMService::SerializeState
wxPMService::SetIsStarted
wxPMService::Start
wxPMService::Stop
wxPMService::SupportInterface


wxPMService::wxPMService

wxPMService()

protected! **


wxPMService::~wxPMService

~wxPMService()

bk - virtual destructor helps clue compiler not to use it


wxPMService::AssociateData

bool AssociateData(wxPMService& toService, wxObject* pData)

methods for maintaining service-to-service custom data-associations (are delegated to boot-strap service which actually implements the maintenance)


wxPMService::GetAssociatedData

wxObject* GetAssociatedData(wxPMService& forService)


wxPMService::GetDescription

wxString GetDescription()


wxPMService::GetDisplayName

wxString GetDisplayName()


wxPMService::GetInterface

void* GetInterface(const char* infName, const char* version = NULL)

analog to COM's QueryInterface(), should return NULL, if interface is not supported. Version argument is null if version of the interface is not important, otherwise, interface is returned only when it is compatible with the requeseted version of it


wxPMService::GetMergableMenuChain

wxPMMergableMenuChain* GetMergableMenuChain()


wxPMService::GetWxObject

wxObject* GetWxObject()


wxPMService::IsStarted

bool IsStarted()


wxPMService::SerializeState

bool SerializeState(wxPMSerializer& ser)

overridable for serializing service's state to workplace configuration storage/file, (@see wxPMSerializer class)


wxPMService::SetIsStarted

void SetIsStarted(bool isStarted)

should be only called by wxPMBootStrapService class


wxPMService::Start

bool Start()

service should not be deleted directly calling this dtor, instead dtor of corresponding wxObject should be called: eg. "delete pMySvc->GetWxObject()"


wxPMService::Stop

bool Stop()


wxPMService::SupportInterface

bool SupportInterface(const char* infName, const char* version = NULL)

default impl. checks for GetInterface() returning not NULL