KIO
metainfojob.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef KIO_METAINFOJOB_H
00023 #define KIO_METAINFOJOB_H
00024
00025 #include <kio/job.h>
00026 #include <kfileitem.h>
00027
00028 namespace KIO {
00029 class MetaInfoJobPrivate;
00035 class KIO_EXPORT MetaInfoJob : public KIO::Job
00036 {
00037 Q_OBJECT
00038 public:
00063 explicit MetaInfoJob(const KFileItemList& items, KFileMetaInfo::WhatFlags w = KFileMetaInfo::Everything,
00064 int iocost = 3, int cpucost = 6, const QStringList& requiredfields = QStringList(),
00065 const QStringList& requestedfields = QStringList());
00066 virtual ~MetaInfoJob();
00067
00073 void removeItem( const KFileItem& item );
00074
00075 Q_SIGNALS:
00081 void gotMetaInfo( const KFileItem& item );
00088 void failed( const KFileItem& item );
00089
00090 protected:
00091 void getMetaInfo();
00092
00093 protected Q_SLOTS:
00094 virtual void slotResult( KJob *job );
00095
00096 private Q_SLOTS:
00097 void start();
00098 void slotMetaInfo(KIO::Job *, const QByteArray &);
00099
00100 private:
00101 void determineNextFile();
00102
00103
00104 private:
00105 Q_DECLARE_PRIVATE(MetaInfoJob)
00106 };
00107
00114 KIO_EXPORT MetaInfoJob* fileMetaInfo(const KFileItemList& items);
00115
00122 KIO_EXPORT MetaInfoJob* fileMetaInfo(const KUrl::List& items);
00123 }
00124
00125 #endif