KReport
KReportDataSource.cpp
48KReportDataSource::SortedField::SortedField(const KReportDataSource::SortedField& other) : d(new Private(*other.d))
58KReportDataSource::SortedField & KReportDataSource::SortedField::operator=(const KReportDataSource::SortedField& other)
67bool KReportDataSource::SortedField::operator==(const KReportDataSource::SortedField& other) const
72bool KReportDataSource::SortedField::operator!=(const KReportDataSource::SortedField& other) const
129void KReportDataSource::addCondition(const QString &field, const QVariant &value, const QString& relation)
Describes sorting for single field, By default the order is ascending.
Definition KReportDataSource.h:44
virtual QString sourceClass() const
Definition KReportDataSource.cpp:119
virtual QStringList fieldKeys() const
Return the list of field keys. Returns fieldNames() by default.
Definition KReportDataSource.cpp:109
virtual void addCondition(const QString &field, const QVariant &value, const QString &relation=QLatin1String("="))
Adds a condition to the data source.
Definition KReportDataSource.cpp:129
virtual void setSorting(const QList< SortedField > &sorting)
Sets the sorting for the data Should be called before open() so that the data source can be edited ac...
Definition KReportDataSource.cpp:124
virtual KReportDataSource * create(const QString &source) const
Creates a new instance with data source.
Definition KReportDataSource.cpp:146
virtual QStringList dataSourceNames() const =0
Return a list of data source names available for this data source Works after the source is opened.
Definition KReportDataSource.cpp:136
virtual QString dataSourceCaption(const QString &dataSourceName) const
Return data source caption for specified dataSourceName It is possibly translated.
Definition KReportDataSource.cpp:141
virtual QStringList fieldNames() const =0
Return the list of field names.
virtual QString sourceName() const
Return the name of this source.
Definition KReportDataSource.cpp:114
virtual QVariant value(int pos) const =0
Return the value of the field at the given position for the current record.
SortOrder
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:06:04 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:06:04 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.