|
| CApplication (void) |
|
| ~CApplication (void) override |
|
bool | Create () |
|
bool | Initialize () |
|
int | Run () |
|
bool | Cleanup () |
|
void | FrameMove (bool processEvents, bool processGUI=true) override |
|
void | Render () override |
|
bool | IsInitialized () const |
|
bool | IsStopping () const |
|
bool | CreateGUI () |
|
bool | InitWindow (RESOLUTION res=RES_INVALID) |
|
bool | Stop (int exitCode) |
|
const std::string & | CurrentFile () |
|
CFileItem & | CurrentFileItem () |
|
std::shared_ptr< CFileItem > | CurrentFileItemPtr () |
|
const CFileItem & | CurrentUnstackedItem () |
|
bool | OnMessage (CGUIMessage &message) override |
|
std::string | GetCurrentPlayer () |
|
int | GetMessageMask () override |
| Should return the message mask that it wishes to receive messages for.
|
|
void | OnApplicationMessage (KODI::MESSAGING::ThreadMessage *pMsg) override |
| This gets called whenever a message matching the registered message mask is processed.
|
|
bool | PlayMedia (CFileItem &item, const std::string &player, KODI::PLAYLIST::Id playlistId) |
|
bool | ProcessAndStartPlaylist (const std::string &strPlayList, KODI::PLAYLIST::CPlayList &playlist, KODI::PLAYLIST::Id playlistId, int track=0) |
|
bool | PlayFile (CFileItem item, const std::string &player, bool bRestart=false, bool forceSelection=false) |
|
void | StopPlaying () |
|
void | Restart (bool bSamePosition=true) |
|
void | DelayedPlayerRestart () |
|
void | CheckDelayedPlayerRestart () |
|
bool | IsPlayingFullScreenVideo () const |
|
bool | IsFullScreen () |
|
bool | OnAction (const CAction &action) |
|
void | CloseNetworkShares () |
|
void | ConfigureAndEnableAddons () |
|
void | ShowAppMigrationMessage () |
|
void | Process () override |
|
void | ProcessSlow () |
|
double | GetTotalTime () const |
| Returns the total time in fractional seconds of the currently playing media.
|
|
double | GetTime () const |
| Returns the current time in fractional seconds of the currently playing media.
|
|
float | GetPercentage () const |
|
float | GetCachePercentage () const |
|
void | SeekPercentage (float percent) |
|
void | SeekTime (double dTime=0.0) |
|
void | UpdateLibraries () |
|
void | UpdateCurrentPlayArt () |
|
bool | ExecuteXBMCAction (std::string action, const std::shared_ptr< CGUIListItem > &item=NULL) |
|
bool | IsAppFocused () const |
|
bool | GetRenderGUI () const override |
|
bool | SetLanguage (const std::string &strLanguage) |
|
bool | LoadLanguage (bool reload) |
|
void | SetLoggingIn (bool switchingProfiles) |
|
void | LockFrameMoveGuard () |
| Locks calls from outside kodi (e.g. python) until framemove is processed.
|
|
void | UnlockFrameMoveGuard () |
| Unlocks calls from outside kodi (e.g. python).
|
|
| IWindowManagerCallback (void) |
|
virtual | ~IWindowManagerCallback (void) |
|
virtual | ~IMsgTargetCallback ()=default |
|
virtual | ~IMessageTarget ()=default |
|
template<class T > |
std::shared_ptr< T > | GetComponent () |
| Obtain a component.
|
|
template<class T > |
std::shared_ptr< const T > | GetComponent () const |
| Obtain a component.
|
|
std::size_t | size () const |
| Returns number of registered components.
|
|
| CApplicationPlayerCallback () |
|
void | OnPlayBackEnded () override |
|
void | OnPlayBackStarted (const CFileItem &file) override |
|
void | OnPlayerCloseFile (const CFileItem &file, const CBookmark &bookmark) override |
|
void | OnPlayBackPaused () override |
|
void | OnPlayBackResumed () override |
|
void | OnPlayBackStopped () override |
|
void | OnPlayBackError () override |
|
void | OnQueueNextItem () override |
|
void | OnPlayBackSeek (int64_t iTime, int64_t seekOffset) override |
|
void | OnPlayBackSeekChapter (int iChapter) override |
|
void | OnPlayBackSpeedChanged (int iSpeed) override |
|
void | OnAVChange () override |
|
void | OnAVStarted (const CFileItem &file) override |
|
void | RequestVideoSettings (const CFileItem &fileItem) override |
|
void | StoreVideoSettings (const CFileItem &fileItem, const CVideoSettings &vs) override |
|
virtual | ~IPlayerCallback ()=default |
|
virtual | ~ISettingCallback ()=default |
|
virtual bool | OnSettingChanging (const std::shared_ptr< const CSetting > &setting) |
| The value of the given setting is being changed.
|
|
virtual void | OnSettingPropertyChanged (const std::shared_ptr< const CSetting > &setting, const char *propertyName) |
| The given property of the given setting has changed.
|
|
Public Member Functions inherited from ISettingsHandler |
virtual | ~ISettingsHandler ()=default |
|
virtual bool | OnSettingsLoading () |
| Settings loading has been initiated.
|
|
virtual void | OnSettingsLoaded () |
| Settings have been loaded.
|
|
virtual void | OnSettingsSaved () const |
| Settings have been saved.
|
|
virtual void | OnSettingsUnloaded () |
| Setting values have been unloaded.
|
|
virtual void | OnSettingsCleared () |
| Settings have been cleared.
|
|
virtual | ~ISubSettings ()=default |
|
virtual void | Clear () |
| Clear any loaded setting values.
|
|
void CApplication::FrameMove |
( |
bool | processEvents, |
|
|
bool | processGUI = true ) |
|
overridevirtual |
- Todo
- look into the possibility to use this for GBM int fps = 0;
This code reduces rendering fps of the GUI layer when playing videos in fullscreen mode it makes only sense on architectures with multiple layers if (CServiceBroker::GetWinSystem()->GetGfxContext().IsFullScreenVideo() && !m_appPlayer.IsPausedPlayback() && m_appPlayer.IsRenderingVideoLayer()) fps = CServiceBroker::GetSettingsComponent()->GetSettings()->GetInt(CSettings::SETTING_VIDEOPLAYER_LIMITGUIUPDATE);
auto now = std::chrono::steady_clock::now();
auto frameTime = std::chrono::duration_cast<std::chrono::milliseconds>(now - m_lastRenderTime).count(); if (fps > 0 && frameTime * fps < 1000) m_skipGuiRender = true;
Implements IWindowManagerCallback.
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.