0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-24 08:34:38 +03:00
LimeReport/include/lrcallbackdatasourceintf.h
Sergey Popovichev 1e8f2f79c7 1.0.1.7
2016-02-17 10:11:00 +03:00

25 lines
572 B
C++

#ifndef LRVIRTUALDATASOURCEINTF
#define LRVIRTUALDATASOURCEINTF
#include <QObject>
namespace LimeReport {
struct CallbackInfo{
enum DataType{IsEmpty, HasNext, ColumnHeaderData, ColumnData};
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