Here is a quick and dirty patch that may work.  I'm rather swamped with
a massive diy list these days so not much time to write, let alone
test.

This is a patch against the latest from googlecode.  If you use svn you
can just apply, if you use the installed package, it should be applied
against the extracted .par file.

To add a callback simply call:
Plugins::ExtendedAlarm::Plugin->addCustomPlaylist($name,$callback)

Where $name is a defined string token (raw text for name MAY work)
and $callback is the function you want to run when this custom playlist
is selected for the alarm. I guess with this, you could now even use the
plugin to schedule a rescan if that's what you wanted. The callback will
include the $client as the only arg, but I could add the ability to
supply additional callbackargs if required.

-k


+-------------------------------------------------------------------+
|Filename: customPlaylist.zip                                       |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=4948|
+-------------------------------------------------------------------+

-- 
kdf
------------------------------------------------------------------------
kdf's Profile: http://forums.slimdevices.com/member.php?userid=7
View this thread: http://forums.slimdevices.com/showthread.php?t=34668

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to