summaryrefslogtreecommitdiffstats
path: root/src/diagnostic/active-diagnostic-request.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/diagnostic/active-diagnostic-request.hpp')
-rw-r--r--src/diagnostic/active-diagnostic-request.hpp22
1 files changed, 19 insertions, 3 deletions
diff --git a/src/diagnostic/active-diagnostic-request.hpp b/src/diagnostic/active-diagnostic-request.hpp
index f1128c5..1e996c0 100644
--- a/src/diagnostic/active-diagnostic-request.hpp
+++ b/src/diagnostic/active-diagnostic-request.hpp
@@ -79,9 +79,25 @@ private:
frequency_clock_t timeout_clock_; /*!< timeout_clock_ - A frequency_clock_t object to monitor how long it's been since
* this request was sent.*/
public:
+ bool& operator==(const active_diagnostic_request_t& adr) const;
+ active_diagnostic_request_t& operator=(const active_diagnostic_request_t& adr);
active_diagnostic_request_t();
-
- void updateDiagnosticRequestEntry(diagnostic_manager_t* manager, can_bus_dev_t* bus, DiagnosticRequest* request,
- const std::string name, bool wait_for_multiple_responses, const DiagnosticResponseDecoder decoder,
+ active_diagnostic_request_t(active_diagnostic_request_t&&) = default;
+ active_diagnostic_request_t(const active_diagnostic_request_t&) = default;
+ active_diagnostic_request_t(can_bus_dev_t* bus, DiagnosticRequest* request,
+ const std::string& name, bool waitForMultipleResponses,
+ const DiagnosticResponseDecoder decoder,
const DiagnosticResponseCallback callback, float frequencyHz);
+
+ can_bus_dev_t* get_can_bus_dev();
+ DiagnosticRequestHandle& get_handle();
+ bool get_recurring() const;
+ bool get_in_flight() const;
+
+ void set_handle(DiagnosticShims& shims, DiagnosticRequest* request);
+ void set_in_flight(bool val);
+
+ bool timed_out() const;
+ bool response_received() const;
+ bool request_completed() const;
};