KIO

mkpathjob.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 2000 Stephan Kulow <[email protected]>
3  2000-2014 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 MKPATHJOB_H
22 #define MKPATHJOB_H
23 
24 #include <QUrl>
25 
26 #include "kiocore_export.h"
27 #include "job_base.h"
28 
29 namespace KIO
30 {
31 
32 class MkpathJobPrivate;
42 class KIOCORE_EXPORT MkpathJob : public Job
43 {
44  Q_OBJECT
45 
46 public:
47  ~MkpathJob() override;
48 
49 Q_SIGNALS:
53  void directoryCreated(const QUrl &url);
54 
55 protected Q_SLOTS:
56  void slotResult(KJob *job) override;
57 
58 protected:
59  MkpathJob(MkpathJobPrivate &dd);
60 
61 private:
62  Q_PRIVATE_SLOT(d_func(), void slotStart())
63  Q_DECLARE_PRIVATE(MkpathJob)
64 };
65 
80 KIOCORE_EXPORT MkpathJob *mkpath(const QUrl &url, const QUrl &baseUrl = QUrl(), JobFlags flags = DefaultFlags);
81 
82 }
83 
84 #endif /* MKPATHJOB_H */
KIOCORE_EXPORT MkpathJob * mkpath(const QUrl &url, const QUrl &baseUrl=QUrl(), JobFlags flags=DefaultFlags)
Creates a directory, creating parent directories as needed.
Definition: mkpathjob.cpp:160
A namespace for KIO globals.
Definition: authinfo.h:34
Show the progress info GUI, no Resume and no Overwrite.
Definition: job_base.h:282
A KIO job that creates a directory, after creating all parent directories necessary for this...
Definition: mkpathjob.h:42
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 Mon Aug 3 2020 23:00:19 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.