16 #include "../../util/btassert.h"
17 #include "../../util/cp1252.h"
18 #include "../drivers/cswordmoduleinfo.h"
21 #pragma GCC diagnostic push
22 #pragma GCC diagnostic ignored "-Wextra-semi"
23 #pragma GCC diagnostic ignored "-Wsuggest-override"
24 #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
26 #pragma clang diagnostic push
27 #pragma clang diagnostic ignored "-Wsuggest-destructor-override"
32 #pragma clang diagnostic pop
34 #pragma GCC diagnostic pop
44 , m_key(k.m_key.getText())
66 const QString oldKey =
key();
76 return QString::fromUtf8(
m_key.getText());
83 return m_key.getText();
90 return setKey(newKey.toUtf8().constData());
108 return !
m_key.popError();
117 m.setSkipConsecutiveLinks(
true);
119 m.setSkipConsecutiveLinks(
false);
122 m_key.setText(m.getKeyText());
133 m.setSkipConsecutiveLinks(
true);
135 m.setSkipConsecutiveLinks(
false);
137 m_key.setText(m.getKeyText());
const CSwordModuleInfo * m_module
CSwordLDKey * NextEntry()
CSwordLDKey * PreviousEntry()
CSwordLDKey * copy() const final override
CSwordLDKey(const CSwordModuleInfo *module)
void setModule(const CSwordModuleInfo *module) final override
bool setKey(const QString &newKey) final override
sword::SWKey const & asSwordKey() const noexcept final override
QString key() const final override
const char * rawKey() const final override
bool isUnicode() const noexcept
virtual bool snap() const
sword::SWModule & swordModule() const
QString toUnicode(QByteArray const &data)
QByteArray fromUnicode(QString const &str)