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

KIO

Public Types | Public Member Functions | List of all members
PredicateProperties Class Reference

#include <predicateproperties.h>

Public Types

enum  Attributes {
  Addable = 1, Removable = 2, Modifiable = 4, Cumulative = 8,
  Averaged = 16, MultiLine = 32, SqueezeText = 64
}
 

Public Member Functions

 PredicateProperties (const QString &predicate=QString())
 
 PredicateProperties (const PredicateProperties &p)
 
 ~PredicateProperties ()
 
uint attributes () const
 
QValidator * createValidator () const
 
const QString & description () const
 
bool isValid () const
 
const QString & key () const
 
uint maxCardinality () const
 
uint minCardinality () const
 
const QString & name () const
 
const PredicateProperties & operator= (const PredicateProperties &p)
 
const PredicateProperties & parent () const
 
const QStringList & suggestedValues () const
 
QVariant::Type type () const
 
const QString & unit () const
 

Detailed Description

A predicate is part of the RDF trinity: subject, predicate, object.

It is identified by URI and it defines the type of the relationship. For file metadata, a predicate can be seen as a fieldname. It has a data type, a description, a short id, a cardinality

Deprecated:
use Nepomuk::Types::Property instead

Definition at line 36 of file predicateproperties.h.

Member Enumeration Documentation

enum PredicateProperties::Attributes

This enum is used to specify some attributes that an item can have, which fit neither in the Hint nor in the Unit enum.

Enumerator
Addable 

The item or group can be added by a user.

Removable 

It can be removed.

Modifiable 

The value can be edited (no meaning for a group)

Cumulative 

If an application wants to display information for more than one file, it may add up the values for this item (e.g.

play time of an mp3 file)

Averaged 

Similar to Cumulative, but the average should be calculated instead of the sum.

MultiLine 

This attribute says that a string item is likely to be more than one line long, so for editing, a widget capable for multline text should be used.

SqueezeText 

If the text for this item is very long, it should be squeezed to the size of the widget where it's displayed.

Definition at line 49 of file predicateproperties.h.

Constructor & Destructor Documentation

PredicateProperties::PredicateProperties ( const QString &  predicate = QString())

Definition at line 47 of file predicateproperties.cpp.

PredicateProperties::PredicateProperties ( const PredicateProperties &  p)

Definition at line 54 of file predicateproperties.cpp.

PredicateProperties::~PredicateProperties ( )

Definition at line 57 of file predicateproperties.cpp.

Member Function Documentation

uint PredicateProperties::attributes ( ) const

Get the attributes of this group (see Attributes)

Returns
the attributes

Definition at line 86 of file predicateproperties.cpp.

QValidator * PredicateProperties::createValidator ( ) const

Definition at line 94 of file predicateproperties.cpp.

const QString& PredicateProperties::description ( ) const

Localized description of the predicate.

bool PredicateProperties::isValid ( ) const

Definition at line 106 of file predicateproperties.cpp.

const QString& PredicateProperties::key ( ) const

Key associated with this value.

uint PredicateProperties::maxCardinality ( ) const

Definition at line 81 of file predicateproperties.cpp.

uint PredicateProperties::minCardinality ( ) const

Definition at line 76 of file predicateproperties.cpp.

const QString & PredicateProperties::name ( ) const

Localized name of the predicate.

Definition at line 65 of file predicateproperties.cpp.

const PredicateProperties & PredicateProperties::operator= ( const PredicateProperties &  p)

Definition at line 60 of file predicateproperties.cpp.

const PredicateProperties & PredicateProperties::parent ( ) const

Definition at line 98 of file predicateproperties.cpp.

const QStringList & PredicateProperties::suggestedValues ( ) const

Definition at line 71 of file predicateproperties.cpp.

QVariant::Type PredicateProperties::type ( ) const

The type for this field.

Definition at line 90 of file predicateproperties.cpp.

const QString& PredicateProperties::unit ( ) const

Return a url that identifies the unit in which this property is expressed.


The documentation for this class was generated from the following files:
  • predicateproperties.h
  • predicateproperties.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:55 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