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

tdeio/tdeio

  • tdeio
  • tdeio
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 __tdeio_chmodjob_h__
22 #define __tdeio_chmodjob_h__
23 
24 #include <kurl.h>
25 #include <tqstring.h>
26 
27 #include <tdeio/global.h>
28 #include <tdeio/job.h>
29 #include <tdefileitem.h>
30 
31 namespace TDEIO {
32 
38  class TDEIO_EXPORT ChmodJob : public TDEIO::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( TDEIO::Job *job );
55  void slotEntries( TDEIO::Job * , const TDEIO::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  TDEIO_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

tdeio/tdeio

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

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/tdeio by doxygen 1.8.1.2
This website is maintained by Timothy Pearson.