Hemera::ServiceManager Class Reference

Provides access to this system's installed services, such as Applications and more. More...

#include <HemeraCore/ServiceManager>

Inheritance diagram for Hemera::ServiceManager:

Signals

void servicesChanged ()
 
- Signals inherited from Hemera::AsyncInitObject
void ready ()
 

Protected Member Functions

virtual void initImpl () Q_DECL_OVERRIDE Q_DECL_FINAL
 
- Protected Member Functions inherited from Hemera::AsyncInitObject
void setParts (uint parts)
 

Additional Inherited Members

- Public Slots inherited from Hemera::AsyncInitObject
Hemera::Operationinit ()
 
- Protected Slots inherited from Hemera::AsyncInitObject
void setReady ()
 
void setInitError (const QString &errorName, const QString &message=QString())
 
void setOnePartIsReady ()
 

Detailed Description

Provides access to this system's installed services, such as Applications and more.

ServiceManager enables an application to introspect the system for available services, and access their metadata. ServiceManager performs the discovery on the actual system, and not in the software repositories or the software database.

Usually, only one single ServiceManager object should be instantiated for each application for performance reasons.

See also
Hemera::Application

Member Function Documentation

void Hemera::ServiceManager::initImpl ( )
protectedvirtual

Implements the object intialization

When implementing an AsyncInitObject, this method should hold your initialization logic. It is called by AsyncInitObject when needed, and the developer should just reimplement it without invoking it.

Once the initialization procedure is completed, either setReady, setOnePartIsReady or setInitError must be called.

Implements Hemera::AsyncInitObject.

void Hemera::ServiceManager::servicesChanged ( )
signal

This signal is emitted when services on the system are either installed or removed.