From ac17da7010c6bd90240a641d503991ca5d0cb41a Mon Sep 17 00:00:00 2001 From: "fukubayashi.akio" Date: Thu, 6 Jun 2019 17:55:08 +0900 Subject: Add chage remote app Signed-off-by: fukubayashi.akio --- src/wm_connection.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/wm_connection.cpp') diff --git a/src/wm_connection.cpp b/src/wm_connection.cpp index af970f5..16bb2d6 100644 --- a/src/wm_connection.cpp +++ b/src/wm_connection.cpp @@ -290,6 +290,20 @@ bool WMConnection::isRemoteArea(const char* area) return false; } +bool WMConnection::isRemoteEcu(std::string appid) +{ + std::string appToEcuName = this->getAppIdToEcuName(appid); + + if (appToEcuName == this->getEcuName() || appToEcuName == "") + { + return false; + } + else + { + return true; + } +} + bool WMConnection::isConnecting(std::string ecu_name) { return (0 > this->wm_socket[ecu_name].connectedSocket()) ? false : true; @@ -438,6 +452,11 @@ bool WMConnection::getEndInit() return this->end_init; } +int WMConnection::getSleepTime() +{ + return this->sleep; +} + void WMConnection::callOnReceivedHandler(json_object *j_out) { this->onReceived(j_out); -- cgit