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

KIO

  • kio
  • kio
kfilemetainfoitem.h
Go to the documentation of this file.
1/* This file is part of the KDE libraries
2
3 Copyright (c) 2001,2002 Carsten Pfeiffer <pfeiffer@kde.org>
4 2007 Jos van den Oever <jos@vandenoever.info>
5 2010 Sebastian Trueg <trueg@kde.org>
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 (LGPL) as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Library General Public License for more details.
16
17 You should have received a copy of the GNU Library General Public License
18 along with this library; see the file COPYING.LIB. If not, write to
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA.
21*/
22#ifndef KFILEMETAINFOITEM_H
23#define KFILEMETAINFOITEM_H
24
25#include <kio/kio_export.h>
26#include <QtCore/QSharedData>
27
28class KFileWritePlugin;
29class QVariant;
30class PredicateProperties;
31class KUrl;
32
33class KFileMetaInfoItemPrivate;
34class KIO_EXPORT KFileMetaInfoItem {
35friend class KFileMetaInfo;
36friend class KFileMetaInfoPrivate;
37friend class KMetaInfoWriter;
38public:
42 KFileMetaInfoItem();
46 KFileMetaInfoItem(const KFileMetaInfoItem& item);
50 ~KFileMetaInfoItem();
54 const KFileMetaInfoItem& operator=(const KFileMetaInfoItem& item);
58 bool isEditable() const;
62 bool isRemoved() const;
66 bool isModified() const;
70 bool isSkipped() const;
74 const QVariant& value() const;
78 bool setValue(const QVariant& value);
82 bool addValue(const QVariant&);
86 bool isValid() const;
92#ifndef KDE_NO_DEPRECATED
93 KDE_DEPRECATED const PredicateProperties& properties() const;
94#endif
98 const QString& name() const;
105 QString suffix() const;
112 QString prefix() const;
113private:
114 QSharedDataPointer<KFileMetaInfoItemPrivate> d;
115
116 KFileMetaInfoItem(const QString& p,
117 const QVariant& v, KFileWritePlugin* w, bool e);
118};
119
120#endif
KFileMetaInfoItemPrivate
Definition kfilemetainfoitem_p.h:40
KFileMetaInfoItem::KFileMetaInfoPrivate
friend class KFileMetaInfoPrivate
Definition kfilemetainfoitem.h:36
KFileMetaInfoItem::suffix
QString suffix() const
This method returns a translated suffix to be displayed after the value.
Definition kfilemetainfoitem.cpp:114
KFileMetaInfoItem::isEditable
bool isEditable() const
Can this item be edited.
Definition kfilemetainfoitem.cpp:110
KFileMetaInfoItem::isSkipped
bool isSkipped() const
Has this value been skipped by analyzer due to performance or other considerations.
Definition kfilemetainfoitem.cpp:99
KFileMetaInfoItem::KMetaInfoWriter
friend class KMetaInfoWriter
Definition kfilemetainfoitem.h:37
KFileMetaInfoItem::isValid
bool isValid() const
Is this a valid item.
Definition kfilemetainfoitem.cpp:95
KFileMetaInfoItem::addValue
bool addValue(const QVariant &)
Append a value to the properties in this file.
Definition kfilemetainfoitem.cpp:77
KFileMetaInfoItem::isRemoved
bool isRemoved() const
Has this value been removed, e.g with setValue(QVariant())
Definition kfilemetainfoitem.cpp:91
KFileMetaInfoItem::isModified
bool isModified() const
Can this item be removed.
Definition kfilemetainfoitem.cpp:87
KFileMetaInfoItem::operator=
const KFileMetaInfoItem & operator=(const KFileMetaInfoItem &item)
Copy operator.
Definition kfilemetainfoitem.cpp:49
KFileMetaInfoItem::setValue
bool setValue(const QVariant &value)
Set the value of this field.
Definition kfilemetainfoitem.cpp:70
KFileMetaInfoItem::value
const QVariant & value() const
Retrieve the current value of this item.
Definition kfilemetainfoitem.cpp:66
KFileMetaInfoItem::KFileMetaInfo
friend class KFileMetaInfo
Definition kfilemetainfoitem.h:35
KFileMetaInfoItem::KFileMetaInfoItem
KFileMetaInfoItem()
Default constructor.
Definition kfilemetainfoitem.cpp:26
KFileMetaInfoItem::properties
const PredicateProperties & properties() const
Retrieve the properties of this field type.
Definition kfilemetainfoitem.cpp:105
KFileMetaInfoItem::name
const QString & name() const
Localized name of the predicate.
Definition kfilemetainfoitem.cpp:54
KFileMetaInfoItem::prefix
QString prefix() const
This method returns a translated prefix to be displayed before the value.
Definition kfilemetainfoitem.cpp:120
KFileWritePlugin
Definition kfilewriteplugin.h:28
KUrl
PredicateProperties
A predicate is part of the RDF trinity: subject, predicate, object.
Definition predicateproperties.h:36
kio_export.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.13.2 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