KIO

mimetypejob.h
1 /*
2  This file is part of the KDE libraries
3  SPDX-FileCopyrightText: 2000 Stephan Kulow <[email protected]>
4  SPDX-FileCopyrightText: 2000-2009 David Faure <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 
9 #ifndef KIO_MIMETYPEJOB_H
10 #define KIO_MIMETYPEJOB_H
11 
12 #include <kio/global.h> // filesize_t
13 #include "transferjob.h"
14 
15 namespace KIO
16 {
17 
18 class MimetypeJobPrivate;
27 class KIOCORE_EXPORT MimetypeJob : public TransferJob
28 {
29  Q_OBJECT
30 
31 public:
32  ~MimetypeJob() override;
33 
34 protected Q_SLOTS:
35  void slotFinished() override;
36 protected:
37  MimetypeJob(MimetypeJobPrivate &dd);
38 private:
39  Q_DECLARE_PRIVATE(MimetypeJob)
40 };
41 
53 KIOCORE_EXPORT MimetypeJob *mimetype(const QUrl &url,
54  JobFlags flags = DefaultFlags);
55 
56 }
57 
58 #endif
A namespace for KIO globals.
Show the progress info GUI, no Resume and no Overwrite.
Definition: job_base.h:270
KIOCORE_EXPORT MimetypeJob * mimetype(const QUrl &url, JobFlags flags=DefaultFlags)
Find MIME type for one file or directory.
Definition: mimetypejob.cpp:84
A MimetypeJob is a TransferJob that allows you to get the MIME type of a URL.
Definition: mimetypejob.h:27
The transfer job pumps data into and/or out of a Slave.
Definition: transferjob.h:26
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jan 20 2021 23:05:18 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.