KIO

jobuidelegateextension.cpp
1 /* This file is part of the KDE libraries
2  Copyright (C) 2013 David Faure <[email protected]>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #include <jobuidelegateextension.h>
21 
22 using namespace KIO;
23 
25  : d(nullptr)
26 {
27 }
28 
30 {
31 }
32 
33 ClipboardUpdater *KIO::JobUiDelegateExtension::createClipboardUpdater(Job *, ClipboardUpdaterMode)
34 {
35  return nullptr;
36 }
37 
39 {
40 }
41 
42 static JobUiDelegateExtension *s_extension = nullptr;
43 
45 {
46  return s_extension;
47 }
48 
50 {
51  s_extension = extension;
52 }
53 
virtual ClipboardUpdater * createClipboardUpdater(Job *job, ClipboardUpdaterMode mode)
Creates a clipboard updater as a child of the given job.
A namespace for KIO globals.
Definition: authinfo.h:34
KIOCORE_EXPORT void setDefaultJobUiDelegateExtension(JobUiDelegateExtension *extension)
Internal.
virtual void updateUrlInClipboard(const QUrl &src, const QUrl &dest)
Update URL in clipboard, if present.
An abstract class defining interaction with users from KIO jobs:
KIOCORE_EXPORT JobUiDelegateExtension * defaultJobUiDelegateExtension()
Returns the default job UI delegate extension to be used by all KIO jobs (in which HideProgressInfo i...
virtual ~JobUiDelegateExtension()
Destructor.
The base class for all jobs.
Definition: job_base.h:57
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Jul 11 2020 23:00:25 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.