MT Showcase SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Showcase::ServiceProvider Class Reference

This class holds all services loaded in the current application. More...

#include <ServiceProvider.hpp>

Public Member Functions

std::shared_ptr< EmailServiceAPIemailService (const QString &name=QString())
 Get API to send emails. More...
 
std::shared_ptr< CodiceServiceAPI > codiceService ()
 Get API to access Codice database. More...
 
std::shared_ptr
< CodiceServiceCache
codiceServiceCache ()
 Get API to access Codice database cache. More...
 
std::shared_ptr
< DataGathering::DataGatheringServiceAPI
dataGatheringService ()
 Get API to log data gathering events. More...
 
ServiceInstancePtr service (const QString &componentName, const QString &name=QString()) const
 

Protected Member Functions

void removeServiceInstance (const QString &component, const QString &name)
 

Detailed Description

This class holds all services loaded in the current application.

Member Function Documentation

std::shared_ptr< CodiceServiceAPI > Showcase::ServiceProvider::codiceService ( )

Get API to access Codice database.

Returns
Codice API
std::shared_ptr< CodiceServiceCache > Showcase::ServiceProvider::codiceServiceCache ( )

Get API to access Codice database cache.

Returns
Cached Codice API
std::shared_ptr< DataGathering::DataGatheringServiceAPI > Showcase::ServiceProvider::dataGatheringService ( )

Get API to log data gathering events.

Returns
Data gathering API
std::shared_ptr< EmailServiceAPI > Showcase::ServiceProvider::emailService ( const QString &  name = QString())

Get API to send emails.

Parameters
namename of the service to use; empty string to use default
Returns
email sending API
void Showcase::ServiceProvider::removeServiceInstance ( const QString &  component,
const QString &  name 
)
protected
std::shared_ptr< ServiceInstance > Showcase::ServiceProvider::service ( const QString &  componentName,
const QString &  name = QString() 
) const