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);
127 QString getSettingsFile();
128 QString getDefaultSessionRootFolder()
const;
139 static ProfileManager* getInstance(QString defaultProfile = QString(
"Laboratory"));
140 static void initialize();
141 static void shutdown();
143 QStringList getProfiles();
146 void setActiveProfile(QString uid);
151 QString getSettingsPath();
154 void activeProfileChanged();
165 QString getDefaultProfileUid(QString defaultProfile);
166 void profilesChanged();
167 QStringList getInstalledProfiles();
168 QStringList getCustomProfiles();
169 QStringList getProfilesInFolder(QString folder);
171 QString getCustomPath();
172 void newProfile(QString uid);
173 void copyProfile(QString base, QString uid);
174 QString getPathForInstalled(QString uid);
175 QString getPathForCustom(QString uid);
176 void createCustomProfile(QString uid);
186 #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.