KIO
chmodjob.h
Go to the documentation of this file.
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 KIO_CHMODJOB_H 00022 #define KIO_CHMODJOB_H 00023 00024 #include <kurl.h> 00025 #include "global.h" 00026 #include "job.h" 00027 #include <kfileitem.h> 00028 00029 #include <QtCore/QLinkedList> 00030 00031 namespace KIO { 00032 00033 class ChmodJobPrivate; 00039 class KIO_EXPORT ChmodJob : public KIO::Job 00040 { 00041 Q_OBJECT 00042 public: 00043 virtual ~ChmodJob(); 00044 00045 protected Q_SLOTS: 00046 virtual void slotResult( KJob *job ); 00047 00048 protected: 00049 ChmodJob(ChmodJobPrivate &dd); 00050 00051 private: 00052 Q_PRIVATE_SLOT(d_func(), void _k_slotEntries( KIO::Job * , const KIO::UDSEntryList & )) 00053 Q_PRIVATE_SLOT(d_func(), void _k_processList()) 00054 Q_DECLARE_PRIVATE(ChmodJob) 00055 }; 00056 00057 00082 KIO_EXPORT ChmodJob * chmod( const KFileItemList& lstItems, int permissions, int mask, 00083 const QString& newOwner, const QString& newGroup, 00084 bool recursive, JobFlags flags = DefaultFlags ); 00085 00086 } 00087 00088 #endif
KDE 4.6 API Reference