diff options
author | 2019-06-06 17:55:08 +0900 | |
---|---|---|
committer | 2019-06-06 17:55:08 +0900 | |
commit | ac17da7010c6bd90240a641d503991ca5d0cb41a (patch) | |
tree | a8311029c5c7bc92a64694a1d8d2339b4e1ca38b /src/wm_connection.cpp | |
parent | 98006b6538c5be44350746ec3756f004a5c68af8 (diff) |
Add chage remote app
Signed-off-by: fukubayashi.akio <fukubayashi.akio@genetec.co.jp>
Diffstat (limited to 'src/wm_connection.cpp')
-rw-r--r-- | src/wm_connection.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
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); |