13 #include "boost/bind.hpp" 25 mPluginContext(pluginContext),
28 this->initServiceListener();
31 void SessionStorageServiceProxy::initServiceListener()
35 boost::bind(&SessionStorageServiceProxy::onServiceAdded,
this, _1),
37 boost::bind(&SessionStorageServiceProxy::onServiceRemoved,
this, _1)
39 mServiceListener->open();
86 return mService->isValid();
91 return mService->getRootFolder();
void isLoading(QDomElement &root)
emitted while loading a session. Xml storage is available, getRootFolder() is set to loaded value...
virtual void load(QString dir)
load session from dir, or create new session in this location if none exist
void isLoadingSecond(QDomElement &root)
Emitted after the isLoading signal, to allow for structures that must be loaded after core structures...
static SessionStorageServicePtr create(ctkPluginContext *pluginContext)
SessionStorageServiceProxy(ctkPluginContext *pluginContext)
virtual void save()
Save all application data to XML file.
void sessionChanged()
emitted after change to a new session (new or loaded or cleared)
virtual bool isValid() const
void cleared()
emitted when session is cleared, before isLoading is called
Helper class for listening to services being added, modified and removed.
virtual bool isNull() const
virtual QString getRootFolder() const
static SessionStorageServicePtr getNullObject()
void isSaving(QDomElement &root)
xml storage is available
boost::shared_ptr< class SessionStorageService > SessionStorageServicePtr
Namespace for all CustusX production code.