Nepomuk
facet.h
Go to the documentation of this file.
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
static Facet * createTypeFacet(QObject *parent=0)
Creates a new Facet that allows to filter on the resource type without a restriction to files.
void setSelectionChanged()
Subclasses should call this method instead of emitting selectionChanged() manually.
static Facet * createFileTypeFacet(QObject *parent=0)
Creates a new Facet that allows to filter on the file type.
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 * createPriorityFacet(QObject *parent=0)
Creates a new Facet that allows to sort the results by one of several criteria like last modification...
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.
static Facet * createDateFacet(QObject *parent=0)
Creates a new Facet that allows to filter on the date.
virtual KGuiItem guiItem(int index) const
The parameters used to render the choice at index.
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 * createTagFacet(QObject *parent=0)
Creates a new Facet that allows to filter on tags, i.e.
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 * createRatingFacet(QObject *parent=0)
Creates a new Facet that allows to filter on the rating of resources.
virtual bool isSelected(int index) const =0
The Query namespace contains all classes that make up the Nepomuk Query API.
The Utils namespace contains utility and convenience methods and classes that help the application de...
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.