File indexing completed on 2024-04-28 11:41:28

0001 /*
0002     This file is part of the KDE libraries
0003     SPDX-FileCopyrightText: 2020-2021 David Redondo <kde@david-redondo.de>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0006 */
0007 
0008 #ifndef DBUSACTIVATIONRUNNER_P_H
0009 #define DBUSACTIVATIONRUNNER_P_H
0010 
0011 #include "kprocessrunner_p.h"
0012 
0013 class DBusActivationRunner : public KProcessRunner
0014 {
0015     Q_OBJECT
0016 public:
0017     explicit DBusActivationRunner(const QString &action);
0018     void startProcess() override;
0019     bool waitForStarted(int timeout = 30000) override;
0020     static bool activationPossible(const KService::Ptr service, KIO::ApplicationLauncherJob::RunFlags flags, const QString &suggestedFileName);
0021 
0022 private:
0023     QString m_actionName;
0024     bool m_finished = false;
0025 };
0026 
0027 #endif