• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KIO

metainfojob.h

Go to the documentation of this file.
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., 51 Franklin Street, Fifth Floor,
00019     Boston, MA 02110-1301, 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 {
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 //        void saveMetaInfo(const QByteArray info);
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

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal