Skip to content

Commit

Permalink
Added BuiltInSequence() Builtin
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Feb 20, 2013
1 parent 92787f3 commit 2e26b96
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions xbmc/interfaces/Builtins.cpp
Expand Up @@ -144,6 +144,7 @@ const BUILT_IN commands[] = {
{ "AlarmClock", true, "Prompt for a length of time and start an alarm clock" },
{ "CancelAlarm", true, "Cancels an alarm" },
{ "Action", true, "Executes an action for the active window (same as in keymap)" },
{ "BuiltInSequence", true, "Executes a Sequence Of BuiltIns" },
{ "Notification", true, "Shows a notification on screen, specify header, then message, and optionally time in milliseconds and a icon." },
{ "PlayDVD", false, "Plays the inserted CD or DVD media from the DVD-ROM Drive!" },
{ "RipCD", false, "Rip the currently inserted audio CD"},
Expand Down Expand Up @@ -988,6 +989,12 @@ int CBuiltins::Execute(const CStdString& execString)
return false;
g_alarmClock.Start(params[0], seconds, params[1], silent, loop);
}
//Execute BuiltIn Sequence by looping through parameters, recursive
else if (execute.Equals("builtinsequence"))
{
for (unsigned int i = 0; i < params.size() ; i++)
CBuiltins::Execute(params[i]);
}
else if (execute.Equals("notification"))
{
if (params.size() < 2)
Expand Down

0 comments on commit 2e26b96

Please sign in to comment.