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 @@ ...@@ -2,6 +2,7 @@
set (QMOBIPOCKET_SRCS set (QMOBIPOCKET_SRCS
decompressor.cpp decompressor.cpp
mobipocket.cpp mobipocket.cpp
qfilestream.cpp
) )
kde4_add_library(qmobipocket SHARED ${QMOBIPOCKET_SRCS}) kde4_add_library(qmobipocket SHARED ${QMOBIPOCKET_SRCS})
...@@ -14,6 +15,7 @@ target_link_libraries (qmobipocket ...@@ -14,6 +15,7 @@ target_link_libraries (qmobipocket
install(FILES install(FILES
mobipocket.h mobipocket.h
qmobipocket_export.h qmobipocket_export.h
qfilestream.h
DESTINATION ${INCLUDE_INSTALL_DIR}/qmobipocket/ COMPONENT Devel DESTINATION ${INCLUDE_INSTALL_DIR}/qmobipocket/ COMPONENT Devel
) )
......
...@@ -15,14 +15,15 @@ ...@@ -15,14 +15,15 @@
namespace Mobipocket { namespace Mobipocket {
class QFileStream : public Stream class QMOBIPOCKET_EXPORT QFileStream : public Stream
{ {
public: public:
QFileStream(const QString& name) : d(name) { d.open(QIODevice::ReadOnly); } QFileStream(const QString& name);
int read(char* buf, int size) { return d.read(buf,size); } ~QFileStream();
bool seek(int pos) { return d.seek(pos); } int read(char* buf, int size);
bool seek(int pos);
private: 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