Update the service code skeleton w.r.t. the change of the active user monitoring... 55/117255/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Fri, 3 Mar 2017 11:03:37 +0000 (20:03 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Fri, 3 Mar 2017 11:03:37 +0000 (20:03 +0900)
Change-Id: I1f4c4189165340a09b85267626dce88791895f5c
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
include/SensorRecorderService.h
src/server-dummy/SensorRecorderService.cpp
src/server/SensorRecorderService.cpp

index e943065..79ebf2a 100644 (file)
@@ -29,10 +29,12 @@ namespace ctx {
                SensorRecorderService(GDBusConnection* conn);
                ~SensorRecorderService();
 
+               bool isUserService();
+
        protected:
                bool prepare();
                void cleanup();
-               void onUserActivated(uid_t uid);
+
                ClientBase* createClient(const std::string& busName);
        };
 
index 841dbd8..2501a40 100644 (file)
@@ -29,16 +29,17 @@ SensorRecorderService::~SensorRecorderService()
 {
 }
 
-bool SensorRecorderService::prepare()
+bool SensorRecorderService::isUserService()
 {
-       return false;
+       return true;
 }
 
-void SensorRecorderService::cleanup()
+bool SensorRecorderService::prepare()
 {
+       return false;
 }
 
-void SensorRecorderService::onUserActivated(uid_t uid)
+void SensorRecorderService::cleanup()
 {
 }
 
index fa6399c..bc68956 100644 (file)
@@ -29,19 +29,19 @@ SensorRecorderService::~SensorRecorderService()
 {
 }
 
-bool SensorRecorderService::prepare()
+bool SensorRecorderService::isUserService()
 {
-       /* Service-specific initialization tasks */
        return true;
 }
 
-void SensorRecorderService::cleanup()
+bool SensorRecorderService::prepare()
 {
+       /* Service-specific initialization tasks */
+       return true;
 }
 
-void SensorRecorderService::onUserActivated(uid_t uid)
+void SensorRecorderService::cleanup()
 {
-       _I("New User: %u", uid);
 }
 
 ClientBase* SensorRecorderService::createClient(const std::string& busName)