13 #include "boost/bind.hpp"
25 mPluginContext(pluginContext),
28 this->initServiceListener();
31 void StateServiceProxy::initServiceListener()
35 boost::bind(&StateServiceProxy::onServiceAdded,
this, _1),
37 boost::bind(&StateServiceProxy::onServiceRemoved,
this, _1)
39 mServiceListener->open();
41 void StateServiceProxy::onServiceAdded(StateService* service)
43 mService.reset(service, null_deleter());
54 void StateServiceProxy::onServiceRemoved(StateService *service)
71 return mService->getVersionName();
81 return mService->getApplicationStateName();
86 return mService->getAllApplicationStateNames();
91 return mService->getWorkflowActions();
96 mService->setWorkFlowState(uid);
101 return mService->getActiveDesktop();
106 mService->saveDesktop(desktop);
111 mService->resetDesktop();
117 return mService->getWorkflow();