00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __kio_job_h__
00023 #define __kio_job_h__
00024
00025 #include <kio/jobclasses.h>
00026
00027 namespace KIO {
00028
00029
00041 KIO_EXPORT SimpleJob * mkdir( const KURL& url, int permissions = -1 );
00042
00053 KIO_EXPORT SimpleJob * rmdir( const KURL& url );
00054
00064 KIO_EXPORT SimpleJob * chmod( const KURL& url, int permissions );
00065
00077 KIO_EXPORT SimpleJob * rename( const KURL& src, const KURL & dest, bool overwrite );
00078
00090 KIO_EXPORT SimpleJob * symlink( const QString & target, const KURL& dest, bool overwrite, bool showProgressInfo = true );
00091
00104 KIO_EXPORT SimpleJob * special( const KURL& url, const QByteArray & data, bool showProgressInfo = true );
00105
00118 KIO_EXPORT SimpleJob *mount( bool ro, const char *fstype, const QString& dev, const QString& point, bool showProgressInfo = true );
00119
00129 KIO_EXPORT SimpleJob *unmount( const QString & point, bool showProgressInfo = true );
00130
00140 KIO_EXPORT SimpleJob *http_update_cache( const KURL& url, bool no_cache, time_t expireDate);
00141
00149 KIO_EXPORT StatJob * stat( const KURL& url, bool showProgressInfo = true );
00177 KIO_EXPORT StatJob * stat( const KURL& url, bool sideIsSource, short int details, bool showProgressInfo = true );
00178
00188 KIO_EXPORT TransferJob *get( const KURL& url, bool reload=false, bool showProgressInfo = true );
00189
00202 KIO_EXPORT TransferJob *put( const KURL& url, int permissions,
00203 bool overwrite, bool resume, bool showProgressInfo = true );
00204
00233 KIO_EXPORT TransferJob *http_post( const KURL& url, const QByteArray &postData,
00234 bool showProgressInfo = true );
00235
00246 KIO_EXPORT StoredTransferJob *storedGet( const KURL& url, bool reload=false, bool showProgressInfo = true );
00247
00262 KIO_EXPORT StoredTransferJob *storedPut( const QByteArray& arr, const KURL& url, int permissions,
00263 bool overwrite, bool resume, bool showProgressInfo = true );
00264
00275 KIO_EXPORT MultiGetJob *multi_get( long id, const KURL &url, const MetaData &metaData);
00276
00284 KIO_EXPORT MimetypeJob * mimetype( const KURL& url,
00285 bool showProgressInfo = true );
00286
00303 KIO_EXPORT FileCopyJob *file_copy( const KURL& src, const KURL& dest, int permissions=-1,
00304 bool overwrite=false, bool resume=false,
00305 bool showProgressInfo = true);
00306
00322 KIO_EXPORT FileCopyJob *file_move( const KURL& src, const KURL& dest, int permissions=-1,
00323 bool overwrite=false, bool resume=false,
00324 bool showProgressInfo = true);
00325
00333 KIO_EXPORT SimpleJob *file_delete( const KURL& src, bool showProgressInfo = true);
00334
00347 KIO_EXPORT ListJob *listDir( const KURL& url, bool showProgressInfo = true,
00348 bool includeHidden = true );
00349
00363 KIO_EXPORT ListJob *listRecursive( const KURL& url, bool showProgressInfo = true,
00364 bool includeHidden = true );
00365
00379 KIO_EXPORT CopyJob *copy( const KURL& src, const KURL& dest, bool showProgressInfo = true );
00380
00394 KIO_EXPORT CopyJob *copyAs( const KURL& src, const KURL& dest, bool showProgressInfo = true );
00395
00404 KIO_EXPORT CopyJob *copy( const KURL::List& src, const KURL& dest, bool showProgressInfo = true );
00405
00416 KIO_EXPORT CopyJob *move( const KURL& src, const KURL& dest, bool showProgressInfo = true );
00427 KIO_EXPORT CopyJob *moveAs( const KURL& src, const KURL& dest, bool showProgressInfo = true );
00437 KIO_EXPORT CopyJob *move( const KURL::List& src, const KURL& dest, bool showProgressInfo = true );
00438
00449 KIO_EXPORT CopyJob *link( const KURL& src, const KURL& destDir, bool showProgressInfo = true );
00450
00462 KIO_EXPORT CopyJob *link( const KURL::List& src, const KURL& destDir, bool showProgressInfo = true );
00463
00477 KIO_EXPORT CopyJob *linkAs( const KURL& src, const KURL& dest, bool showProgressInfo = true );
00478
00489 KIO_EXPORT CopyJob *trash( const KURL& src, bool showProgressInfo = true );
00490
00500 KIO_EXPORT CopyJob *trash( const KURL::List& src, bool showProgressInfo = true );
00501
00510 KIO_EXPORT DeleteJob *del( const KURL& src, bool shred = false, bool showProgressInfo = true );
00511
00520 KIO_EXPORT DeleteJob *del( const KURL::List& src, bool shred = false, bool showProgressInfo = true );
00521 }
00522
00523 #endif
00524