xlsxzipwriter_p.h 604 B

12345678910111213141516171819202122232425262728293031323334
  1. // xlsxzipwriter_p.h
  2. #ifndef QXLSX_ZIPWRITER_H
  3. #define QXLSX_ZIPWRITER_H
  4. #include <QtGlobal>
  5. #include <QString>
  6. #include <QIODevice>
  7. #include "xlsxglobal.h"
  8. class QZipWriter;
  9. QT_BEGIN_NAMESPACE_XLSX
  10. class ZipWriter
  11. {
  12. public:
  13. explicit ZipWriter(const QString &filePath);
  14. explicit ZipWriter(QIODevice *device);
  15. ~ZipWriter();
  16. void addFile(const QString &filePath, QIODevice *device);
  17. void addFile(const QString &filePath, const QByteArray &data);
  18. bool error() const;
  19. void close();
  20. private:
  21. QZipWriter *m_writer;
  22. };
  23. QT_END_NAMESPACE_XLSX
  24. #endif // QXLSX_ZIPWRITER_H