Implement the virtual functions added to the DBusService class 71/115471/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Mon, 20 Feb 2017 06:05:05 +0000 (15:05 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Mon, 20 Feb 2017 06:05:05 +0000 (15:05 +0900)
Change-Id: Ie8fd4ed13ae657b25bc507e761db579144949228
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
include/SensorRecorderService.h
src/server-dummy/SensorRecorderService.cpp
src/server/SensorRecorderService.cpp

index 4c7c5e1..8251bfe 100644 (file)
@@ -30,10 +30,10 @@ namespace ctx {
                ~SensorRecorderService();
 
        protected:
-               void prepare();
-               ClientProxy* createProxy(const std::string& busName);
-
+               bool prepare();
+               void cleanup();
                void onUserActivated(uid_t uid);
+               ClientProxy* createProxy(const std::string& busName);
        };
 
 }
index 6ea50b9..7a4c02e 100644 (file)
@@ -29,15 +29,20 @@ SensorRecorderService::~SensorRecorderService()
 {
 }
 
-void SensorRecorderService::prepare()
+bool SensorRecorderService::prepare()
 {
+       return false;
 }
 
-ClientProxy* SensorRecorderService::createProxy(const std::string& busName)
+void SensorRecorderService::cleanup()
 {
-       return NULL;
 }
 
 void SensorRecorderService::onUserActivated(uid_t uid)
 {
 }
+
+ClientProxy* SensorRecorderService::createProxy(const std::string& busName)
+{
+       return NULL;
+}
index d62ae19..598be97 100644 (file)
@@ -29,17 +29,22 @@ SensorRecorderService::~SensorRecorderService()
 {
 }
 
-void SensorRecorderService::prepare()
+bool SensorRecorderService::prepare()
 {
        /* Service-specific initialization tasks */
+       return true;
 }
 
-ClientProxy* SensorRecorderService::createProxy(const std::string& busName)
+void SensorRecorderService::cleanup()
 {
-       return new(std::nothrow) SensorRecorderClientProxy(this, busName);
 }
 
 void SensorRecorderService::onUserActivated(uid_t uid)
 {
        _I("New User: %u", uid);
 }
+
+ClientProxy* SensorRecorderService::createProxy(const std::string& busName)
+{
+       return new(std::nothrow) SensorRecorderClientProxy(this, busName);
+}