Nepomuk
facet.h
static Facet * createPriorityFacet(QObject *parent=0)
Creates a new Facet that allows to sort the results by one of several criteria like last modification...
void setLayoutChanged()
Subclasses should call this method instead of emitting layoutChanged() manually.
virtual bool selectFromTerm(const Nepomuk::Query::Term &queryTerm)=0
If a client application provides several ways to construct a query (one could think of a query editor...
virtual bool isSelected(int index) const =0
The base class for all facets used to create query filters.
Definition: facet.h:75
static Facet * createDateFacet(QObject *parent=0)
Creates a new Facet that allows to filter on the date.
static Facet * createTagFacet(QObject *parent=0)
Creates a new Facet that allows to filter on tags, i.e.
static Facet * createFileTypeFacet(QObject *parent=0)
Creates a new Facet that allows to filter on the file type.
virtual void setSelected(int index, bool selected=true)=0
Called by client code to change the selection.
static Facet * createTypeFacet(QObject *parent=0)
Creates a new Facet that allows to filter on the resource type without a restriction to files.
virtual SelectionMode selectionMode() const =0
The selection mode used by this facet.
void selectionChanged(Nepomuk::Utils::Facet *facet)
Emitted when the selection changed - normally triggered by a call to setSelected().
virtual void handleClientQueryChange()
This method is called from setClientQuery() and can be reimplemented by subclasses.
virtual Query::Term queryTerm() const =0
The term currently produced by this facet.
void setQueryTermChanged()
Subclasses should call this method instead of emitting termChanged() manually.
virtual KGuiItem guiItem(int index) const
The parameters used to render the choice at index.
static Facet * createRatingFacet(QObject *parent=0)
Creates a new Facet that allows to filter on the rating of resources.
void queryTermChanged(Nepomuk::Utils::Facet *facet, const Nepomuk::Query::Term &queryTerm)
Emitted when the term of the facet changed, ie.
void layoutChanged(Nepomuk::Utils::Facet *facet)
Emitted when the layout of the facet changed, ie.
void setSelectionChanged()
Subclasses should call this method instead of emitting selectionChanged() manually.
SelectionMode
A Facet can have one of three selection modes which is provided by selectionMode().
Definition: facet.h:93
void setClientQuery(const Nepomuk::Query::Query &query)
The FacetModel will set this to the final query that has been constructed from the facets and any oth...
Query::Query clientQuery() const
The client query set via setClientQuery().
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.