Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
Mobipocket
Commits
fbd7062a
Commit
fbd7062a
authored
Nov 04, 2013
by
Albert Astals Cid
Browse files
Install QFileStream header
Need it from the okular plugin
parent
a1c1f2bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/CMakeLists.txt
View file @
fbd7062a
...
...
@@ -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
)
...
...
lib/qfilestream.h
View file @
fbd7062a
...
...
@@ -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
;
};
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment