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());
66 return setKey(newKey.toUtf8().constData());
71 return error ? false :
setKey(converted.constData());
85 return !
m_key.popError();
93 return QString::fromUtf8(
m_key.getLocalName());
111 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
QByteArray fromUnicode(QString const &str, bool &error)
QString toUnicode(QByteArray const &data, bool &error)