|
| CGUIInfoManager (void) |
|
| ~CGUIInfoManager (void) override |
|
void | Initialize () |
|
void | Clear () |
|
void | ResetCache () |
|
int | GetMessageMask () override |
| Should return the message mask that it wishes to receive messages for. More...
|
|
void | OnApplicationMessage (KODI::MESSAGING::ThreadMessage *pMsg) override |
| This gets called whenever a message matching the registered message mask is processed. More...
|
|
INFO::InfoPtr | Register (const std::string &expression, int context=0) |
| Register a boolean condition/expression This routine allows controls or other clients of the info manager to register to receive updates of particular expressions, in a particular context (currently windows). More...
|
|
bool | ConditionsChangedValues (const std::map< INFO::InfoPtr, bool > &map) |
| iterates through boolean conditions and compares their stored values to current values. Returns true if any condition changed value. More...
|
|
bool | EvaluateBool (const std::string &expression, int context=0, const CGUIListItemPtr &item=nullptr) |
| Evaluate a boolean expression. More...
|
|
int | TranslateString (const std::string &strCondition) |
| Translates a string as given by the skin into an int that we use for more efficient retrieval of data. Can handle combined strings on the form Player.Caching + VideoPlayer.IsFullscreen (Logical and) Player.HasVideo | Player.HasAudio (Logical or) More...
|
|
int | TranslateSingleString (const std::string &strCondition, bool &listItemDependent) |
|
std::string | GetLabel (int info, int contextWindow=0, std::string *fallback=nullptr) const |
|
std::string | GetImage (int info, int contextWindow, std::string *fallback=nullptr) |
| Obtains the filename of the image to show from whichever subsystem is needed. More...
|
|
bool | GetInt (int &value, int info, int contextWindow=0, const CGUIListItem *item=nullptr) const |
|
bool | GetBool (int condition, int contextWindow=0, const CGUIListItem *item=nullptr) |
|
std::string | GetItemLabel (const CFileItem *item, int contextWindow, int info, std::string *fallback=nullptr) const |
|
std::string | GetItemImage (const CGUIListItem *item, int contextWindow, int info, std::string *fallback=nullptr) const |
|
bool | GetItemInt (int &value, const CGUIListItem *item, int contextWindow, int info) const |
| Get integer value of info. More...
|
|
bool | GetItemBool (const CGUIListItem *item, int contextWindow, int condition) const |
|
void | SetCurrentItem (const CFileItem &item) |
| Set currently playing file item. More...
|
|
void | ResetCurrentItem () |
|
void | UpdateCurrentItem (const CFileItem &item) |
|
void | SetCurrentAlbumThumb (const std::string &thumbFileName) |
|
const MUSIC_INFO::CMusicInfoTag * | GetCurrentSongTag () const |
|
const CVideoInfoTag * | GetCurrentMovieTag () const |
|
void | UpdateAVInfo () |
|
int | RegisterSkinVariableString (const INFO::CSkinVariableString *info) |
|
int | TranslateSkinVariableString (const std::string &name, int context) |
|
void | RegisterInfoProvider (KODI::GUILIB::GUIINFO::IGUIInfoProvider *provider) |
| register a guiinfo provider More...
|
|
void | UnregisterInfoProvider (KODI::GUILIB::GUIINFO::IGUIInfoProvider *provider) |
| unregister a guiinfo provider More...
|
|
KODI::GUILIB::GUIINFO::CGUIInfoProviders & | GetInfoProviders () |
| get access to the registered guiinfo providers More...
|
|
| Observable ()=default |
|
virtual | ~Observable ()=default |
|
virtual Observable & | operator= (const Observable &observable) |
|
virtual void | RegisterObserver (Observer *obs) |
| Register an observer. More...
|
|
virtual void | UnregisterObserver (Observer *obs) |
| Unregister an observer. More...
|
|
virtual void | NotifyObservers (const ObservableMessage message=ObservableMessageNone) |
| Send a message to all observers when m_bObservableChanged is true. More...
|
|
virtual void | SetChanged (bool bSetTo=true) |
| Mark an observable changed. More...
|
|
virtual bool | IsObserving (const Observer &obs) const |
| Check whether this observable is being observed by an observer. More...
|
|
virtual | ~IMessageTarget ()=default |
|
This gets called whenever a message matching the registered message mask is processed.
There are no ordering guarantees here so implementations should never rely on a certain ordering of messages.
Cleaning up any pointers stored in the message payload is not specified and is decided by the implementer of the message. In general prefer to delete any data in this method to keep the callsites cleaner and simpler but if data is to be passed back it's perfectly valid to handle it any way that fits the situation as long as it's documented along with the message.
To return a simple value the result parameter of
- See also
- ThreadMessage can be used as it will be used as the return value for
-
CApplicationMessenger::SendMsg. It is up to the implementer to decide if this is to be used and it should be documented along with any new message implemented.
Implements KODI::MESSAGING::IMessageTarget.