2016-02-17 10:11:00 +03:00
|
|
|
#ifndef LRVIRTUALDATASOURCEINTF
|
|
|
|
#define LRVIRTUALDATASOURCEINTF
|
|
|
|
#include <QObject>
|
|
|
|
namespace LimeReport {
|
|
|
|
|
2024-09-04 17:31:16 +03:00
|
|
|
struct CallbackInfo {
|
|
|
|
enum DataType {
|
|
|
|
IsEmpty,
|
|
|
|
HasNext,
|
|
|
|
ColumnHeaderData,
|
|
|
|
ColumnData,
|
|
|
|
ColumnCount,
|
|
|
|
RowCount
|
|
|
|
};
|
|
|
|
enum ChangePosType {
|
|
|
|
First,
|
|
|
|
Next
|
|
|
|
};
|
2016-02-17 10:11:00 +03:00
|
|
|
DataType dataType;
|
|
|
|
int index;
|
|
|
|
QString columnName;
|
|
|
|
};
|
|
|
|
|
2024-09-04 17:31:16 +03:00
|
|
|
class ICallbackDatasource: public QObject {
|
2016-02-17 10:11:00 +03:00
|
|
|
Q_OBJECT
|
|
|
|
signals:
|
|
|
|
void getCallbackData(const LimeReport::CallbackInfo& info, QVariant& data);
|
|
|
|
void changePos(const LimeReport::CallbackInfo::ChangePosType& type, bool& result);
|
|
|
|
};
|
|
|
|
|
2024-09-04 17:31:16 +03:00
|
|
|
} // namespace LimeReport
|
2016-02-17 10:11:00 +03:00
|
|
|
|
|
|
|
#endif // LRVIRTUALDATASOURCEINTF
|