MCPcopy Create free account
hub / github.com/KDE/okular / MobiDocument

Method MobiDocument

generators/mobipocket/mobidocument.cpp:14–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12using namespace Mobi;
13
14MobiDocument::MobiDocument(const QString &fileName)
15 : QTextDocument()
16#if QMOBIPOCKET_VERSION_MAJOR < 3
17 , m_file(Mobipocket::QFileStream(fileName))
18{
19#else
20 , m_file(QFile(fileName))
21{
22 if (!m_file.open(QIODeviceBase::ReadOnly)) {
23 return;
24 }
25#endif
26 doc = std::make_unique<Mobipocket::Document>(&m_file);
27 if (doc->isValid()) {

Callers

nothing calls this directly

Calls 2

QFileClass · 0.70
openMethod · 0.45

Tested by

no test coverage detected