Fraxinus
17.12-rc3
An IGT application
|
#include <cxSessionStorageService.h>
Signals | |
void | cleared () |
emitted when session is cleared, before isLoading is called More... | |
void | sessionChanged () |
emitted after change to a new session (new or loaded or cleared) More... | |
void | isSaving (QDomElement &root) |
xml storage is available More... | |
void | isSavingSecond (QDomElement &root) |
Triggered after the isSaving signal, to allow for data that. More... | |
void | isLoading (QDomElement &root) |
emitted while loading a session. Xml storage is available, getRootFolder() is set to loaded value. More... | |
void | isLoadingSecond (QDomElement &root) |
Emitted after the isLoading signal, to allow for structures that must be loaded after core structures like PatientModel. More... | |
Public Member Functions | |
SessionStorageService () | |
virtual | ~SessionStorageService () |
virtual void | load (QString dir)=0 |
load session from dir, or create new session in this location if none exist More... | |
virtual void | save ()=0 |
Save all application data to XML file. More... | |
virtual void | clear ()=0 |
virtual bool | isValid () const =0 |
virtual QString | getRootFolder () const =0 |
virtual bool | isNull () const =0 |
QString | getSubFolder (QString relative) |
return and create a folder/path relative to root. Created if necessary. More... | |
Static Public Member Functions | |
static SessionStorageServicePtr | getNullObject () |
Persistent storage for the current session.
The storage consist of a root folder unique for this session, and an xml input/output. The folder structured is available whenever session isValid(). The xml tree is available during load/save only. Clients are supposed to listen to isSaving/isLoading, then save/load their xml data.
Definition at line 63 of file cxSessionStorageService.h.
cx::SessionStorageService::SessionStorageService | ( | ) |
Definition at line 40 of file cxSessionStorageService.cpp.
|
virtual |
Definition at line 45 of file cxSessionStorageService.cpp.
|
pure virtual |
Implemented in cx::SessionStorageServiceImpl, cx::SessionStorageServiceProxy, and cx::SessionStorageServiceNull.
|
signal |
emitted when session is cleared, before isLoading is called
|
static |
Definition at line 63 of file cxSessionStorageService.cpp.
|
pure virtual |
Implemented in cx::SessionStorageServiceImpl, cx::SessionStorageServiceProxy, and cx::SessionStorageServiceNull.
QString cx::SessionStorageService::getSubFolder | ( | QString | relative | ) |
return and create a folder/path relative to root. Created if necessary.
Definition at line 71 of file cxSessionStorageService.cpp.
|
signal |
emitted while loading a session. Xml storage is available, getRootFolder() is set to loaded value.
|
signal |
Emitted after the isLoading signal, to allow for structures that must be loaded after core structures like PatientModel.
|
pure virtual |
Implemented in cx::SessionStorageServiceImpl, cx::SessionStorageServiceNull, and cx::SessionStorageServiceProxy.
|
signal |
xml storage is available
|
signal |
Triggered after the isSaving signal, to allow for data that.
|
pure virtual |
Implemented in cx::SessionStorageServiceImpl, cx::SessionStorageServiceProxy, and cx::SessionStorageServiceNull.
|
pure virtual |
load session from dir, or create new session in this location if none exist
Implemented in cx::SessionStorageServiceImpl, cx::SessionStorageServiceProxy, and cx::SessionStorageServiceNull.
|
pure virtual |
Save all application data to XML file.
Implemented in cx::SessionStorageServiceImpl, cx::SessionStorageServiceProxy, and cx::SessionStorageServiceNull.
|
signal |
emitted after change to a new session (new or loaded or cleared)