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

KIO

  • sources
  • kde-4.14
  • kdelibs
  • kio
  • kio
metainfojob.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // vim: ts=4 sw=4 et
3 /* This file is part of the KDE libraries
4  Copyright (C) 2001 Rolf Magnus <ramagnus@kde.org>
5  parts of this taken from previewjob.h
6 
7  This library is free software; you can redistribute it and/or
8  modify it under the terms of the GNU Library General Public
9  License as published by the Free Software Foundation version 2.0.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Library General Public License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to
18  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 */
21 
22 #ifndef KIO_METAINFOJOB_H
23 #define KIO_METAINFOJOB_H
24 
25 #include <kio/job.h>
26 #include <kfileitem.h>
27 
28 namespace KIO {
29  class MetaInfoJobPrivate;
35  class KIO_EXPORT MetaInfoJob : public KIO::Job
36  {
37  Q_OBJECT
38  public:
63  explicit MetaInfoJob(const KFileItemList& items, KFileMetaInfo::WhatFlags w = KFileMetaInfo::Everything,
64  int iocost = 3, int cpucost = 6, const QStringList& requiredfields = QStringList(),
65  const QStringList& requestedfields = QStringList());
66  virtual ~MetaInfoJob();
67 
73  void removeItem( const KFileItem& item );
74 
75  Q_SIGNALS:
81  void gotMetaInfo( const KFileItem& item );
88  void failed( const KFileItem& item );
89 
90  protected:
91  void getMetaInfo();
92 
93  protected Q_SLOTS:
94  virtual void slotResult( KJob *job );
95 
96  private Q_SLOTS:
97  void start();
98  void slotMetaInfo(KIO::Job *, const QByteArray &);
99 
100  private:
101  void determineNextFile();
102 // void saveMetaInfo(const QByteArray info);
103 
104  private:
105  Q_DECLARE_PRIVATE(MetaInfoJob)
106  };
107 
115  KIO_EXPORT_DEPRECATED MetaInfoJob* fileMetaInfo(const KFileItemList& items);
116 
124  KIO_EXPORT_DEPRECATED MetaInfoJob* fileMetaInfo(const KUrl::List& items);
125 }
126 
127 #endif
KFileMetaInfo::Everything
read everything, even if it might take a while
Definition: kfilemetainfo.h:86
QByteArray
KIO::fileMetaInfo
MetaInfoJob * fileMetaInfo(const KFileItemList &items)
Retrieves meta information for the given items.
Definition: metainfojob.cpp:159
KFileItemList
List of KFileItems, which adds a few helper methods to QList.
Definition: kfileitem.h:674
QStringList
job.h
KUrl::List
KIO::Job
The base class for all jobs.
Definition: jobclasses.h:94
KIO::MetaInfoJob
MetaInfoJob is a KIO Job to retrieve meta information from files.
Definition: metainfojob.h:35
KJob
kfileitem.h
KFileItem
A KFileItem is a generic class to handle a file, local or remote.
Definition: kfileitem.h:45
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:53 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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

Search



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