19 #include "../btsignal.h"
22 #pragma GCC diagnostic push
23 #pragma GCC diagnostic ignored "-Wextra-semi"
24 #pragma GCC diagnostic ignored "-Wsuggest-override"
25 #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
27 #pragma clang diagnostic push
28 #pragma clang diagnostic ignored "-Wsuggest-destructor-override"
32 #pragma clang diagnostic pop
34 #pragma GCC diagnostic pop
73 #define BibleTime_CSwordVerseKey_DEFINE_COMP(op) \
74 friend bool operator op(CSwordVerseKey const & lhs, \
75 CSwordVerseKey const & rhs) \
77 return std::tuple(lhs.testament(), lhs.book(), lhs.chapter(), \
78 lhs.verse(), lhs.suffix()) op \
79 std::tuple(rhs.testament(), rhs.book(), rhs.chapter(), \
80 rhs.verse(), rhs.suffix()); \
82 #if __cpp_impl_three_way_comparison >= 201907L
92 #undef BibleTime_CSwordVerseKey_DEFINE_COMP
116 sword::SWKey
const &
asSwordKey() const noexcept final override;
120 QString
key() const final override;
123 bool setKey(const QString &
key) final override;
125 bool setKey(const
char *
key) final override;
144 {
m_key.setBookName(newBookName.toUtf8().constData()); }
155 {
return QString::fromUtf8(
m_key.getShortText()); }
181 return m_key.getVersificationSystem();
184 m_key.setVersificationSystem(name);
194 const char *
rawKey() const final override;
CSwordKey & operator=(CSwordKey const &)=delete
CSwordModuleInfo const * module() const
CSwordKey implementation for Sword's VerseKey.
CSwordVerseKey upperBound() const
void setLowerBound(CSwordVerseKey const &bound)
~CSwordVerseKey() override
bool next(const JumpType type=JumpType::UseVerse)
void setModule(const CSwordModuleInfo *newModule) final override
void setLocale(char const *const locale)
QString versification() const
void setTestament(char v)
CSwordVerseKey(const CSwordModuleInfo *module)
bool previous(const JumpType type=JumpType::UseVerse)
QString key() const final override
QPointer< BtSignal > m_afterChangedSignaller
bool setKey(const QString &key) final override
const BtSignal * afterChangedSignaller()
void setVersification(const char *name)
CSwordVerseKey * copy() const final override
const char * rawKey() const final override
QString normalizedKey() const final override
void setUpperBound(CSwordVerseKey const &bound)
BibleTime_CSwordVerseKey_DEFINE_COMP(<) BibleTime_CSwordVerseKey_DEFINE_COMP(<
QString shortText() const
sword::SWKey const & asSwordKey() const noexcept final override
CSwordVerseKey lowerBound() const
void setBookName(QString const &newBookName)