20 #ifndef __tdeio_chmodjob_h__
21 #define __tdeio_chmodjob_h__
26 #include <tdeio/global.h>
27 #include <tdeio/job.h>
28 #include <tdefileitem.h>
44 ChmodJob(
const KFileItemList & lstItems,
int permissions,
int mask,
45 int newOwner,
int newGroup,
46 bool recursive,
bool showProgressInfo );
54 void slotEntries(
TDEIO::Job * ,
const TDEIO::UDSEntryList & );
63 enum { STATE_LISTING, STATE_CHMODING } state;
69 KFileItemList m_lstItems;
70 TQValueList<ChmodInfo> m_infos;
72 virtual void virtual_hook(
int id,
void* data );
74 class ChmodJobPrivate* d;
102 TDEIO_EXPORT
ChmodJob *
chmod(
const KFileItemList& lstItems,
int permissions,
int mask,
103 TQString newOwner, TQString newGroup,
104 bool recursive,
bool showProgressInfo =
true );
This job changes permissions on a list of files or directories, optionally in a recursive manner.
The base class for all jobs.
A namespace for TDEIO globals.
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...