1/*
2 This file is part of the KDE libraries
3 SPDX-FileCopyrightText: 2020-2021 David Redondo <kde@david-redondo.de>
4
5 SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6*/
7
8#ifndef DBUSACTIVATIONRUNNER_P_H
9#define DBUSACTIVATIONRUNNER_P_H
10
11#include "kprocessrunner_p.h"
12
13class DBusActivationRunner : public KProcessRunner
14{
15 Q_OBJECT
16public:
17 explicit DBusActivationRunner(const QString &action);
18 void startProcess() override;
19 bool waitForStarted(int timeout = 30000) override;
20 static bool activationPossible(const KService::Ptr service, KIO::ApplicationLauncherJob::RunFlags flags, const QString &suggestedFileName);
21
22private:
23 QString m_actionName;
24 bool m_finished = false;
25};
26
27#endif
28

source code of kio/src/gui/dbusactivationrunner_p.h