2016-02-17 10:11:00 +03:00
|
|
|
#ifndef LRVIRTUALDATASOURCEINTF
|
|
|
|
#define LRVIRTUALDATASOURCEINTF
|
|
|
|
#include <QObject>
|
|
|
|
namespace LimeReport {
|
|
|
|
|
|
|
|
struct CallbackInfo{
|
2016-03-27 10:40:13 +03:00
|
|
|
enum DataType{IsEmpty, HasNext, ColumnHeaderData, ColumnData, ColumnCount, RowCount};
|
2016-02-17 10:11:00 +03:00
|
|
|
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);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // LRVIRTUALDATASOURCEINTF
|
|
|
|
|