Nepomuk
dynamicresourcefacet.h
Go to the documentation of this file.
A property is a resource of type rdf:Property which relates a domain with a range.
Definition: property.h:53
A facet that presents a dynamic lists of resources with the possibility to search for more.
Definition: dynamicresourcefacet.h:71
int maxRows() const
virtual Query::Query resourceQuery(const Query::Query &clientQuery) const
Construct the query that will be used to determine the resources that are presented as choices in the...
void setResourceType(const Types::Class &type)
This is optional and defaults to the property's range if not set.
DynamicResourceFacet(QObject *parent=0)
Create a new empty facet.
virtual ~DynamicResourceFacet()
Destructor.
void handleClientQueryChange()
Reimplemented to properly update the resource list on client query change.
void setSelected(int index, bool selected=true)
Select or deselect the resource at index.
virtual Nepomuk::Resource resourceForTerm(const Nepomuk::Query::Term &queryTerm) const
Used by selectFromTerm() to convert terms into resources.
void setSelectionMode(SelectionMode mode)
Set the selection mode to use in this facet.
virtual QList< Resource > getMoreResources() const
Used to query additional resources if maxRows() is too small to fit all candidates.
void setMaxRows(int max)
Set the maximum rows to show by default.
bool selectFromTerm(const Nepomuk::Query::Term &queryTerm)
The term is analyzed depending on the selectionMode().
void setSelected(const Nepomuk::Resource &res, bool selected=true)
Select or deselect res.
virtual Nepomuk::Query::Term termForResource(const Resource &res) const
Used by term() to construct the final query term this facet provides.
bool isSelected(int index) const
Nepomuk::Resource resourceAt(int i) const
SelectionMode selectionMode() const
The selection mode set via setSelectionMode()
Types::Class resourceType() const
Types::Property relation() const
Query::Term queryTerm() const
KGuiItem guiItem(int index) const
The parameters used to render the choice at index.
int count() const
void setRelation(const Types::Property &prop)
Set the property to use in the facet.
QList< Resource > selectedResources() const
The base class for all facets used to create query filters.
Definition: facet.h:75
SelectionMode
A Facet can have one of three selection modes which is provided by selectionMode().
Definition: facet.h:93
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Feb 3 2022 00:00:00 by doxygen 1.9.1 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Feb 3 2022 00:00:00 by doxygen 1.9.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.