summaryrefslogtreecommitdiff
path: root/core/SystemStatus.cpp
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2019-06-14 18:48:31 -0700
committerLinux Build Service Account <lnxbuild@localhost>2019-06-14 18:48:31 -0700
commit2625e7083ff118e8da856eb1dd04d39d2a527e22 (patch)
tree72b04289561812bf1a52d5c14cfa2e6986cd76e1 /core/SystemStatus.cpp
parent2d333ab2d898e1119576b2507fa5f1e95b90d124 (diff)
parent3bbb89aee1a89cc7d268927ac8265a70a330f2fb (diff)
downloadgps-2625e7083ff118e8da856eb1dd04d39d2a527e22.tar.gz
Merge 3bbb89aee1a89cc7d268927ac8265a70a330f2fb on remote branch
Change-Id: I8ce184682331aed809cdf4e36611ccd7b84c02e3
Diffstat (limited to 'core/SystemStatus.cpp')
-rw-r--r--core/SystemStatus.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/core/SystemStatus.cpp b/core/SystemStatus.cpp
index 18cb99c..9ca126f 100644
--- a/core/SystemStatus.cpp
+++ b/core/SystemStatus.cpp
@@ -1723,5 +1723,18 @@ bool SystemStatus::eventConnectionStatus(bool connected, int8_t type,
return true;
}
+/******************************************************************************
+@brief API to update power connect state
+
+@param[In] power connect status
+
+@return true when successfully done
+******************************************************************************/
+bool SystemStatus::updatePowerConnectState(bool charging)
+{
+ SystemStatusPowerConnectState s(charging);
+ mSysStatusObsvr.notify({&s});
+ return true;
+}
} // namespace loc_core