libhomegear-base
0.7
Base library for Homegear and Homegear family modules.
|
Class holding information on how UI elements look like. More...
#include <UiElements.h>
Classes | |
struct | UiPeerInfo |
struct | UiVariableInfo |
Public Types | |
typedef std::shared_ptr< UiVariableInfo > | PUiVariableInfo |
typedef std::shared_ptr< UiPeerInfo > | PUiPeerInfo |
Public Member Functions | |
struct BaseLib::DeviceDescription::UiElements::UiVariableInfo | __attribute__ ((aligned(128))) |
struct BaseLib::DeviceDescription::UiElements::UiPeerInfo | __attribute__ ((aligned(64))) |
UiElements (BaseLib::SharedObjects *baseLib) | |
virtual | ~UiElements ()=default |
void | clear () |
PVariable | getUiElements (const std::string &language) |
PHomegearUiElement | getUiElement (const std::string &language, const std::string &id) |
PHomegearUiElement | getUiElement (const std::string &language, const std::string &id, PUiPeerInfo peerInfo) |
Returns an UI element and assigns peer IDs to it. More... | |
Protected Member Functions | |
void | load (const std::string &language) |
Protected Attributes | |
BaseLib::SharedObjects * | _bl = nullptr |
std::mutex | _uiInfoMutex |
std::unordered_map< std::string, std::unordered_map< std::string, PHomegearUiElement > > | _uiInfo |
Class holding information on how UI elements look like.
It is used to load all UI elements.
typedef std::shared_ptr<UiPeerInfo> BaseLib::DeviceDescription::UiElements::PUiPeerInfo |
typedef std::shared_ptr<UiVariableInfo> BaseLib::DeviceDescription::UiElements::PUiVariableInfo |
|
explicit |
|
virtualdefault |
struct BaseLib::DeviceDescription::UiElements::UiPeerInfo BaseLib::DeviceDescription::UiElements::__attribute__ | ( | (aligned(64)) | ) |
struct BaseLib::DeviceDescription::UiElements::UiVariableInfo BaseLib::DeviceDescription::UiElements::__attribute__ | ( | (aligned(128)) | ) |
void BaseLib::DeviceDescription::UiElements::clear | ( | ) |
PHomegearUiElement BaseLib::DeviceDescription::UiElements::getUiElement | ( | const std::string & | language, |
const std::string & | id | ||
) |
PHomegearUiElement BaseLib::DeviceDescription::UiElements::getUiElement | ( | const std::string & | language, |
const std::string & | id, | ||
PUiPeerInfo | peerInfo | ||
) |
Returns an UI element and assigns peer IDs to it.
language | The language to return (e. g. "en-US") |
id | The ID of the UI element |
peerInfo | The peer IDs to assign |
PVariable BaseLib::DeviceDescription::UiElements::getUiElements | ( | const std::string & | language | ) |
|
protected |
|
protected |
|
protected |
|
protected |