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
5dc13dd4
Commit
5dc13dd4
authored
Nov 04, 2013
by
Albert Astals Cid
Browse files
Add file i forgot ^_^
parent
fbd7062a
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/qfilestream.cpp
0 → 100644
View file @
5dc13dd4
/***************************************************************************
* Copyright (C) 2008 by Jakub Stachowski <qbast@go2.pl> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
***************************************************************************/
#include
"qfilestream.h"
using
namespace
Mobipocket
;
QFileStream
::
QFileStream
(
const
QString
&
name
)
:
d
(
new
QFile
(
name
))
{
d
->
open
(
QIODevice
::
ReadOnly
);
}
QFileStream
::~
QFileStream
()
{
delete
d
;
}
int
QFileStream
::
read
(
char
*
buf
,
int
size
)
{
return
d
->
read
(
buf
,
size
);
}
bool
QFileStream
::
seek
(
int
pos
)
{
return
d
->
seek
(
pos
);
}
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