shortcuts: talk the time and configure the sleep timeout

Use "type: time" and "data: talk" to have the time voiced when the shortcut is run.
use "type: time" and "data: sleep X" where X is the number of minutes to run the sleep timer for (0 means disable)
the name field is required

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31178 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2011-12-08 10:23:46 +00:00
parent 2376c4f825
commit 29b1ba3445
5 changed files with 55 additions and 9 deletions

View file

@ -281,6 +281,8 @@ settings. With a shortcut,
\setting{Quick Screen})
\item A debug menu item can be displayed (useful for developers mostly)
\item The \dap{} can be turned off
\item A shortcut to have the time spoken
\item A shortcut to confgure the sleep timer
\end{itemize}
\note{Shortcuts into the database are not possible}
@ -311,6 +313,9 @@ Available types are:
\item[separator] \config{data} is ignored; \config{name} can be used to display text,
or left blank to make the list more accessible with visual gaps
\item[shutdown] \config{data} is ignored; \config{name} can be used to display text
\item[time] \config{data} needs to be either ``talk`` to talk the time, or ``sleep X``
where X is the number of minutes to run the sleep timer for (0 to disable). \config{name}
is required for this shortcut type.
\end{description}
If the name/icon items are not specified, a sensible default will be used.