0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-24 00:33:02 +03:00
LimeReport/limereport/lrcallbackdatasourceintf.h
Андрей Лухнов 0fca7169d3 Define code style and format all source file using clang-format-14
except those placed in 3rdparty directories.
2024-09-19 21:09:38 +03:00

34 lines
698 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);
};
} // namespace LimeReport
#endif // LRVIRTUALDATASOURCEINTF