The base operation data for all client operations.
More...
#include <client.h>
|
Signal3< uint64_t, ActivityStates, uint64_t > | stateChanged |
| Signal emitted when the state of the operation changes.
|
|
Signal4< uint64_t, int32_t, int32_t, int32_t > | progressChanged |
| Signal emitted when the progress of the operation changes.
|
|
The base operation data for all client operations.
Example of use of state changed and progress changed events:
void LoadMyTask1(
Client *client)
{
{
}
}
void progressChanged(uint64_t senderId, int32_t min, int32_t max, int32_t cur)
{
}
{
}
Communication client declaration.
Definition client.h:4639
Globals::Results flashFileLoad(ClientStruct::FlashFileLoadData &data)
Load a file to the flash of the connected device.
The data for the flashFileLoad method.
Definition client.h:915
void setFlags(Flagss value)
Set the operation flags. [IN].
void setSource(String value)
Set the source file name. [IN].
void setTarget(String value)
Set the target file name. [IN].
@ fOverwrite
Overwrite target file.
Definition client.h:930
Signal3< uint64_t, ActivityStates, uint64_t > stateChanged
Signal emitted when the state of the operation changes.
Definition client.h:267
Signal4< uint64_t, int32_t, int32_t, int32_t > progressChanged
Signal emitted when the progress of the operation changes.
Definition client.h:276
@ resSuccess
The operation completed successfully.
Definition globals.h:39
ActivityStates
The available operation states.
Definition client.h:65
◆ setProgress()
void setProgress |
( |
uint64_t | senderId, |
|
|
int32_t | min, |
|
|
int32_t | max, |
|
|
int32_t | cur ) |
Set the activity progress.
- Parameters
-
senderId | The identifier of the object firing the event |
min | Minimum progress value. |
max | Maximum progress value. |
cur | Current progress value. |
◆ setState()
void setState |
( |
uint64_t | senderId, |
|
|
ActivityStates | state, |
|
|
uint64_t | data = 0 ) |
Set the activity state.
- Parameters
-
senderId | The identifier of the object firing the event |
state | The activity state string. |
data | Optional data for state |
◆ progressChanged
Signal4<uint64_t, int32_t, int32_t, int32_t> progressChanged |
Signal emitted when the progress of the operation changes.
- Parameters
-
senderId | The identifier of the object firing the event |
min | Minimum progress value. |
max | Maximum progress value. |
cur | Current progress value. |
◆ stateChanged
Signal emitted when the state of the operation changes.
- Parameters
-
senderId | The identifier of the object firing the event |
state | The activity state string |
data | Optional data for state |