diff options
author | Robert Griebl <robert.griebl@pelagicore.com> | 2016-12-19 16:12:45 +0100 |
---|---|---|
committer | Robert Griebl <robert.griebl@pelagicore.com> | 2016-12-20 14:05:13 +0000 |
commit | 21b0244debfbb7c7faadd2e3b4f310e21dc3f8f1 (patch) | |
tree | 711c4744cc89091ff5f3f1e4a7f25457ae3bece5 /src/manager-lib/processcontainer.h | |
parent | bd41996dd1de3bccac4093897aeb30022e575b87 (diff) | |
download | qtapplicationmanager-21b0244debfbb7c7faadd2e3b4f310e21dc3f8f1.tar.gz |
Extended the container interface to make it aware of the app it is executing
This is needed for any container solution that needs to map a minimal amount
of filesystem directories into the container.
Change-Id: Ie6082e8427f1fb3b3068b0a912584d2cc736f63b
Reviewed-by: Bernd Weimer <bernd.weimer@pelagicore.com>
Diffstat (limited to 'src/manager-lib/processcontainer.h')
-rw-r--r-- | src/manager-lib/processcontainer.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/manager-lib/processcontainer.h b/src/manager-lib/processcontainer.h index 26bad726..bb8c198f 100644 --- a/src/manager-lib/processcontainer.h +++ b/src/manager-lib/processcontainer.h @@ -59,8 +59,8 @@ public: static QString defaultIdentifier(); bool supportsQuickLaunch() const override; - AbstractContainer *create() override; - AbstractContainer *create(const ContainerDebugWrapper &debugWrapper) override; + AbstractContainer *create(const Application *app) override; + AbstractContainer *create(const Application *app, const ContainerDebugWrapper &debugWrapper) override; }; class HostProcess : public AbstractContainerProcess @@ -74,14 +74,14 @@ public: virtual QProcess::ProcessState state() const override; void setRedirections(const QVector<int> &stdRedirections); + void setWorkingDirectory(const QString &dir); + void setProcessEnvironment(const QProcessEnvironment &environment); public slots: void kill() override; void terminate() override; void start(const QString &program, const QStringList &arguments); - void setWorkingDirectory(const QString &dir) override; - void setProcessEnvironment(const QProcessEnvironment &environment) override; void setStopBeforeExec(bool stopBeforeExec); private: @@ -102,8 +102,8 @@ class ProcessContainer : public AbstractContainer Q_OBJECT public: - explicit ProcessContainer(ProcessContainerManager *manager); - explicit ProcessContainer(const ContainerDebugWrapper &debugWrapper, ProcessContainerManager *manager); + explicit ProcessContainer(ProcessContainerManager *manager, const Application *app); + explicit ProcessContainer(ProcessContainerManager *manager, const Application *app, const ContainerDebugWrapper &debugWrapper); ~ProcessContainer(); QString controlGroup() const override; |