14 #include "cxResourceExport.h"
18 #include "boost/shared_ptr.hpp"
31 typedef boost::shared_ptr<class Profile>
ProfilePtr;
41 class cxResource_EXPORT
Profile :
public QObject
61 QString getName()
const;
66 QString getUid()
const;
71 QString getPath()
const;
77 QStringList getApplicationToolConfigPaths();
82 QString getToolConfigFilePath();
83 void setToolConfigFilePath(QString path);
88 QString getSettingsPath();
95 QStringList getAllRootConfigPaths();
100 QString getSessionRootFolder()
const;
101 void setSessionRootFolder(QString path);
103 QString getPatientTemplatePath();
107 QString getSettingsFile();
108 QString getDefaultSessionRootFolder()
const;
119 static ProfileManager* getInstance(QString defaultProfile = QString(
"Laboratory"));
120 static void initialize();
121 static void shutdown();
123 QStringList getProfiles();
126 void setActiveProfile(QString uid);
131 QString getSettingsPath();
134 void activeProfileChanged();
146 QString getDefaultProfileUid(QString defaultProfile);
147 void profilesChanged();
148 QStringList getInstalledProfiles();
149 QStringList getCustomProfiles();
150 QStringList getProfilesInFolder(QString folder);
152 QString getCustomPath();
153 void newProfile(QString uid);
154 void copyProfile(QString base, QString uid);
155 QString getPathForInstalled(QString uid);
156 QString getPathForCustom(QString uid);
157 void createCustomProfile(QString uid);
167 #endif // CXPROFILE_H