mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-23 20:22:58 +03:00
9d9f1f4d98
From now on if slot getCallbackData(const LimeReport::CallbackInfo& info, QVariant& data) returns row count then there is no more need to implement second slot changePos(const LimeReport::CallbackInfo::ChangePosType& type, bool& result);
25 lines
595 B
C++
25 lines
595 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);
|
|
};
|
|
|
|
}
|
|
|
|
#endif // LRVIRTUALDATASOURCEINTF
|
|
|