1 #ifndef DALI_INTERNAL_ADAPTOR_AUTOMATION_H
2 #define DALI_INTERNAL_ADAPTOR_AUTOMATION_H
5 * Copyright (c) 2022 Samsung Electronics Co., Ltd.
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
25 #include <dali/internal/network/common/client-send-data-interface.h>
34 * @brief The automation functions allow a way to control Dali via a network socket.
36 * The functions must be called from the event thread only.
38 * Any functions which require a response to be sent back to the network client
39 * use the ClientSendDataInterface interface.
42 * Dali network client thread <---- "dump_scene" from network
43 * Dali main thread "json data" -----> network
49 * @brief Sets properties on an Actor.
50 * No ClientSendDataInterface required, as no response is sent back
51 * @param[in] message set property message
53 void SetProperty(const std::string& message);
56 * @brief Dumps the actor tree to the client
57 * @param[in] clientId unique network client id
58 * @param[in] sendData interface to transmit data to the client
60 void DumpScene(unsigned int clientId, ClientSendDataInterface* sendData);
64 * @brief Sets a custom command.
65 * No ClientSendDataInterface required, as no response is sent back
66 * @param[in] message custom message
68 void SetCustomCommand(const std::string& message);
71 } // namespace Automation
73 } // namespace Adaptor
75 } // namespace Internal