diff --git a/include/lrreportengine.h b/include/lrreportengine.h index cbbfa49..beeef00 100644 --- a/include/lrreportengine.h +++ b/include/lrreportengine.h @@ -80,6 +80,7 @@ public: bool loadFromByteArray(QByteArray *data); bool loadFromString(const QString& data); QString reportFileName(); + void setReportFileName(const QString& fileName); bool saveToFile(); bool saveToFile(const QString& fileName); QByteArray saveToByteArray(); diff --git a/limereport/lrreportengine.cpp b/limereport/lrreportengine.cpp index dd159af..a2e4285 100644 --- a/limereport/lrreportengine.cpp +++ b/limereport/lrreportengine.cpp @@ -698,6 +698,12 @@ QString ReportEngine::reportFileName() return d->reportFileName(); } +void ReportEngine::setReportFileName(const QString &fileName) +{ + Q_D(ReportEngine); + return d->setReportFileName(fileName); +} + bool ReportEngine::saveToFile() { Q_D(ReportEngine); diff --git a/limereport/lrreportengine.h b/limereport/lrreportengine.h index cbbfa49..beeef00 100644 --- a/limereport/lrreportengine.h +++ b/limereport/lrreportengine.h @@ -80,6 +80,7 @@ public: bool loadFromByteArray(QByteArray *data); bool loadFromString(const QString& data); QString reportFileName(); + void setReportFileName(const QString& fileName); bool saveToFile(); bool saveToFile(const QString& fileName); QByteArray saveToByteArray(); diff --git a/limereport/lrreportengine_p.h b/limereport/lrreportengine_p.h index 80624e4..c5167ba 100644 --- a/limereport/lrreportengine_p.h +++ b/limereport/lrreportengine_p.h @@ -87,6 +87,7 @@ public: bool loadFromByteArray(QByteArray *data, const QString& name = ""); bool loadFromString(const QString& report, const QString& name = ""); QString reportFileName(){return m_fileName;} + void setReportFileName(const QString& reportFileName){ m_fileName = reportFileName;} bool saveToFile(); bool saveToFile(const QString& fileName); QByteArray saveToByteArray();