• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

Nepomuk-Core

  • sources
  • kde-4.12
  • kdelibs
  • nepomuk-core
  • services
  • fileindexer
  • indexer
  • mobipocket
qfilestream.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2008 by Jakub Stachowski <qbast@go2.pl> *
3  * *
4  * This program is free software; you can redistribute it and/or modify *
5  * it under the terms of the GNU General Public License as published by *
6  * the Free Software Foundation; either version 2 of the License, or *
7  * (at your option) any later version. *
8  ***************************************************************************/
9 
10 #ifndef QFILESTREAM_H
11 #define QFILESTREAM_H
12 
13 #include <QtCore/QFile>
14 #include <qmobipocket/mobipocket.h>
15 
16 namespace Mobipocket {
17 
18 class QFileStream : public Stream
19 {
20 public:
21  QFileStream(const QString& name) : d(name) { d.open(QIODevice::ReadOnly); }
22  int read(char* buf, int size) { return d.read(buf,size); }
23  bool seek(int pos) { return d.seek(pos); }
24 private:
25  QFile d;
26 };
27 
28 }
29 #endif
Mobipocket::QFileStream::QFileStream
QFileStream(const QString &name)
Definition: qfilestream.h:21
Mobipocket::QFileStream::seek
bool seek(int pos)
Definition: qfilestream.h:23
Mobipocket::QFileStream
Definition: qfilestream.h:18
Mobipocket::QFileStream::read
int read(char *buf, int size)
Definition: qfilestream.h:22
Stream
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Nepomuk-Core

Skip menu "Nepomuk-Core"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal