mavit;425905 Wrote:
> I think we need to have a think about the possible use-cases for this
> feature. This should provide answers to the following questions:
>
> > > >
- Should only restart and shutdown events be blocked, and suspend
> and hibernate actions be allowed to proceed regardless?
>
- Should only idle and end-of-day actions be blocked, and
> user-initiated actions be allowed to proceed regardless?
>
- Should the plugin be able to specify exactly what it wants to
> block? Sounds complicated.
>
- Should it be possible to clear a block manually, or is this only
> intended for manually set blocks?
>
- When SrvrPowerCtrl becomes blocked, it flashes up a message to
> this effect on the Squeezebox. This message blocks the UI, which is
> annoying if you're trying to use it at the time. Should it be
> possible to dismiss this message by pressing a key on the remote?
> Is it even necessary to show this message?> >
>
My preference would be to keep SrvrPowerCtrl's blocking mechanism
simple: a set block blocks all actions, period. Setting a block ought
to be, imho, at the discretion of any plugin's author. Let them decide
if they think their process is important and ought not to be
interrupted.
If a plugin author wants to set a "discretionary" block, i.e. one that
can be easily cleared by the user, then he/she can use this syntax:
Code:
--------------------
[srvrpowerctrl setblock blocking_message_to_display viacli]
--------------------
If SrvrPowerCtrl sees a block request as coming from the "viacli" user,
then the block is clear-able by anyone from any of SrvrPowerCtrl's
menus, player, SBC, webUI, whathaveyou. In this scenario, the blockcode
isn't required to clear the block. A simple menu selection does it.
This method has the additional advantage that the blocking plugin
doesn't have to "remember" the block code. The block can be cleared
via:
Code:
--------------------
[srvrpowerctrl clearblock clearing_message_to_display viacli]
--------------------
--
gharris999
------------------------------------------------------------------------
gharris999's Profile: http://forums.slimdevices.com/member.php?userid=115
View this thread: http://forums.slimdevices.com/showthread.php?t=63636
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins