KIO

chmodjob.h
1 // -*- c++ -*-
2 /* This file is part of the KDE libraries
3  Copyright (C) 2000 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_CHMODJOB_H
22 #define KIO_CHMODJOB_H
23 
24 #include "global.h"
25 #include "job_base.h"
26 #include "kiocore_export.h"
27 #include <kfileitem.h>
28 
29 namespace KIO
30 {
31 
32 class ChmodJobPrivate;
40 class KIOCORE_EXPORT ChmodJob : public KIO::Job
41 {
42  Q_OBJECT
43 public:
44  virtual ~ChmodJob();
45 
46 protected Q_SLOTS:
47  void slotResult(KJob *job) override;
48 
49 protected:
50  ChmodJob(ChmodJobPrivate &dd);
51 
52 private:
53  Q_PRIVATE_SLOT(d_func(), void _k_slotEntries(KIO::Job *, const KIO::UDSEntryList &))
54  Q_PRIVATE_SLOT(d_func(), void _k_processList())
55  Q_PRIVATE_SLOT(d_func(), void _k_chmodNextFile())
56  Q_DECLARE_PRIVATE(ChmodJob)
57 };
58 
83 KIOCORE_EXPORT ChmodJob *chmod(const KFileItemList &lstItems, int permissions, int mask,
84  const QString &newOwner, const QString &newGroup,
85  bool recursive, JobFlags flags = DefaultFlags);
86 
87 }
88 
89 #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
This job changes permissions on a list of files or directories, optionally in a recursive manner...
Definition: chmodjob.h:40
List of KFileItems, which adds a few helper methods to QList<KFileItem>.
Definition: kfileitem.h:599
KIOCORE_EXPORT ChmodJob * chmod(const KFileItemList &lstItems, int permissions, int mask, const QString &newOwner, const QString &newGroup, bool recursive, JobFlags flags=DefaultFlags)
Creates a job that changes permissions/ownership on several files or directories, optionally recursiv...
Definition: chmodjob.cpp:285
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 Tue Aug 4 2020 22:59:49 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.