• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kio/kio
 

kio/kio

  • kio
  • kio
chmodjob.h
1 // -*- c++ -*-
2 /* This file is part of the KDE libraries
3  Copyright (C) 2000 David Faure <faure@kde.org>
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 <kurl.h>
25 #include <tqstring.h>
26 
27 #include <kio/global.h>
28 #include <kio/job.h>
29 #include <kfileitem.h>
30 
31 namespace KIO {
32 
38  class KIO_EXPORT ChmodJob : public KIO::Job
39  {
40  Q_OBJECT
41  public:
45  ChmodJob( const KFileItemList & lstItems, int permissions, int mask,
46  int newOwner, int newGroup,
47  bool recursive, bool showProgressInfo );
48 
49  protected:
50  void chmodNextFile();
51 
52  protected slots:
53 
54  virtual void slotResult( KIO::Job *job );
55  void slotEntries( KIO::Job * , const KIO::UDSEntryList & );
56  void processList();
57 
58  private:
59  struct ChmodInfo
60  {
61  KURL url;
62  int permissions;
63  };
64  enum { STATE_LISTING, STATE_CHMODING } state;
65  int m_permissions;
66  int m_mask;
67  int m_newOwner;
68  int m_newGroup;
69  bool m_recursive;
70  KFileItemList m_lstItems;
71  TQValueList<ChmodInfo> m_infos;
72  protected:
73  virtual void virtual_hook( int id, void* data );
74  private:
75  class ChmodJobPrivate* d;
76  };
77 
78 
103  KIO_EXPORT ChmodJob * chmod( const KFileItemList& lstItems, int permissions, int mask,
104  TQString newOwner, TQString newGroup,
105  bool recursive, bool showProgressInfo = true );
106 
107 }
108 
109 #endif
KIO::ChmodJob
This job changes permissions on a list of files or directories, optionally in a recursive manner.
Definition: chmodjob.h:39
KIO::Job
The base class for all jobs.
Definition: jobclasses.h:68
KIO
A namespace for KIO globals.
Definition: authinfo.h:29
KIO::chmod
KIO_EXPORT ChmodJob * chmod(const KFileItemList &lstItems, int permissions, int mask, TQString newOwner, TQString newGroup, bool recursive, bool showProgressInfo=true)
Creates a job that changes permissions/ownership on several files or directories, optionally recursiv...
Definition: chmodjob.cpp:230

kio/kio

Skip menu "kio/kio"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kio/kio

Skip menu "kio/kio"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kio/kio by doxygen 1.9.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |