0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-23 16:22:58 +03:00
LimeReport/limereport/lrcallbackdatasourceintf.h

34 lines
698 B
C
Raw Normal View History

2016-02-17 10:11:00 +03:00
#ifndef LRVIRTUALDATASOURCEINTF
#define LRVIRTUALDATASOURCEINTF
#include <QObject>
namespace LimeReport {
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;
};
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);
};
} // namespace LimeReport
2016-02-17 10:11:00 +03:00
#endif // LRVIRTUALDATASOURCEINTF