mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-24 00:33:02 +03:00
0fca7169d3
except those placed in 3rdparty directories.
34 lines
698 B
C++
34 lines
698 B
C++
#ifndef LRVIRTUALDATASOURCEINTF
|
|
#define LRVIRTUALDATASOURCEINTF
|
|
#include <QObject>
|
|
namespace LimeReport {
|
|
|
|
struct CallbackInfo {
|
|
enum DataType {
|
|
IsEmpty,
|
|
HasNext,
|
|
ColumnHeaderData,
|
|
ColumnData,
|
|
ColumnCount,
|
|
RowCount
|
|
};
|
|
enum ChangePosType {
|
|
First,
|
|
Next
|
|
};
|
|
DataType dataType;
|
|
int index;
|
|
QString columnName;
|
|
};
|
|
|
|
class ICallbackDatasource: public QObject {
|
|
Q_OBJECT
|
|
signals:
|
|
void getCallbackData(const LimeReport::CallbackInfo& info, QVariant& data);
|
|
void changePos(const LimeReport::CallbackInfo::ChangePosType& type, bool& result);
|
|
};
|
|
|
|
} // namespace LimeReport
|
|
|
|
#endif // LRVIRTUALDATASOURCEINTF
|