@@ -23,6 +23,7 @@ class Command {
2323 Image,
2424 InputSource,
2525 Instance,
26+ InstanceData,
2627 LedColors,
2728 LedDevice,
2829 Logging,
@@ -34,8 +35,7 @@ class Command {
3435 System,
3536 Temperature,
3637 Transform,
37- VideoMode,
38- GetCurrentImage
38+ VideoMode
3939 };
4040
4141 static QString toString (Type type) {
@@ -54,6 +54,7 @@ class Command {
5454 case Image: return " image" ;
5555 case InputSource: return " inputsource" ;
5656 case Instance: return " instance" ;
57+ case InstanceData: return " instance-data" ;
5758 case LedColors: return " ledcolors" ;
5859 case LedDevice: return " leddevice" ;
5960 case Logging: return " logging" ;
@@ -66,7 +67,6 @@ class Command {
6667 case Transform: return " transform" ;
6768 case VideoMode: return " videomode" ;
6869 case Service: return " service" ;
69- case GetCurrentImage: return " getcurrentimage" ;
7070 default : return " unknown" ;
7171 }
7272 }
@@ -87,7 +87,9 @@ class SubCommand {
8787 Discover,
8888 GetConfig,
8989 GetConfigOld,
90+ GetImageSnapshot,
9091 GetInfo,
92+ GetLedSnapshot,
9193 GetPendingTokenRequests,
9294 GetProperties,
9395 GetSchema,
@@ -138,7 +140,9 @@ class SubCommand {
138140 case Discover: return " discover" ;
139141 case GetConfig: return " getconfig" ;
140142 case GetConfigOld: return " getconfig-old" ;
143+ case GetImageSnapshot: return " getImageSnapshot" ;
141144 case GetInfo: return " getInfo" ;
145+ case GetLedSnapshot: return " getLedSnapshot" ;
142146 case GetPendingTokenRequests: return " getPendingTokenRequests" ;
143147 case GetProperties: return " getProperties" ;
144148 case GetSchema: return " getschema" ;
@@ -296,6 +300,9 @@ class ApiCommandRegister {
296300 { {" instance" , " startInstance" }, { Command::Instance, SubCommand::StartInstance, Authorization::Yes, InstanceCmd::No, NoListenerCmd::Yes} },
297301 { {" instance" , " stopInstance" }, { Command::Instance, SubCommand::StopInstance, Authorization::Yes, InstanceCmd::No, NoListenerCmd::Yes} },
298302 { {" instance" , " switchTo" }, { Command::Instance, SubCommand::SwitchTo, Authorization::Yes, InstanceCmd::No, NoListenerCmd::Yes} },
303+ { {" instance-data" , " " }, { Command::InstanceData, SubCommand::Empty, Authorization::Yes, InstanceCmd::Yes, NoListenerCmd::Yes} },
304+ { {" instance-data" , " getImageSnapshot" }, { Command::InstanceData, SubCommand::GetImageSnapshot, Authorization::Yes, InstanceCmd::Yes, NoListenerCmd::Yes} },
305+ { {" instance-data" , " getLedSnapshot" }, { Command::InstanceData, SubCommand::GetLedSnapshot, Authorization::Yes, InstanceCmd::Yes, NoListenerCmd::Yes } },
299306 { {" ledcolors" , " imagestream-start" }, { Command::LedColors, SubCommand::ImageStreamStart, Authorization::Yes, InstanceCmd::Yes, NoListenerCmd::Yes} },
300307 { {" ledcolors" , " imagestream-stop" }, { Command::LedColors, SubCommand::ImageStreamStop, Authorization::Yes, InstanceCmd::Yes, NoListenerCmd::Yes} },
301308 { {" ledcolors" , " ledstream-start" }, { Command::LedColors, SubCommand::LedStreamStart, Authorization::Yes, InstanceCmd::Yes, NoListenerCmd::Yes} },
@@ -324,8 +331,7 @@ class ApiCommandRegister {
324331 { {" system" , " toggleIdle" }, { Command::System, SubCommand::ToggleIdle, Authorization::Yes, InstanceCmd::No, NoListenerCmd::Yes} },
325332 { {" temperature" , " " }, { Command::Temperature, SubCommand::Empty, Authorization::Yes, InstanceCmd::Yes, NoListenerCmd::Yes} },
326333 { {" transform" , " " }, { Command::Transform, SubCommand::Empty, Authorization::Yes, InstanceCmd::Yes, NoListenerCmd::Yes} },
327- { {" videomode" , " " }, { Command::VideoMode, SubCommand::Empty, Authorization::Yes, InstanceCmd::No, NoListenerCmd::Yes} },
328- { {" getcurrentimage" , " " }, { Command::GetCurrentImage, SubCommand::Empty, Authorization::Yes, InstanceCmd::No, NoListenerCmd::Yes} }
334+ { {" videomode" , " " }, { Command::VideoMode, SubCommand::Empty, Authorization::Yes, InstanceCmd::No, NoListenerCmd::Yes} }
329335 };
330336 return commandLookup;
331337 }
0 commit comments