33 #ifndef CXSESSIONSTORAGESERVICEIMPL_H
34 #define CXSESSIONSTORAGESERVICEIMPL_H
36 #include "org_custusx_core_patientmodel_Export.h"
39 #include <QDomDocument>
41 class ctkPluginContext;
65 virtual void load(QString dir);
68 virtual bool isValid()
const;
69 virtual QString getRootFolder()
const;
70 virtual bool isNull()
const;
73 void onSessionChanged();
74 void startupLoadPatient();
76 void reportActivePatient();
77 void setActivePatient(
const QString& activePatientFolder);
78 QString getXmlFileName()
const;
80 bool isValidSessionFolder(QString dir)
const;
81 bool folderExists(QString dir)
const;
82 void loadSession(QString dir);
83 void initializeNewSession(QString dir);
84 bool isActivePatient(QString patient)
const;
85 void loadPatientSilent(QString choosenDir);
86 void writeRecentPatientData();
87 void generateSaveDoc(QDomDocument& doc);
88 void clearPatientSilent();
89 QString getNoPatientFolder()
const;
90 void createPatientFolders(QString dir);
91 static QString getVersionName();
92 QDomDocument readXmlFile(QString filename);
93 void writeXmlFile(QDomDocument doc, QString filename);
94 QString convertToValidFolderName(QString dir)
const;
96 QString getCommandLineStartupPatient();
98 QString mActivePatientFolder;
103 #endif // CXSESSIONSTORAGESERVICEIMPL_H