swift
processctrl.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2016 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_MISC_PROCESS_H
7 #define SWIFT_MISC_PROCESS_H
8 
9 #include <QProcess>
10 
11 #include "misc/swiftmiscexport.h"
12 
13 namespace swift::misc
14 {
18  class SWIFT_MISC_EXPORT CProcessCtrl : public QProcess
19  {
20  public:
21  Q_OBJECT
22 
23  public:
25  CProcessCtrl(QObject *parent = nullptr);
26 
28  static bool startDetached(const QString &program, const QStringList &arguments, bool withConsoleWindow);
29  };
30 } // namespace swift::misc
31 
32 #endif // SWIFT_MISC_PROCESS_H
Wrapper around QProcess with additional features.
Definition: processctrl.h:19
Free functions in swift::misc.
#define SWIFT_MISC_EXPORT
Export a class or function from the library.