KIO

mimetypejob.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 2000 Stephan Kulow <[email protected]>
3  2000-2009 David Faure <[email protected]>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef KIO_MIMETYPEJOB_H
22 #define KIO_MIMETYPEJOB_H
23 
24 #include <kio/global.h> // filesize_t
25 #include "transferjob.h"
26 
27 namespace KIO
28 {
29 
30 class MimetypeJobPrivate;
39 class KIOCORE_EXPORT MimetypeJob : public TransferJob
40 {
41  Q_OBJECT
42 
43 public:
44  ~MimetypeJob() override;
45 
46 protected Q_SLOTS:
47  void slotFinished() override;
48 protected:
49  MimetypeJob(MimetypeJobPrivate &dd);
50 private:
51  Q_DECLARE_PRIVATE(MimetypeJob)
52 };
53 
65 KIOCORE_EXPORT MimetypeJob *mimetype(const QUrl &url,
66  JobFlags flags = DefaultFlags);
67 
68 }
69 
70 #endif
A namespace for KIO globals.
Definition: authinfo.h:34
Show the progress info GUI, no Resume and no Overwrite.
Definition: job_base.h:282
KIOCORE_EXPORT MimetypeJob * mimetype(const QUrl &url, JobFlags flags=DefaultFlags)
Find mimetype for one file or directory.
Definition: mimetypejob.cpp:93
A MimetypeJob is a TransferJob that allows you to get the mime type of an URL.
Definition: mimetypejob.h:39
The transfer job pumps data into and/or out of a Slave.
Definition: transferjob.h:38
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Aug 7 2020 22:58:57 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.