Nepomuk
facet.h
Go to the documentation of this file.
114 };
The base class for all facets used to create query filters.
Definition: facet.h:75
static Facet * createTypeFacet(QObject *parent=0)
Creates a new Facet that allows to filter on the resource type without a restriction to files.
static Facet * createTagFacet(QObject *parent=0)
Creates a new Facet that allows to filter on tags, i.e.
SelectionMode
A Facet can have one of three selection modes which is provided by selectionMode().
Definition: facet.h:93
void setSelectionChanged()
Subclasses should call this method instead of emitting selectionChanged() manually.
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...
static Facet * createDateFacet(QObject *parent=0)
Creates a new Facet that allows to filter on the date.
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.
virtual KGuiItem guiItem(int index) const
The parameters used to render the choice at index.
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 layoutChanged(Nepomuk::Utils::Facet *facet)
Emitted when the layout of the facet changed, ie.
virtual SelectionMode selectionMode() const =0
The selection mode used by this facet.
Query::Query clientQuery() const
The client query set via setClientQuery().
virtual void setSelected(int index, bool selected=true)=0
Called by client code to change the selection.
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.
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...
void setLayoutChanged()
Subclasses should call this method instead of emitting layoutChanged() manually.
void setQueryTermChanged()
Subclasses should call this method instead of emitting termChanged() manually.
void selectionChanged(Nepomuk::Utils::Facet *facet)
Emitted when the selection changed - normally triggered by a call to setSelected().
static Facet * createFileTypeFacet(QObject *parent=0)
Creates a new Facet that allows to filter on the file type.
virtual bool isSelected(int index) const =0
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.