Something has gone wrong on #834 so here is a new one, sry about that
xbmc.Monitor will monitor for ScreenSaver activation/deactivation, Settings changing and database update.
settings changing are quite useful on service addons to allow users to change the settings without deactivating/Activating addon to reload them. only changed addon will get notified.
cptspiff has gone over it but looks like the comments have been lost as I have squashed it down.
as ususal, this is a c/p monster from xbmc.Player callback , if anything needs changing I am all ears
class MyMonitor( xbmc.Monitor ):
def __init__( self, *args, **kwargs ):
xbmc.Monitor.__init__( self )
def onSettingsChanged( self ):
print "settings changed, fetch new settings"
def onScreensaverDeactivated( self ):
print "screensaver Deactivated"
def onScreensaverActivated( self ):
print "screensaver Activated"
def onDatabaseUpdated( self, database ):
print "%s database updated" % database
monitor = MyMonitor()
Callback function for xbmc module (xbmc.Monitor)
- onDatabaseUpdated, will return the database that has been updated (video/music)
Hey @amet, we need to talk about these. Please ping me when you have a few minutes (hours :-) )
Add dialog to confirm file deletion.