You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
604 B
34 lines
604 B
// xlsxzipwriter_p.h
|
|
|
|
#ifndef QXLSX_ZIPWRITER_H
|
|
#define QXLSX_ZIPWRITER_H
|
|
|
|
#include <QtGlobal>
|
|
#include <QString>
|
|
#include <QIODevice>
|
|
|
|
#include "xlsxglobal.h"
|
|
|
|
class QZipWriter;
|
|
|
|
QT_BEGIN_NAMESPACE_XLSX
|
|
|
|
class ZipWriter
|
|
{
|
|
public:
|
|
explicit ZipWriter(const QString &filePath);
|
|
explicit ZipWriter(QIODevice *device);
|
|
~ZipWriter();
|
|
|
|
void addFile(const QString &filePath, QIODevice *device);
|
|
void addFile(const QString &filePath, const QByteArray &data);
|
|
bool error() const;
|
|
void close();
|
|
|
|
private:
|
|
QZipWriter *m_writer;
|
|
};
|
|
|
|
QT_END_NAMESPACE_XLSX
|
|
|
|
#endif // QXLSX_ZIPWRITER_H
|
|
|