summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/packagemanagercore.h
diff options
context:
space:
mode:
authorKatja Marttila <katja.marttila@qt.io>2019-05-31 13:30:18 +0300
committerIikka Eklund <iikka.eklund@qt.io>2019-12-04 12:11:59 +0000
commit0842ea01554202b4552911c827417acb00a03cf1 (patch)
tree8633ef3e268a2f0064f0051755bd2e0d7ec6eb04 /src/libs/installer/packagemanagercore.h
parentf8ade64515482e2079fde805b93ee11e3dae44f5 (diff)
Install selected packages from CLI
Also move targetDirWarning() from targetdirectorypage to packagemanager and move target directory check to checkTargetDir() function so that those are accessible also without UI. Change-Id: Ia38cc7e66bb542e6a60fea2c39cc3b80735564ef Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
Diffstat (limited to 'src/libs/installer/packagemanagercore.h')
-rw-r--r--src/libs/installer/packagemanagercore.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libs/installer/packagemanagercore.h b/src/libs/installer/packagemanagercore.h
index d9e953882..86760e8be 100644
--- a/src/libs/installer/packagemanagercore.h
+++ b/src/libs/installer/packagemanagercore.h
@@ -199,6 +199,9 @@ public:
Q_INVOKABLE bool fileExists(const QString &filePath) const;
Q_INVOKABLE QString readFile(const QString &filePath, const QString &codecName) const;
+ bool checkTargetDir(const QString &targetDirectory);
+ QString targetDirWarning(const QString &targetDirectory) const;
+
public:
ScriptEngine *componentScriptEngine() const;
ScriptEngine *controlScriptEngine() const;
@@ -228,6 +231,8 @@ public:
void listInstalledPackages();
void listAvailablePackages(const QString &regexp);
void updateComponentsSilently(const QStringList &componentsToUpdate);
+ void installSelectedComponentsSilently(const QStringList& components);
+
// convenience
Q_INVOKABLE bool isInstaller() const;
Q_INVOKABLE bool isOfflineOnly() const;