Commit fbd7062a authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Install QFileStream header

Need it from the okular plugin
parent a1c1f2bd
......@@ -2,6 +2,7 @@
set (QMOBIPOCKET_SRCS
decompressor.cpp
mobipocket.cpp
qfilestream.cpp
)
kde4_add_library(qmobipocket SHARED ${QMOBIPOCKET_SRCS})
......@@ -14,6 +15,7 @@ target_link_libraries (qmobipocket
install(FILES
mobipocket.h
qmobipocket_export.h
qfilestream.h
DESTINATION ${INCLUDE_INSTALL_DIR}/qmobipocket/ COMPONENT Devel
)
......
......@@ -15,14 +15,15 @@
namespace Mobipocket {
class QFileStream : public Stream
class QMOBIPOCKET_EXPORT QFileStream : public Stream
{
public:
QFileStream(const QString& name) : d(name) { d.open(QIODevice::ReadOnly); }
int read(char* buf, int size) { return d.read(buf,size); }
bool seek(int pos) { return d.seek(pos); }
QFileStream(const QString& name);
~QFileStream();
int read(char* buf, int size);
bool seek(int pos);
private:
QFile d;
QFile *d;
};
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment