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