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

index 209c1f2..e8a976b 100644 (file)
@@ -30,7 +30,9 @@ namespace ctx {
                ~ContextStoreService();
 
        protected:
-               void prepare();
+               bool prepare();
+               void cleanup();
+               void onUserActivated(uid_t uid);
                ClientProxy* createProxy(const std::string& busName);
        };
 
index 3b58047..c0d8092 100644 (file)
@@ -29,7 +29,16 @@ ContextStoreService::~ContextStoreService()
 {
 }
 
-void ContextStoreService::prepare()
+bool ContextStoreService::prepare()
+{
+       return false;
+}
+
+void ContextStoreService::cleanup()
+{
+}
+
+void ContextStoreService::onUserActivated(uid_t uid)
 {
 }
 
index d9c9d04..7abe338 100644 (file)
@@ -29,9 +29,18 @@ ContextStoreService::~ContextStoreService()
 {
 }
 
-void ContextStoreService::prepare()
+bool ContextStoreService::prepare()
 {
        /* Service-specific initialization tasks */
+       return true;
+}
+
+void ContextStoreService::cleanup()
+{
+}
+
+void ContextStoreService::onUserActivated(uid_t uid)
+{
 }
 
 ClientProxy* ContextStoreService::createProxy(const std::string& busName)