KIO

jobuidelegatefactory.cpp
1/*
2 This file is part of the KDE libraries
3 SPDX-FileCopyrightText: 2013 David Faure <faure@kde.org>
4 SPDX-FileCopyrightText: 2022 Harald Sitter <sitter@kde.org>
5
6 SPDX-License-Identifier: LGPL-2.0-or-later
7*/
8
9#include <jobuidelegatefactory.h>
10
11using namespace KIO;
12
17
19
20static JobUiDelegateFactory *s_factory = nullptr;
21
23{
24 return s_factory ? s_factory->createDelegate() : nullptr;
25}
26
28{
29 return s_factory ? s_factory->createDelegate(flags, window) : nullptr;
30}
31
36
38{
39 s_factory = factory;
40}
A factory for creating job ui delegates.
virtual ~JobUiDelegateFactory()
Destructor.
A namespace for KIO globals.
KIOCORE_EXPORT JobUiDelegateFactory * defaultJobUiDelegateFactory()
Returns the default job UI delegate factory to be used by all KIO jobs (in which HideProgressInfo is ...
KIOCORE_EXPORT KJobUiDelegate * createDefaultJobUiDelegate()
Convenience method: use default factory, if there's one, to create a delegate and return it.
KIOCORE_EXPORT void setDefaultJobUiDelegateFactory(JobUiDelegateFactory *factory)
Internal.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:04:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.