KCoreAddons

klistopenfilesjob_win.cpp
1/*
2 This file is part of the KDE project
3
4 SPDX-FileCopyrightText: 2019 David Hallas <david@davidhallas.dk>
5
6 SPDX-License-Identifier: LGPL-2.1-or-later
7*/
8
9#include "klistopenfilesjob.h"
10#include <QTimer>
11
12class KListOpenFilesJobPrivate
13{
14};
15
16KListOpenFilesJob::KListOpenFilesJob(const QString &)
17 : d(nullptr)
18{
19}
20
21KListOpenFilesJob::~KListOpenFilesJob() = default;
22
24{
25 QTimer::singleShot(0, [this]() {
26 setError(static_cast<int>(KListOpenFilesJob::Error::NotSupported));
27 setErrorText(QObject::tr("KListOpenFilesJob is not supported on Windows"));
28 emitResult();
29 });
30}
31
33{
35}
36
37#include "moc_klistopenfilesjob.cpp"
void setErrorText(const QString &errorText)
Sets the error text.
Definition kjob.cpp:285
void emitResult()
Utility function to emit the result signal, and end this job.
Definition kjob.cpp:354
void setError(int errorCode)
Sets the error code.
Definition kjob.cpp:279
void start() override
Starts the job asynchronously.
KProcessList::KProcessInfoList processInfoList() const
Returns the list of processes with open files for the requested path.
QString tr(const char *sourceText, const char *disambiguation, int n)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.