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


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


namespace  XBMCAddon
namespace  XBMCAddon::xbmcgui


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

Macro Definition Documentation

◆ checkedb

#define checkedb ( methcall)    ( 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)    { if (window.isNotNull()) window-> methcall ; }