ContextStoreService(GDBusConnection* conn);
~ContextStoreService();
+ bool isUserService();
+
protected:
bool prepare();
void cleanup();
- void onUserActivated(uid_t uid);
+
ClientBase* createClient(const std::string& busName);
+
+ void onUserActivated();
+ void onUserDeactivated();
};
}
{
}
-bool ContextStoreService::prepare()
+bool ContextStoreService::isUserService()
{
return false;
}
-void ContextStoreService::cleanup()
+bool ContextStoreService::prepare()
{
+ return false;
}
-void ContextStoreService::onUserActivated(uid_t uid)
+void ContextStoreService::cleanup()
{
}
{
return NULL;
}
+
+void ContextStoreService::onUserActivated()
+{
+}
+
+void ContextStoreService::onUserDeactivated()
+{
+}
{
}
+bool ContextStoreService::isUserService()
+{
+ return false;
+}
+
bool ContextStoreService::prepare()
{
/* Service-specific initialization tasks */
{
}
-void ContextStoreService::onUserActivated(uid_t uid)
+ClientBase* ContextStoreService::createClient(const std::string& busName)
+{
+ return new(std::nothrow) ContextStoreClient(this, busName);
+}
+
+void ContextStoreService::onUserActivated()
{
}
-ClientBase* ContextStoreService::createClient(const std::string& busName)
+void ContextStoreService::onUserDeactivated()
{
- return new(std::nothrow) ContextStoreClient(this, busName);
}