This class is used for requesting historical data and storing the results. More...
Header: | #include <QOpcUaHistoryReadResponse> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
qmake: | QT += opcua |
Since: | Qt 6.3 |
Inherits: | QObject |
enum class | State { Unknown, Reading, Finished, MoreDataAvailable, Error } |
virtual | ~QOpcUaHistoryReadResponse() |
QList<QOpcUaHistoryData> | data() const |
bool | hasMoreData() const |
bool | readMoreData() |
bool | releaseContinuationPoints() |
QOpcUa::UaStatusCode | serviceResult() const |
QOpcUaHistoryReadResponse::State | state() const |
void | readHistoryDataFinished(const QList<QOpcUaHistoryData> &results, QOpcUa::UaStatusCode serviceResult) |
void | stateChanged(QOpcUaHistoryReadResponse::State state) |
A historical data request to an OPC UA server can be specified by a QOpcUaHistoryReadRawRequest.
Objects of this class and the statuscode of the request are returned in the QOpcUaHistoryReadResponse::readHistoryDataFinished(const QList<QOpcUaHistoryData> &results, QOpcUa::UaStatusCode serviceResult) signal and contain the result of a request.
This enum specifies the state the response is in.
Constant | Value |
---|---|
QOpcUaHistoryReadResponse::State::Unknown |
0 |
QOpcUaHistoryReadResponse::State::Reading |
1 |
QOpcUaHistoryReadResponse::State::Finished |
2 |
QOpcUaHistoryReadResponse::State::MoreDataAvailable |
3 |
QOpcUaHistoryReadResponse::State::Error |
4 |
[signal]
void QOpcUaHistoryReadResponse::readHistoryDataFinished(const QList<QOpcUaHistoryData> &results, QOpcUa::UaStatusCode serviceResult)This signal is emitted when a historical data request is finished. It adds to results and sets serviceResult to indicate the state of the result.
See also data() and serviceResult().
[signal]
void QOpcUaHistoryReadResponse::stateChanged(QOpcUaHistoryReadResponse::State state)This signal is emitted when the of a historical data request is changed. It sets state to indicate the state of the change.
[virtual]
QOpcUaHistoryReadResponse::~QOpcUaHistoryReadResponse()The destructor for QOpcUaHistoryReadResponse
Returns a list which contains the requested historic data.
Returns true
if there are more values available from the historic data request.
Returns true
if a read request for more historic values is successfully dispatched.
Releases the continuation points and sets the request as finished. Returns true
if the pending request has been successfully finished; otherwise returns false.
Returns the serviceresult of the historic data request.
Returns the current state of historic data request.