KReport
KReportDataSource.cpp
48 KReportDataSource::SortedField::SortedField(const KReportDataSource::SortedField& other) : d(new Private(*other.d))
58 KReportDataSource::SortedField & KReportDataSource::SortedField::operator=(const KReportDataSource::SortedField& other)
67 bool KReportDataSource::SortedField::operator==(const KReportDataSource::SortedField& other) const
72 bool KReportDataSource::SortedField::operator!=(const KReportDataSource::SortedField& other) const
129 void KReportDataSource::addCondition(const QString &field, const QVariant &value, const QString& relation)
virtual QVariant value(int pos) const =0
Return the value of the field at the given position for the current record.
virtual QString sourceName() const
Return the name of this source.
Definition: KReportDataSource.cpp:114
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
Describes sorting for single field, By default the order is ascending.
Definition: KReportDataSource.h:43
SortOrder
virtual QString dataSourceCaption(const QString &dataSourceName) const
Return data source caption for specified dataSourceName It is possibly translated.
Definition: KReportDataSource.cpp:141
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 QStringList fieldKeys() const
Return the list of field keys. Returns fieldNames() by default.
Definition: KReportDataSource.cpp:109
virtual QString sourceClass() const
Definition: KReportDataSource.cpp:119
virtual QStringList fieldNames() const =0
Return the list of field names.
virtual void addCondition(const QString &field, const QVariant &value, const QString &relation=QLatin1String("="))
Adds a condition to the data source.
Definition: KReportDataSource.cpp:129
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Dec 6 2023 04:08:57 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Dec 6 2023 04:08:57 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.