metainfojob.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef __kio_metainfojob_h__
00025 #define __kio_metainfojob_h__
00026
00027 #include <kio/job.h>
00028 #include <kfileitem.h>
00029
00030 namespace KIO {
00037 class MetaInfoJob : public KIO::Job
00038 {
00039 Q_OBJECT
00040 public:
00046 MetaInfoJob(const KFileItemList &items, bool deleteItems = false);
00047 virtual ~MetaInfoJob();
00048
00054 void removeItem( const KFileItem *item );
00055
00062 static QStringList availablePlugins();
00063
00069 static QStringList supportedMimeTypes();
00070
00071 signals:
00077 void gotMetaInfo( const KFileItem *item );
00084 void failed( const KFileItem *item );
00085
00086 protected:
00087 void getMetaInfo();
00088
00089 protected slots:
00090 virtual void slotResult( KIO::Job *job );
00091
00092 private slots:
00093 void start();
00094 void slotMetaInfo(KIO::Job *, const QByteArray &);
00095
00096 private:
00097 void determineNextFile();
00098
00099
00100 private:
00101 struct MetaInfoJobPrivate *d;
00102 };
00103
00110 MetaInfoJob* fileMetaInfo(const KFileItemList& items);
00111
00118 MetaInfoJob* fileMetaInfo(const KURL::List& items);
00119 }
00120
00121 #endif
This file is part of the documentation for kio Library Version 3.3.1.