Nepomuk
simplefacet.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
void addTerm(const KGuiItem &item, const Nepomuk::Query::Term &queryTerm)
Add a new term.
Query::Term queryTerm() const
bool isSelected(int index) const
void setSelected(int index, bool selected=true)
Selects or deselects the term at index.
int count() const
void setSelectionMode(SelectionMode mode)
Set the selection mode to use in this facet.
Query::Term termAt(int index) const
KGuiItem guiItem(int index) const
void addTerm(const QString &text, const Nepomuk::Query::Term &queryTerm)
Add a new term.
bool selectFromTerm(const Nepomuk::Query::Term &queryTerm)
The term is analyzed depending on the selectionMode().
SelectionMode selectionMode() const
The selection mode set via setSelectionMode()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.