kio Library API Documentation

metainfojob.h

00001 // -*- c++ -*-
00002 // vim: ts=4 sw=4 et
00003 /*  This file is part of the KDE libraries
00004     Copyright (C) 2001 Rolf Magnus <ramagnus@kde.org>
00005     parts of this taken from previewjob.h
00006 
00007     This library is free software; you can redistribute it and/or
00008     modify it under the terms of the GNU Library General Public
00009     License as published by the Free Software Foundation version 2.0.
00010 
00011     This library is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014     Library General Public License for more details.
00015 
00016     You should have received a copy of the GNU Library General Public License
00017     along with this library; see the file COPYING.LIB.  If not, write to
00018     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00019     Boston, MA 02111-1307, USA.
00020 
00021     $Id: metainfojob.h,v 1.9 2003/06/07 22:52:28 mueller Exp $
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 //        void saveMetaInfo(const QByteArray info);
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
KDE Logo
This file is part of the documentation for kio Library Version 3.2.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Mar 4 22:44:27 2004 by doxygen 1.3.6-20040222 written by Dimitri van Heesch, © 1997-2003