forked from Kistler-Group/sdbus-cpp
fix method name in example
This commit is contained in:
committed by
Urs Ritzmann
parent
dc0f487751
commit
b01db13ff7
@ -1003,7 +1003,7 @@ void concatenate(sdbus::Result<std::string>&& result, std::vector<int32_t> numbe
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Let's send the reply message back to the client
|
// Let's send the reply message back to the client
|
||||||
methodResult.returnReply(result);
|
methodResult.returnResults(result);
|
||||||
|
|
||||||
// Emit the 'concatenated' signal with the resulting string
|
// Emit the 'concatenated' signal with the resulting string
|
||||||
this->emitConcatenated(result);
|
this->emitConcatenated(result);
|
||||||
@ -1011,7 +1011,7 @@ void concatenate(sdbus::Result<std::string>&& result, std::vector<int32_t> numbe
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
The `Result` is a convenience class that represents a future method result, and it is where we write the results (`returnReply()`) or an error (`returnError()`) which we want to send back to the client.
|
The `Result` is a convenience class that represents a future method result, and it is where we write the results (`returnResults()`) or an error (`returnError()`) which we want to send back to the client.
|
||||||
|
|
||||||
Registraion (`implementedAs()`) doesn't change. Nothing else needs to change.
|
Registraion (`implementedAs()`) doesn't change. Nothing else needs to change.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user