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.
37 lines
688 B
37 lines
688 B
// xlsxzipreader_p.h
|
|
|
|
#ifndef QXLSX_XLSXZIPREADER_P_H
|
|
#define QXLSX_XLSXZIPREADER_P_H
|
|
|
|
#include <QScopedPointer>
|
|
#include <QStringList>
|
|
#include <QIODevice>
|
|
|
|
#include "xlsxglobal.h"
|
|
|
|
#include <QVector>
|
|
|
|
class QZipReader;
|
|
|
|
QT_BEGIN_NAMESPACE_XLSX
|
|
|
|
class ZipReader
|
|
{
|
|
public:
|
|
explicit ZipReader(const QString &fileName);
|
|
explicit ZipReader(QIODevice *device);
|
|
~ZipReader();
|
|
bool exists() const;
|
|
QStringList filePaths() const;
|
|
QByteArray fileData(const QString &fileName) const;
|
|
|
|
private:
|
|
Q_DISABLE_COPY(ZipReader)
|
|
void init();
|
|
QScopedPointer<QZipReader> m_reader;
|
|
QStringList m_filePaths;
|
|
};
|
|
|
|
QT_END_NAMESPACE_XLSX
|
|
|
|
#endif // QXLSX_XLSXZIPREADER_P_H
|
|
|