Changeset View
Changeset View
Standalone View
Standalone View
src/gui/kprocessrunner_p.h
Show First 20 Lines • Show All 101 Lines • ▼ Show 20 Line(s) | 101 | private Q_SLOTS: | |||
---|---|---|---|---|---|
102 | void slotProcessExited(int, QProcess::ExitStatus); | 102 | void slotProcessExited(int, QProcess::ExitStatus); | ||
103 | void slotProcessError(QProcess::ProcessError error); | 103 | void slotProcessError(QProcess::ProcessError error); | ||
104 | void slotProcessStarted(); | 104 | void slotProcessStarted(); | ||
105 | 105 | | |||
106 | private: | 106 | private: | ||
107 | void init(const KService::Ptr &service, const QString &bin, const QString &userVisibleName, | 107 | void init(const KService::Ptr &service, const QString &bin, const QString &userVisibleName, | ||
108 | const QString &iconName, const QByteArray &asn); | 108 | const QString &iconName, const QByteArray &asn); | ||
109 | void startProcess(); | 109 | void startProcess(); | ||
110 | void registerCGroup(); | ||||
110 | void terminateStartupNotification(); | 111 | void terminateStartupNotification(); | ||
111 | void emitDelayedError(const QString &errorMsg); | 112 | void emitDelayedError(const QString &errorMsg); | ||
112 | 113 | | |||
113 | std::unique_ptr<KProcess> m_process; | 114 | std::unique_ptr<KProcess> m_process; | ||
114 | const QString m_executable; // can be a full path | 115 | const QString m_executable; // can be a full path | ||
115 | KStartupInfoId m_startupId; | 116 | KStartupInfoId m_startupId; | ||
117 | QString m_scopeId; | ||||
116 | qint64 m_pid = 0; | 118 | qint64 m_pid = 0; | ||
117 | 119 | | |||
118 | Q_DISABLE_COPY(KProcessRunner) | 120 | Q_DISABLE_COPY(KProcessRunner) | ||
119 | }; | 121 | }; | ||
120 | 122 | | |||
121 | #endif | 123 | #endif |