mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2025-09-23 16:49:07 +03:00
New functionality has been added to the report's variables
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
#define LRDATASOURCEMANAGERINTF_H
|
||||
|
||||
#include "lrcallbackdatasourceintf.h"
|
||||
#include "lrglobal.h"
|
||||
|
||||
class QVariant;
|
||||
class QString;
|
||||
@@ -56,6 +57,11 @@ public:
|
||||
virtual void clearUserVariables()=0;
|
||||
virtual ICallbackDatasource* createCallbackDatasource(const QString& name) = 0;
|
||||
virtual void registerDbCredentialsProvider(IDbCredentialsProvider* provider) = 0;
|
||||
|
||||
virtual QStringList variableNames() = 0;
|
||||
virtual bool variableIsMandatory(const QString& name) = 0;
|
||||
virtual VariableDataType variableDataType(const QString& name) = 0;
|
||||
virtual bool variableIsSystem(const QString& name) = 0;
|
||||
};
|
||||
|
||||
}
|
||||
|
@@ -157,6 +157,17 @@ namespace Const{
|
||||
typedef QScriptValue ScriptValueType;
|
||||
#endif
|
||||
|
||||
class Enums
|
||||
{
|
||||
public:
|
||||
enum VariableDataType {Undefined, String, Bool, Int, Real, Date, Time, DateTime};
|
||||
Q_ENUM(VariableDataType)
|
||||
private:
|
||||
Enums(){}
|
||||
Q_GADGET
|
||||
};
|
||||
typedef Enums::VariableDataType VariableDataType;
|
||||
|
||||
} // namespace LimeReport
|
||||
|
||||
Q_DECLARE_OPERATORS_FOR_FLAGS(LimeReport::PreviewHints)
|
||||
|
Reference in New Issue
Block a user