11 #include "AddonCallback.h" 12 #include "AddonString.h" 38 inline void OnSettingsChanged() { XBMC_TRACE; invokeCallback(
new CallbackFunction<Monitor>(
this,&Monitor::onSettingsChanged)); }
39 inline void OnScreensaverActivated() { XBMC_TRACE; invokeCallback(
new CallbackFunction<Monitor>(
this,&Monitor::onScreensaverActivated)); }
40 inline void OnScreensaverDeactivated() { XBMC_TRACE; invokeCallback(
new CallbackFunction<Monitor>(
this,&Monitor::onScreensaverDeactivated)); }
41 inline void OnDPMSActivated() { XBMC_TRACE; invokeCallback(
new CallbackFunction<Monitor>(
this,&Monitor::onDPMSActivated)); }
42 inline void OnDPMSDeactivated() { XBMC_TRACE; invokeCallback(
new CallbackFunction<Monitor>(
this,&Monitor::onDPMSDeactivated)); }
43 inline void OnScanStarted(
const String &library)
49 inline void OnScanFinished(
const String &library)
55 inline void OnCleanStarted(
const String& library)
61 inline void OnCleanFinished(
const String& library)
67 inline void OnNotification(
const String& sender,
const String& method,
const String& data)
71 this, &Monitor::onNotification, sender, method, data));
74 inline const String& GetId() {
return Id; }
75 inline long GetInvokerId() {
return invokerId; }
83 #ifdef DOXYGEN_SHOULD_USE_THIS 93 virtual void onSettingsChanged() { XBMC_TRACE; }
96 #ifdef DOXYGEN_SHOULD_USE_THIS 97 onScreensaverActivated();
106 virtual void onScreensaverActivated() { XBMC_TRACE; }
109 #ifdef DOXYGEN_SHOULD_USE_THIS 110 onScreensaverDeactivated();
119 virtual void onScreensaverDeactivated() { XBMC_TRACE; }
122 #ifdef DOXYGEN_SHOULD_USE_THIS 132 virtual void onDPMSActivated() { XBMC_TRACE; }
135 #ifdef DOXYGEN_SHOULD_USE_THIS 145 virtual void onDPMSDeactivated() { XBMC_TRACE; }
148 #ifdef DOXYGEN_SHOULD_USE_THIS 166 virtual void onScanStarted(
const String library) { XBMC_TRACE; }
169 #ifdef DOXYGEN_SHOULD_USE_THIS 187 virtual void onScanFinished(
const String library) { XBMC_TRACE; }
190 #ifdef DOXYGEN_SHOULD_USE_THIS 208 virtual void onCleanStarted(
const String library) { XBMC_TRACE; }
211 #ifdef DOXYGEN_SHOULD_USE_THIS 212 onCleanFinished(...);
229 virtual void onCleanFinished(
const String library) { XBMC_TRACE; }
232 #ifdef DOXYGEN_SHOULD_USE_THIS 250 virtual void onNotification(
const String sender,
const String method,
const String data)
256 #ifdef DOXYGEN_SHOULD_USE_THIS 289 bool waitForAbort(
double timeout = -1);
292 #ifdef DOXYGEN_SHOULD_USE_THIS 305 bool abortRequested();
This is an Event class built from a ConditionVariable.
Definition: Event.h:35
Definition: CallbackFunction.h:44
void AbortNotify()
Called from XBPython to notify registered monitors that a script is aborting/ending.
Definition: Monitor.cpp:33
Defining LOG_LIFECYCLE_EVENTS will log all instantiations, deletions and also reference countings (in...
Definition: Addon.cpp:25
This class is the superclass for all API classes that are expected to be able to handle cross-languag...
Definition: AddonCallback.h:23