Dali 3D User Interface Engine
Functions
Dali::Internal::Adaptor::Automation Namespace Reference

The automation functions allow a way to control Dali via a network socket. More...

Functions

void SetProperty (const std::string &message)
 Sets properties on an Actor. More...
 
void DumpScene (unsigned int clientId, ClientSendDataInterface *sendData)
 Dumps the actor tree to the client. More...
 

Detailed Description

The automation functions allow a way to control Dali via a network socket.

The functions must be called from the event thread only.

Any functions which require a response to be sent back to the network client use the ClientSendDataInterface interface.

E.g. Dali network client thread <-— "dump_scene" from network Dali main thread "json data" --—> network

Function Documentation

void Dali::Internal::Adaptor::Automation::DumpScene ( unsigned int  clientId,
ClientSendDataInterface *  sendData 
)

Dumps the actor tree to the client.

Parameters
[in]clientIdunique network client id
[in]sendDatainterface to transmit data to the client

Definition at line 323 of file automation.cpp.

References GetActorTree(), and Dali::Internal::Adaptor::ClientSendDataInterface::SendData().

Referenced by Dali::Internal::Adaptor::anonymous_namespace{network-performance-client.cpp}::AutomationCallback::RunCallback().

Here is the call graph for this function:

Here is the caller graph for this function:

void Dali::Internal::Adaptor::Automation::SetProperty ( const std::string &  message)

Sets properties on an Actor.

No ClientSendDataInterface required, as no response is sent back

Parameters
[in]messageset property message

Definition at line 311 of file automation.cpp.

References DALI_LOG_ERROR, anonymous_namespace{automation.cpp}::MAX_SET_PROPERTY_STRING_LENGTH, and anonymous_namespace{automation.cpp}::SetProperties().

Referenced by Dali::Internal::Adaptor::anonymous_namespace{network-performance-client.cpp}::AutomationCallback::RunCallback().

Here is the call graph for this function:

Here is the caller graph for this function:

Dali Docs Home
Read more about Dali