Add public function tdRemoveController() to telldus-core, see #108

This commit is contained in:
Micke Prag 2012-02-23 12:34:31 +01:00
parent 3de0a98f89
commit a766fe32de
5 changed files with 47 additions and 0 deletions

View file

@ -245,6 +245,10 @@ void ClientCommunicationHandler::parseMessage(const std::wstring &clientMessage,
std::wstring value = TelldusCore::Message::takeString(&msg);
(*intReturn) = d->controllerManager->setControllerValue(id, name, value);
} else if (function == L"tdRemoveController") {
int controllerId = TelldusCore::Message::takeInt(&msg);
(*intReturn) = d->controllerManager->removeController(controllerId);
} else{
(*intReturn) = TELLSTICK_ERROR_UNKNOWN;
}