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();
106 SettingsPtr mSettings;
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();
125 ProfilePtr activeProfile();
126 void setActiveProfile(QString uid);
131 QString getSettingsPath();
134 void activeProfileChanged();
141 QSettingsPtr getGenericSettings();
143 SettingsPtr mSettings;
145 QString getDefaultProfileUid(QString defaultProfile);
146 void profilesChanged();
147 QStringList getInstalledProfiles();
148 QStringList getCustomProfiles();
149 QStringList getProfilesInFolder(QString folder);
151 QString getCustomPath();
152 void newProfile(QString uid);
153 void copyProfile(QString base, QString uid);
154 QString getPathForInstalled(QString uid);
155 QString getPathForCustom(QString uid);
156 void createCustomProfile(QString uid);
159 cxResource_EXPORT ProfilePtr
profile();
166 #endif // CXPROFILE_H cxResource_EXPORT ProfilePtr profile()
boost::shared_ptr< class Settings > SettingsPtr
boost::shared_ptr< class StringProperty > StringPropertyPtr
Customized interface for setting values in QSettings.
boost::shared_ptr< class QSettings > QSettingsPtr
Settings * settings()
Shortcut for accessing the settings instance.
boost::shared_ptr< class Profile > ProfilePtr
Helper class for xml files used to store ssc/cx data.
Namespace for all CustusX production code.