You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

45 lines
1.3 KiB

/***************************************************************************
* 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 <QtCore/QString>
#include <QtCore/QByteArray>
#include <QtCore/QMap>
#include <QtGui/QImage>
class QIODevice;
namespace Mobipocket {
struct PDBPrivate;
class PDB {
public:
PDB(QIODevice* dev);
QString fileType() const;
int recordCount() const;
QByteArray getRecord(int i) const;
QString name() const;
bool isValid() const;
private:
PDBPrivate* const d;
};
struct DocumentPrivate;
class Document {
public:
Document(QIODevice* dev);
QMap<QString,QString> metadata() const;
QString text() const;
int imageCount() const;
QImage getImage(int i) const;
bool isValid() const;
private:
DocumentPrivate* const d;
};
}