Nepomuk
datefacet.h
@ CustomDateRange
a custom range - this will enable a special item that if selection will open a dialog allowing the us...
Definition: datefacet.h:136
bool isSelected(int index) const
virtual DateRange extractDateRange(const Query::Term &queryTerm) const
This is the counterpart method to createDateRangeTerm().
Query::Term queryTerm() const
Creates a query term for the currently selected date range.
int count() const
DateFacet(QObject *parent=0)
Creates a new date facet which contains the DefaultRanges date range candidates as choices.
SelectionMode selectionMode() const
The selection mode in the date facet is fixed to MatchOne, ie.
void setSelected(int index, bool selected=true)
Change the currently selected date range.
The base class for all facets used to create query filters.
Definition: facet.h:74
@ LastWeek
a date range that includes all days from the last week, ie. that before the current one
Definition: datefacet.h:120
void setDateRangeCandidates(DateRangeCandidates ranges)
Set the date ranges this facet should provide.
void clearSelection()
Resets the current range to the default value which is the first in the list of candidates.
DateRangeCandidates dateRangeCandidates() const
virtual Query::Term createDateRangeTerm(const DateRange &range) const
Create the query Term that reflects the dates specified in range.
KGuiItem guiItem(int index) const
The parameters used to render the choice at index.
bool selectFromTerm(const Nepomuk::Query::Term &queryTerm)
Select the current date range based on term.
@ Yesterday
a date range which uses QDate::today().addDays(-1) for start and end
Definition: datefacet.h:114
@ LastYear
a date range that includes all days from the last year, ie. that before the current one
Definition: datefacet.h:132
@ ThisYear
a date range that includes all days from the current year up to today
Definition: datefacet.h:129
DateRangeCandidate
Using fixed QDate values would result in invalid queries as soon as an application runs over the span...
Definition: datefacet.h:103
@ LastMonth
a date range that includes all days from the last month, ie. that before the current one
Definition: datefacet.h:126
@ ThisMonth
a date range that includes all days from the current month up to today
Definition: datefacet.h:123
@ ThisWeek
a date range that includes all days from the current week up to today
Definition: datefacet.h:117
SelectionMode
A Facet can have one of three selection modes which is provided by selectionMode().
Definition: facet.h:93
virtual DateRange getCustomRange(bool *ok=0) const
Retrieve a custom date range typically from the user.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Jan 19 2020 00:00:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Jan 19 2020 00:00:00 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.