mirror of
https://github.com/fralx/LimeReport.git
synced 2025-11-25 08:28:06 +03:00
1.0.1.7
This commit is contained in:
24
include/lrcallbackdatasourceintf.h
Normal file
24
include/lrcallbackdatasourceintf.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user