KReport
KReportDataSource.h
113 virtual void addCondition(const QString &field, const QVariant &value, const QString& relation = QLatin1String("="));
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 QVariant value(const QString &field) const =0
Return the value of the field fir the given name for the current record.
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 int fieldNumber(const QString &field) const =0
Return the index number of the field given by nane field.
virtual qint64 recordCount() const =0
Return the total number of records.
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-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:54:26 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:54:26 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.