MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / GetCommands

Method GetCommands

cpp/src/command_classes/SimpleAVCommandItem.cpp:68–525  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Get all available AV commands -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

66// Get all available AV commands
67//-----------------------------------------------------------------------------
68vector<SimpleAVCommandItem> SimpleAVCommandItem::GetCommands()
69{
70 if (m_commands.size() == 0)
71 {
72 // Generated code
73 m_commands.push_back(SimpleAVCommandItem(1, "Mute", "", 1));
74 m_commands.push_back(SimpleAVCommandItem(2, "Volume Down", "Level Down", 1));
75 m_commands.push_back(SimpleAVCommandItem(3, "Volume Up", "Level Up", 1));
76 m_commands.push_back(SimpleAVCommandItem(4, "Channel Up", "Program Up", 1));
77 m_commands.push_back(SimpleAVCommandItem(5, "Channel Down", "Program Down", 1));
78 m_commands.push_back(SimpleAVCommandItem(6, "0", "Preset 10", 1));
79 m_commands.push_back(SimpleAVCommandItem(7, "1", "Preset 1", 1));
80 m_commands.push_back(SimpleAVCommandItem(8, "2", "Preset 2", 1));
81 m_commands.push_back(SimpleAVCommandItem(9, "3", "Preset 3", 1));
82 m_commands.push_back(SimpleAVCommandItem(10, "4", "Preset 4", 1));
83 m_commands.push_back(SimpleAVCommandItem(11, "5", "Preset 5", 1));
84 m_commands.push_back(SimpleAVCommandItem(12, "6", "Preset 6", 1));
85 m_commands.push_back(SimpleAVCommandItem(13, "7", "Preset 7", 1));
86 m_commands.push_back(SimpleAVCommandItem(14, "8", "Preset 8", 1));
87 m_commands.push_back(SimpleAVCommandItem(15, "9", "Preset 9", 1));
88 m_commands.push_back(SimpleAVCommandItem(16, "Last Channel", "Recall, Previous Channel (WMC)", 1));
89 m_commands.push_back(SimpleAVCommandItem(17, "Display", "Info", 1));
90 m_commands.push_back(SimpleAVCommandItem(18, "Favorite Channel", "Favorite", 1));
91 m_commands.push_back(SimpleAVCommandItem(19, "Play", "", 1));
92 m_commands.push_back(SimpleAVCommandItem(20, "Stop", "", 1));
93 m_commands.push_back(SimpleAVCommandItem(21, "Pause", "Still", 1));
94 m_commands.push_back(SimpleAVCommandItem(22, "Fast Forward", "Search Forward", 1));
95 m_commands.push_back(SimpleAVCommandItem(23, "Rewind", "Search Reverse", 1));
96 m_commands.push_back(SimpleAVCommandItem(24, "Instant Replay", "Replay", 1));
97 m_commands.push_back(SimpleAVCommandItem(25, "Record", "", 1));
98 m_commands.push_back(SimpleAVCommandItem(26, "AC3", "Dolby Digital", 1));
99 m_commands.push_back(SimpleAVCommandItem(27, "PVR Menu", "Tivo", 1));
100 m_commands.push_back(SimpleAVCommandItem(28, "Guide", "EPG", 1));
101 m_commands.push_back(SimpleAVCommandItem(29, "Menu", "Settings", 1));
102 m_commands.push_back(SimpleAVCommandItem(30, "Menu Up", "Adjust Up", 1));
103 m_commands.push_back(SimpleAVCommandItem(31, "Menu Down", "Adjust Down", 1));
104 m_commands.push_back(SimpleAVCommandItem(32, "Menu Left", "Cursor Left", 1));
105 m_commands.push_back(SimpleAVCommandItem(33, "Menu Right", "Cursor Right", 1));
106 m_commands.push_back(SimpleAVCommandItem(34, "Page Up", "", 1));
107 m_commands.push_back(SimpleAVCommandItem(35, "Page Down", "", 1));
108 m_commands.push_back(SimpleAVCommandItem(36, "Select", "OK", 1));
109 m_commands.push_back(SimpleAVCommandItem(37, "Exit", "", 1));
110 m_commands.push_back(SimpleAVCommandItem(38, "Input", "Input Select", 1));
111 m_commands.push_back(SimpleAVCommandItem(39, "Power", "Standby", 1));
112 m_commands.push_back(SimpleAVCommandItem(40, "Enter Channel", "Channel Enter", 1));
113 m_commands.push_back(SimpleAVCommandItem(41, "10", "", 1));
114 m_commands.push_back(SimpleAVCommandItem(42, "11", "", 1));
115 m_commands.push_back(SimpleAVCommandItem(43, "12", "", 1));
116 m_commands.push_back(SimpleAVCommandItem(44, "13", "", 1));
117 m_commands.push_back(SimpleAVCommandItem(45, "14", "", 1));
118 m_commands.push_back(SimpleAVCommandItem(46, "15", "", 1));
119 m_commands.push_back(SimpleAVCommandItem(47, "16", "", 1));
120 m_commands.push_back(SimpleAVCommandItem(48, "10", "10+", 1));
121 m_commands.push_back(SimpleAVCommandItem(49, "20", "20+", 1));
122 m_commands.push_back(SimpleAVCommandItem(50, "100", "", 1));
123 m_commands.push_back(SimpleAVCommandItem(51, "-/--", "", 1));
124 m_commands.push_back(SimpleAVCommandItem(52, "3-CH", "", 1));
125 m_commands.push_back(SimpleAVCommandItem(53, "3D", "Simulated Stereo", 1));

Callers

nothing calls this directly

Calls 2

SimpleAVCommandItemClass · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected