From 53e469915bc6552c0d79cb6461512c7c1168ee2d Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Mon, 14 Oct 2019 12:31:10 +0100 Subject: IVGCVSW-3972 Implement the Disconnect functionality * Added Disconnect method to the ProfilingService class * Added unit test Signed-off-by: Matteo Martincigh Signed-off-by: Jim Flynn Change-Id: I5cc57abd3e1239cdf8afe21ee4883c1f73cd0e80 --- src/profiling/ProfilingService.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/profiling/ProfilingService.hpp') diff --git a/src/profiling/ProfilingService.hpp b/src/profiling/ProfilingService.hpp index dd70af4b39..d4fa85604c 100644 --- a/src/profiling/ProfilingService.hpp +++ b/src/profiling/ProfilingService.hpp @@ -45,6 +45,9 @@ public: // Updates the profiling service, making it transition to a new state if necessary void Update(); + // Disconnects the profiling service from the external server + void Disconnect(); + // Getters for the profiling service state const ICounterDirectory& GetCounterDirectory() const; ProfilingState GetCurrentState() const; @@ -70,6 +73,7 @@ private: void Initialize(); void InitializeCounterValue(uint16_t counterUid); void Reset(); + void Stop(); // Helper function void CheckCounterUid(uint16_t counterUid) const; -- cgit v1.2.1