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

tdeio/tdeio

chmodjob.h
00001 // -*- c++ -*-
00002 /* This file is part of the KDE libraries
00003     Copyright (C) 2000 David Faure <faure@kde.org>
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License as published by the Free Software Foundation; either
00008     version 2 of the License, or (at your option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to
00017     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018     Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef __tdeio_chmodjob_h__
00022 #define __tdeio_chmodjob_h__
00023 
00024 #include <kurl.h>
00025 #include <tqstring.h>
00026 
00027 #include <tdeio/global.h>
00028 #include <tdeio/job.h>
00029 #include <tdefileitem.h>
00030 
00031 namespace TDEIO {
00032 
00038     class TDEIO_EXPORT ChmodJob : public TDEIO::Job
00039     {
00040         Q_OBJECT
00041     public:
00045         ChmodJob( const KFileItemList & lstItems,  int permissions, int mask,
00046                   int newOwner, int newGroup,
00047                   bool recursive, bool showProgressInfo );
00048 
00049     protected:
00050         void chmodNextFile();
00051 
00052     protected slots:
00053 
00054         virtual void slotResult( TDEIO::Job *job );
00055         void slotEntries( TDEIO::Job * , const TDEIO::UDSEntryList & );
00056         void processList();
00057 
00058     private:
00059         struct ChmodInfo
00060         {
00061             KURL url;
00062             int permissions;
00063         };
00064         enum { STATE_LISTING, STATE_CHMODING } state;
00065         int m_permissions;
00066         int m_mask;
00067         int m_newOwner;
00068         int m_newGroup;
00069         bool m_recursive;
00070         KFileItemList m_lstItems;
00071         TQValueList<ChmodInfo> m_infos;
00072     protected:
00073     virtual void virtual_hook( int id, void* data );
00074     private:
00075     class ChmodJobPrivate* d;
00076     };
00077 
00078 
00103     TDEIO_EXPORT ChmodJob * chmod( const KFileItemList& lstItems, int permissions, int mask,
00104                       TQString newOwner, TQString newGroup,
00105                       bool recursive, bool showProgressInfo = true );
00106 
00107 }
00108 
00109 #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.7.6.1
This website is maintained by Timothy Pearson.