Add skeletal implementation of the rest of the commands

This commit is contained in:
Lorow
2024-11-12 00:09:23 +01:00
parent 2e51a9ae42
commit ef94fd7648
7 changed files with 170 additions and 37 deletions

View File

@@ -10,8 +10,19 @@ std::unique_ptr<Command> CommandManager::createCommand(CommandType type)
return std::make_unique<setWiFiCommand>(projectConfig);
case CommandType::UPDATE_WIFI:
return std::make_unique<updateWifiCommand>(projectConfig);
case CommandType::UPDATE_AP_WIFI:
return std::make_unique<updateAPWiFiCommand>(projectConfig);
case CommandType::DELETE_NETWORK:
return std::make_unique<deleteWifiCommand>(projectConfig);
case CommandType::SET_MDNS:
return std::make_unique<setMDNSCommand>(projectConfig);
// updating the mnds name is essentially the same operation
case CommandType::UPDATE_MDNS:
return std::make_unique<setMDNSCommand>(projectConfig);
case CommandType::UPDATE_CAMERA:
return std::make_unique<updateCameraCommand>(projectConfig);
case CommandType::SAVE_CONFIG:
return std::make_unique<saveConfigCommand>(projectConfig);
default:
return nullptr;
}