Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
WindowInterceptor.h File Reference
#include "Window.h"
#include "guilib/GUIWindow.h"

Classes

class  XBMCAddon::xbmcgui::InterceptorBase
 
class  XBMCAddon::xbmcgui::ref
 
class  XBMCAddon::xbmcgui::Interceptor< P >
 
class  XBMCAddon::xbmcgui::InterceptorDialog< P >
 

Namespaces

namespace  XBMCAddon
 
namespace  XBMCAddon::xbmcgui
 

Macros

#define checkedb(methcall)
 
#define checkedv(methcall)
 

Macro Definition Documentation

◆ checkedb

#define checkedb ( methcall)
Value:
( window.isNotNull() ? window-> methcall : false )

The intention of this class is to intercept calls from multiple points in the CGUIWindow class hierarchy and pass those calls over to the XBMCAddon API Window hierarchy. It is a class template that uses the type template parameter to determine the parent class.

Since this class also maintains two way communication between the XBMCAddon API Window hierarchy and the core XBMC CGUIWindow hierarchy, it is used as a general bridge. For calls going TO the window hierarchy (as in callbacks) it operates in a straightforward manner. In the reverse direction (from the XBMCAddon hierarchy) it uses some hackery in a "smart pointer" overloaded -> operator.

◆ checkedv

#define checkedv ( methcall)
Value:
{ if (window.isNotNull()) window-> methcall ; }