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

KIO

  • kio
  • kio
predicateproperties.h
Go to the documentation of this file.
1/* This file is part of the KDE libraries
2
3 Copyright (c) 2007 Jos van den Oever <jos@vandenoever.info>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License (LGPL) as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
19*/
20#ifndef PREDICATEPROPERTIES_H
21#define PREDICATEPROPERTIES_H
22
23#include <kio/kio_export.h>
24#include <QtCore/QSharedData>
25#include <QtCore/QVariant>
26class QValidator;
27
36class KIO_EXPORT PredicateProperties {
37friend class PredicatePropertyProvider;
38public:
39#ifndef KDE_NO_DEPRECATED
40 KDE_DEPRECATED PredicateProperties(const QString& predicate = QString());
41#endif
42 PredicateProperties(const PredicateProperties& p);
43 ~PredicateProperties();
44 const PredicateProperties& operator=(const PredicateProperties& p);
49 enum Attributes
50 {
51 Addable = 1,
52 Removable = 2,
53 Modifiable = 4,
54 Cumulative = 8,
57 Averaged = 16,
59 MultiLine = 32,
63 SqueezeText = 64
67 };
73 uint attributes() const;
77 const QString& key() const;
81 QVariant::Type type() const;
85 const QString& name() const;
89 const QString& description() const;
90 QValidator* createValidator() const;
91 const QStringList& suggestedValues() const;
92 uint minCardinality() const;
93 uint maxCardinality() const;
94 const PredicateProperties& parent() const;
99 const QString& unit() const;
100 bool isValid() const;
101private:
102 class Private;
103 QSharedDataPointer<Private> d;
104};
105
106#endif
PredicateProperties
A predicate is part of the RDF trinity: subject, predicate, object.
Definition: predicateproperties.h:36
PredicateProperties::key
const QString & key() const
Key associated with this value.
PredicateProperties::description
const QString & description() const
Localized description of the predicate.
PredicateProperties::Attributes
Attributes
This enum is used to specify some attributes that an item can have, which fit neither in the Hint nor...
Definition: predicateproperties.h:50
PredicateProperties::unit
const QString & unit() const
Return a url that identifies the unit in which this property is expressed.
QValidator
kio_export.h
name
const char * name(StandardAction id)
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