35 #include "cxResourceExport.h" 39 #include "boost/shared_ptr.hpp" 52 typedef boost::shared_ptr<class Profile>
ProfilePtr;
62 class cxResource_EXPORT
Profile :
public QObject
82 QString getName()
const;
87 QString getUid()
const;
92 QString getPath()
const;
98 QStringList getApplicationToolConfigPaths();
103 QString getToolConfigFilePath();
104 void setToolConfigFilePath(QString path);
109 QString getSettingsPath();
116 QStringList getAllRootConfigPaths();
121 QString getSessionRootFolder()
const;
122 void setSessionRootFolder(QString path);
124 QString getPatientTemplatePath();
127 SettingsPtr mSettings;
128 QString getSettingsFile();
129 QString getDefaultSessionRootFolder()
const;
140 static ProfileManager* getInstance(QString defaultProfile = QString(
"Laboratory"));
141 static void initialize();
142 static void shutdown();
144 QStringList getProfiles();
146 ProfilePtr activeProfile();
147 void setActiveProfile(QString uid);
152 QString getSettingsPath();
155 void activeProfileChanged();
162 QSettingsPtr getGenericSettings();
164 SettingsPtr mSettings;
166 QString getDefaultProfileUid(QString defaultProfile);
167 void profilesChanged();
168 QStringList getInstalledProfiles();
169 QStringList getCustomProfiles();
170 QStringList getProfilesInFolder(QString folder);
172 QString getCustomPath();
173 void newProfile(QString uid);
174 void copyProfile(QString base, QString uid);
175 QString getPathForInstalled(QString uid);
176 QString getPathForCustom(QString uid);
177 void createCustomProfile(QString uid);
180 cxResource_EXPORT ProfilePtr
profile();
187 #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.