RDK Documentation (Open Sourced RDK Components)
PlaybackCommand Class Reference
Inheritance diagram for PlaybackCommand:
Inheritance graph
Collaboration diagram for PlaybackCommand:
Collaboration graph

Public Member Functions

void addCommand (string command, string description)
 
void registerPlaybackCommands ()
 
bool isNumber (const char *s)
 check if the char array is having numbers only More...
 
void showHelp (void)
 Show help menu with aamp command line interface.
 
bool isTuneScheme (const char *cmd)
 Decide if input command consists of supported URI scheme to be tuned. More...
 
void trim (char **cmd)
 trim a string More...
 
void termPlayerLoop ()
 Stop mainloop execution (for standalone mode)
 
bool execute (char *cmd, PlayerInstanceAAMP *playerInstanceAamp)
 Process command. More...
 

Static Public Member Functions

static char * commandRecommender (const char *text, int state)
 

Static Public Attributes

static std::vector< std::string > commands
 
static std::map< string, string > playbackCommands = std::map<string,string>()
 

yes

Definition at line 32 of file AampcliPlaybackCommand.h.

Member Function Documentation

◆ isNumber()

bool PlaybackCommand::isNumber ( const char *  s)

check if the char array is having numbers only

Parameters
s
Return values
trueor false

Definition at line 358 of file AampcliPlaybackCommand.cpp.

◆ isTuneScheme()

bool PlaybackCommand::isTuneScheme ( const char *  cmd)

Decide if input command consists of supported URI scheme to be tuned.

Parameters
cmdcmd to parse

Definition at line 387 of file AampcliPlaybackCommand.cpp.

◆ trim()

void PlaybackCommand::trim ( char **  cmd)

trim a string

Parameters
[in]

Definition at line 407 of file AampcliPlaybackCommand.cpp.

◆ execute()

bool PlaybackCommand::execute ( char *  cmd,
PlayerInstanceAAMP playerInstanceAamp 
)
virtual

Process command.

Parameters
cmdcommand

Implements Command.

Definition at line 39 of file AampcliPlaybackCommand.cpp.


The documentation for this class was generated from the following files: