diff options
Diffstat (limited to 'src/profile.h')
| -rw-r--r-- | src/profile.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/profile.h b/src/profile.h index 32647591..9c678a23 100644 --- a/src/profile.h +++ b/src/profile.h @@ -41,6 +41,10 @@ class Profile : public QObject public: + typedef boost::shared_ptr<Profile> Ptr; + +public: + /** * @brief default constructor * @todo This constructor initialised nothing, the resulting object is not usable @@ -76,14 +80,18 @@ public: bool exists() const; /** - * @brief copy constructor - * * @param name of the new profile * @param reference profile to copy from **/ static Profile createFrom(const QString &name, const Profile &reference); /** + * @param name of the new profile + * @param reference profile to copy from + **/ + static Profile *createPtrFrom(const QString &name, const Profile &reference); + + /** * @brief write out the modlist.txt **/ void writeModlist() const; @@ -174,6 +182,8 @@ public: **/ QString getPath() const; + void rename(const QString &newName); + /** * @brief create the ini file to be used by the game * @@ -302,7 +312,6 @@ private: unsigned int m_NumRegularMods; QTimer *m_SaveTimer; - }; Q_DECLARE_METATYPE(Profile) |
