• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.8.3 API Reference
  • KDE Home
  • 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 
00115     KIO_EXPORT_DEPRECATED MetaInfoJob* fileMetaInfo(const KFileItemList& items);
00116 
00124     KIO_EXPORT_DEPRECATED MetaInfoJob* fileMetaInfo(const KUrl::List& items);
00125 }
00126 
00127 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu May 10 2012 20:55:23 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIO

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

kdelibs-4.8.3 API Reference

Skip menu "kdelibs-4.8.3 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal