MailTransport

precommandjob.h
1 /*
2  SPDX-FileCopyrightText: 2007 Volker Krause <[email protected]>
3 
4  Based on KMail code by:
5  SPDX-FileCopyrightText: 1996-1998 Stefan Taferner <[email protected]>
6  SPDX-FileCopyrightText: 2000-2002 Michael Haeckel <[email protected]>
7 
8  SPDX-License-Identifier: LGPL-2.0-or-later
9 */
10 
11 #ifndef MAILTRANSPORT_PRECOMMANDJOB_H
12 #define MAILTRANSPORT_PRECOMMANDJOB_H
13 
14 #include "mailtransport_export.h"
15 
16 #include <KJob>
17 
18 class PreCommandJobPrivate;
19 
20 namespace MailTransport {
29 class MAILTRANSPORT_EXPORT PrecommandJob : public KJob
30 {
31  Q_OBJECT
32 
33 public:
39  explicit PrecommandJob(const QString &precommand, QObject *parent = nullptr);
40 
44  ~PrecommandJob() override;
45 
50  void start() override;
51 
52 protected:
53 
57  bool doKill() override;
58 
59 private:
60  friend class ::PreCommandJobPrivate;
61  PreCommandJobPrivate *const d;
62 };
63 } // namespace MailTransport
64 
65 #endif // MAILTRANSPORT_PRECOMMANDJOB_H
Job to execute a command.
Definition: precommandjob.h:29
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Aug 3 2020 23:17:31 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.