Changeset View
Changeset View
Standalone View
Standalone View
src/common/KReportData.h
Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Line(s) | 105 | #endif | |||
---|---|---|---|---|---|
106 | 106 | | |||
107 | //! Return a list of data sources possible for advanced controls | 107 | //! Return a list of data sources possible for advanced controls | ||
108 | virtual QStringList dataSources() const; | 108 | virtual QStringList dataSources() const; | ||
109 | 109 | | |||
110 | //! Return a list of data source names possible for advanced controls. | 110 | //! Return a list of data source names possible for advanced controls. | ||
111 | //! Returns dataSources() by default | 111 | //! Returns dataSources() by default | ||
112 | virtual QStringList dataSourceNames() const; | 112 | virtual QStringList dataSourceNames() const; | ||
113 | 113 | | |||
114 | //! Allow a driver to create a new instance with a new data source | 114 | //! Creates a new instance with data source. Default implementation returns @c nullptr. | ||
115 | //! source is a driver specific identifier | 115 | //! @a source is a driver-specific identifier. | ||
116 | //! Owner of the returned pointer is the caller | 116 | //! Owner of the returned pointer is the caller. | ||
117 | virtual KReportData* data(const QString &source); | 117 | virtual KReportData* create(const QString &source); | ||
118 | }; | 118 | }; | ||
119 | 119 | | |||
120 | #endif | 120 | #endif |