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();
142 QSettingsPtr getGenericSettingsFromInstaller();
144 SettingsPtr mSettings;
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);
160 cxResource_EXPORT ProfilePtr
profile();
167 #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.