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

KIO

  • 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
28namespace 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
KFileItemList
List of KFileItems, which adds a few helper methods to QList<KFileItem>.
Definition: kfileitem.h:675
KFileItem
A KFileItem is a generic class to handle a file, local or remote.
Definition: kfileitem.h:46
KFileMetaInfo::Everything
@ Everything
read everything, even if it might take a while
Definition: kfilemetainfo.h:86
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:36
KIO::MetaInfoJob::gotMetaInfo
void gotMetaInfo(const KFileItem &item)
KIO::MetaInfoJob::failed
void failed(const KFileItem &item)
KJob
KUrl::List
job.h
kfileitem.h
KIO
A namespace for KIO globals.
Definition: kbookmarkmenu.h:55
KIO::fileMetaInfo
MetaInfoJob * fileMetaInfo(const KFileItemList &items)
Retrieves meta information for the given items.
Definition: metainfojob.cpp:159
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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.14.38 API Reference

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