kio Library: metainfojob.h Source File (kio Library)

| # kio Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | Source Files

# 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
    00022 #ifndef __kio_metainfojob_h__
    00023 #define __kio_metainfojob_h__
    00024
    00025 #include <kio/job.h>
    00026 #include <kfileitem.h>
    00027
    00028 namespace KIO {
    00035     class KIO_EXPORT MetaInfoJob : public KIO::Job
    00036     {
    00037         Q_OBJECT
    00038     public:
    00044         MetaInfoJob(const KFileItemList &items, bool deleteItems = false);
    00045         virtual ~MetaInfoJob();
    00046
    00052         void removeItem( const KFileItem *item );
    00053
    00060         static QStringList availablePlugins();
    00061
    00067         static QStringList supportedMimeTypes();
    00068
    00069     signals:
    00075         void gotMetaInfo( const KFileItem *item );
    00082         void failed( const KFileItem *item );
    00083
    00084     protected:
    00085         void getMetaInfo();
    00086
    00087     protected slots:
    00088         virtual void slotResult( KIO::Job *job );
    00089
    00090     private slots:
    00091         void start();
    00092         void slotMetaInfo(KIO::Job *, const QByteArray &);
    00093
    00094     private:
    00095         void determineNextFile();
    00096 //        void saveMetaInfo(const QByteArray info);
    00097
    00098     private:
    00099         struct MetaInfoJobPrivate *d;
    00100     };
    00101
    00108     KIO_EXPORT MetaInfoJob* fileMetaInfo(const KFileItemList& items);
    00109
    00116     KIO_EXPORT MetaInfoJob* fileMetaInfo(const KURL::List& items);
    00117 }
    00118
    00119 #endif

This file is part of the documentation for kio Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:24:06 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003