1 /***************************************************************************
2 * Copyright (C) 2008 by Jakub Stachowski <qbast@go2.pl> *
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 ***************************************************************************/
10 #include "mobithumbnail.h"
11 #include "mobipocket.h"
12 #include "qfilestream.h"
14 #include <QtCore/QFile>
18 KDE_EXPORT ThumbCreator
*new_creator()
20 return new MobiThumbnail
;
24 bool MobiThumbnail::create(const QString
&path
, int width
, int height
, QImage
&img
)
29 Mobipocket::QFileStream
f(path
);
30 Mobipocket::Document
doc(&f
);
31 if (!doc
.isValid()) return false;
36 ThumbCreator::Flags
MobiThumbnail::flags() const
38 return static_cast<Flags
>(None
);