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

tdeio/tdeio

  • tdeio
  • tdeio
chmodjob.h
1/* This file is part of the KDE libraries
2 Copyright (C) 2000 David Faure <faure@kde.org>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
18*/
19
20#ifndef __tdeio_chmodjob_h__
21#define __tdeio_chmodjob_h__
22
23#include <kurl.h>
24#include <tqstring.h>
25
26#include <tdeio/global.h>
27#include <tdeio/job.h>
28#include <tdefileitem.h>
29
30namespace TDEIO {
31
37 class TDEIO_EXPORT ChmodJob : public TDEIO::Job
38 {
39 TQ_OBJECT
40 public:
44 ChmodJob( const KFileItemList & lstItems, int permissions, int mask,
45 int newOwner, int newGroup,
46 bool recursive, bool showProgressInfo );
47
48 protected:
49 void chmodNextFile();
50
51 protected slots:
52
53 virtual void slotResult( TDEIO::Job *job );
54 void slotEntries( TDEIO::Job * , const TDEIO::UDSEntryList & );
55 void processList();
56
57 private:
58 struct ChmodInfo
59 {
60 KURL url;
61 int permissions;
62 };
63 enum { STATE_LISTING, STATE_CHMODING } state;
64 int m_permissions;
65 int m_mask;
66 int m_newOwner;
67 int m_newGroup;
68 bool m_recursive;
69 KFileItemList m_lstItems;
70 TQValueList<ChmodInfo> m_infos;
71 protected:
72 virtual void virtual_hook( int id, void* data );
73 private:
74 class ChmodJobPrivate* d;
75 };
76
77
102 TDEIO_EXPORT ChmodJob * chmod( const KFileItemList& lstItems, int permissions, int mask,
103 TQString newOwner, TQString newGroup,
104 bool recursive, bool showProgressInfo = true );
105
106}
107
108#endif
TDEIO::ChmodJob
This job changes permissions on a list of files or directories, optionally in a recursive manner.
Definition chmodjob.h:38
TDEIO::Job
The base class for all jobs.
Definition jobclasses.h:67
TDEIO
A namespace for TDEIO globals.
Definition authinfo.h:29
TDEIO::chmod
TDEIO_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

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • Main Page
  • 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.9.8
This website is maintained by Timothy Pearson.