KCoreAddons

klistopenfilesjob.h
1 /*
2  This file is part of the KDE project
3 
4  SPDX-FileCopyrightText: 2010 Jacopo De Simoi <[email protected]>
5  SPDX-FileCopyrightText: 2014 Lukáš Tinkl <[email protected]>
6  SPDX-FileCopyrightText: 2016 Kai Uwe Broulik <[email protected]>
7  SPDX-FileCopyrightText: 2019 David Hallas <[email protected]>
8 
9  SPDX-License-Identifier: LGPL-2.0-only
10 */
11 
12 #ifndef KLISTOPENFILESJOB_H
13 #define KLISTOPENFILESJOB_H
14 
15 #include <kcoreaddons_export.h>
16 #include <kprocesslist.h>
17 #include <kjob.h>
18 #include <QObject>
19 #include <QScopedPointer>
20 #include <QString>
21 
22 class KListOpenFilesJobPrivate;
23 
24 
37 class KCOREADDONS_EXPORT KListOpenFilesJob : public KJob
38 {
39  Q_OBJECT
40 public:
41  explicit KListOpenFilesJob(const QString &path);
42  ~KListOpenFilesJob() override;
43  void start() override;
48  KProcessList::KProcessInfoList processInfoList() const;
49 
50 public:
56  enum class Error {
57  /*** Indicates that the platform doesn't support listing open files by processes */
58  NotSupported = KJob::UserDefinedError + 1,
59  /*** Internal error has ocurred */
60  InternalError = KJob::UserDefinedError + 2,
61  /*** The specified path does not exist */
62  DoesNotExist = KJob::UserDefinedError + 11,
63  };
64 private:
65  friend class KListOpenFilesJobPrivate;
67 };
68 
69 #endif // KLISTOPENFILESJOB_H
Error
Special error codes emitted by KListOpenFilesJob.
Provides information about processes that have open files in a given path or subdirectory of path...
virtual Q_SCRIPTABLE void start()=0
Starts the job asynchronously.
The base class for all jobs.
Definition: kjob.h:75
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Oct 28 2020 23:06:52 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.