33 #ifndef CXSESSIONSTORAGESERVICEIMPL_H 34 #define CXSESSIONSTORAGESERVICEIMPL_H 36 #include "org_custusx_core_patientmodel_Export.h" 40 class ctkPluginContext;
58 virtual void load(QString dir);
61 virtual bool isValid()
const;
62 virtual QString getRootFolder()
const;
63 virtual bool isNull()
const;
66 void onSessionChanged();
67 void startupLoadPatient();
69 void reportActivePatient();
70 void setActivePatient(
const QString& activePatientFolder);
71 QString getXmlFileName()
const;
73 bool isValidSessionFolder(QString dir)
const;
74 bool folderExists(QString dir)
const;
75 void loadSession(QString dir);
76 void initializeNewSession(QString dir);
77 bool isActivePatient(QString patient)
const;
78 void loadPatientSilent(QString choosenDir);
79 void writeRecentPatientData();
80 void generateSaveDoc(QDomDocument& doc);
81 void clearPatientSilent();
82 QString getNoPatientFolder()
const;
83 void createPatientFolders(QString dir);
84 static QString getVersionName();
85 QString convertToValidFolderName(QString dir)
const;
87 QString getCommandLineStartupPatient();
89 QString mActivePatientFolder;
94 #endif // CXSESSIONSTORAGESERVICEIMPL_H
Namespace for all CustusX production code.