diff options
author | Karsten Heimrich <karsten.heimrich@theqtcompany.com> | 2015-07-07 11:32:13 +0200 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@theqtcompany.com> | 2015-07-10 08:54:06 +0000 |
commit | 38799ceaf111fb44665c1dd0e33896120d175ebc (patch) | |
tree | 7c3215dad4ec9f8962c44f2a915ba7809859cf45 /src/libs/kdtools/kdupdaterupdateoperations.h | |
parent | 39a56f719a24a75e303d3a34f73a9c8cb1a01a34 (diff) |
Make use of the new varadic template feature + cosmetic changes.
Change constructor to take the a package manager argument. Add a
package manager member to the operation. Remove setter function.
Change-Id: Iffb860e24089beb6496ac4ee479d547a29463728
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'src/libs/kdtools/kdupdaterupdateoperations.h')
-rw-r--r-- | src/libs/kdtools/kdupdaterupdateoperations.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libs/kdtools/kdupdaterupdateoperations.h b/src/libs/kdtools/kdupdaterupdateoperations.h index c04105c82..5114196a9 100644 --- a/src/libs/kdtools/kdupdaterupdateoperations.h +++ b/src/libs/kdtools/kdupdaterupdateoperations.h @@ -42,7 +42,7 @@ namespace KDUpdater { class KDTOOLS_EXPORT CopyOperation : public UpdateOperation { public: - CopyOperation(); + explicit CopyOperation(QInstaller::PackageManagerCore *core = 0); ~CopyOperation(); void backup(); @@ -59,7 +59,7 @@ private: class KDTOOLS_EXPORT MoveOperation : public UpdateOperation { public: - MoveOperation(); + explicit MoveOperation(QInstaller::PackageManagerCore *core = 0); ~MoveOperation(); void backup(); @@ -71,7 +71,7 @@ public: class KDTOOLS_EXPORT DeleteOperation : public UpdateOperation { public: - DeleteOperation(); + explicit DeleteOperation(QInstaller::PackageManagerCore *core = 0); ~DeleteOperation(); void backup(); @@ -85,7 +85,7 @@ public: class KDTOOLS_EXPORT MkdirOperation : public UpdateOperation { public: - MkdirOperation(); + explicit MkdirOperation(QInstaller::PackageManagerCore *core = 0); void backup(); bool performOperation(); @@ -96,7 +96,7 @@ public: class KDTOOLS_EXPORT RmdirOperation : public UpdateOperation { public: - RmdirOperation(); + RmdirOperation(QInstaller::PackageManagerCore *core = 0); void backup(); bool performOperation(); @@ -107,7 +107,7 @@ public: class KDTOOLS_EXPORT AppendFileOperation : public UpdateOperation { public: - AppendFileOperation(); + explicit AppendFileOperation(QInstaller::PackageManagerCore *core = 0); void backup(); bool performOperation(); @@ -118,7 +118,7 @@ public: class KDTOOLS_EXPORT PrependFileOperation : public UpdateOperation { public: - PrependFileOperation(); + explicit PrependFileOperation(QInstaller::PackageManagerCore *core = 0); void backup(); bool performOperation(); |