16 #include "../../util/btassert.h"
17 #include "../../util/cp1252.h"
18 #include "../drivers/cswordbookmoduleinfo.h"
19 #include "../drivers/cswordmoduleinfo.h"
23 #include <treekeyidx.h>
49 return QString::fromUtf8(
m_key.getText());
63 return setKey(newKey.toUtf8().constData());
80 return !
m_key.popError();
88 return QString::fromUtf8(
m_key.getLocalName());
103 const QString oldKey =
key();
Class for generic book support.
const CSwordModuleInfo * m_module
bool isUnicode() const noexcept
CSwordKey implementation for Sword's TreeKey.
bool positionToFirstChild()
const char * rawKey() const final override
QString getLocalNameUnicode()
QString key() const final override
bool setKey(const QString &key) final override
void setModule(const CSwordModuleInfo *newModule) final override
CSwordTreeKey(const sword::TreeKeyIdx *k, const CSwordModuleInfo *module)
sword::TreeKeyIdx const & asSwordKey() const noexcept final override
CSwordTreeKey * copy() const final override
QString toUnicode(QByteArray const &data)
QByteArray fromUnicode(QString const &str)