RDK Documentation (Open Sourced RDK Components)
AampcliSet.h
Go to the documentation of this file.
1 /*
2  * If not stated otherwise in this file or this component's license file the
3  * following copyright and licenses apply:
4  *
5  * Copyright 2022 RDK Management
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 
20 /**
21  * @file AampcliSet.h
22  * @brief AampcliSet header file
23  */
24 
25 #ifndef AAMPCLISET_H
26 #define AAMPCLISET_H
27 
28 #include "priv_aamp.h"
29 #include "AampcliCommandHandler.h"
30 
31 #define CC_OPTION_1 "{\"penItalicized\":false,\"textEdgeStyle\":\"none\",\"textEdgeColor\":\"black\",\"penSize\":\"small\",\"windowFillColor\":\"black\",\"fontStyle\":\"default\",\"textForegroundColor\":\"white\",\"windowFillOpacity\":\"transparent\",\"textForegroundOpacity\":\"solid\",\"textBackgroundColor\":\"black\",\"textBackgroundOpacity\":\"solid\",\"windowBorderEdgeStyle\":\"none\",\"windowBorderEdgeColor\":\"black\",\"penUnderline\":false}"
32 #define CC_OPTION_2 "{\"penItalicized\":false,\"textEdgeStyle\":\"none\",\"textEdgeColor\":\"yellow\",\"penSize\":\"small\",\"windowFillColor\":\"black\",\"fontStyle\":\"default\",\"textForegroundColor\":\"yellow\",\"windowFillOpacity\":\"transparent\",\"textForegroundOpacity\":\"solid\",\"textBackgroundColor\":\"cyan\",\"textBackgroundOpacity\":\"solid\",\"windowBorderEdgeStyle\":\"none\",\"windowBorderEdgeColor\":\"black\",\"penUnderline\":true}"
33 #define CC_OPTION_3 "{\"penItalicized\":false,\"textEdgeStyle\":\"none\",\"textEdgeColor\":\"black\",\"penSize\":\"large\",\"windowFillColor\":\"blue\",\"fontStyle\":\"default\",\"textForegroundColor\":\"red\",\"windowFillOpacity\":\"transparent\",\"textForegroundOpacity\":\"solid\",\"textBackgroundColor\":\"white\",\"textBackgroundOpacity\":\"solid\",\"windowBorderEdgeStyle\":\"none\",\"windowBorderEdgeColor\":\"black\",\"penUnderline\":false}"
34 
35 typedef struct SetCommandInfo{
36  SetCommandInfo() : value(0), param(""), description("") {}
37  int value;
38  std::string param;
39  std::string description;
41 
42 class Set : public Command {
43 
44  public:
45  static std::vector<std::string> commands;
46  static std::map<string,setCommandInfo> setCommands;
47  static std::map<string,string> setNumCommands;
48  void addCommand(int value, string command,string param,string description);
49  void registerSetCommands();
50  static char *setCommandRecommender(const char *text, int state);
51  void ShowHelpSet();
52  bool execute(char *cmd, PlayerInstanceAAMP *playerInstanceAamp);
53 };
54 
55 #endif // AAMPCLISET_H
SetCommandInfo
Definition: AampcliSet.h:35
Set::ShowHelpSet
void ShowHelpSet()
Display Help menu for set.
Definition: AampcliSet.cpp:1300
Set::registerSetCommands
void registerSetCommands()
Show help menu with aamp command line interface.
Definition: AampcliSet.cpp:1222
PlayerInstanceAAMP
Player interface class for the JS pluggin.
Definition: main_aamp.h:692
priv_aamp.h
Private functions and types used internally by AAMP.
AampcliCommandHandler.h
AampcliCommandHandler header file.
Command
Definition: AampcliCommandHandler.h:35
Set
Definition: AampcliSet.h:42