45
46
class CSwordVerseKey : public CSwordKey, public sword::VerseKey {
55
* Constructor of this class.
57
* This function will construct a versekey with the current module position
58
* and it will setup the m_module members.
61
CSwordVerseKey( CSwordModuleInfo* const module );
65
CSwordVerseKey( const CSwordVerseKey& k );
67
* VerseKey based constructor.
69
CSwordVerseKey( const sword::VerseKey* const k, CSwordModuleInfo* const module );
73
virtual CSwordKey* copy() const;
75
* Set/get the key. If the parameter is not set (means equal to QString::null)
76
* the used key is returned. Otherwise the key is set and the new on ei returned.
78
virtual QString key() const;
80
* Set the current key.
82
virtual bool key( const QString& );
84
* Set/get the key. If the parameter is not set (means equal to QString::null)
85
* the used key is returned. Otherwise the key is set and the new on ei returned.
87
virtual bool key( const char* key );
90
* Jumps to the next entry of the given type
92
bool next( const JumpType type );
94
* Jumps to the previous entry of the given type
96
bool previous ( const JumpType type );
98
* This functions returns the current book as localised text, not as book numer.
100
* Use "char Book()" to retrieve the book number of the current book.
101
* @return The name of the current book
103
QString book(const QString& newBook = QString::null);
105
* Sets the module for this key
107
virtual CSwordModuleInfo* module( CSwordModuleInfo* const newModule = 0 );
111
* Returns the raw key appropriate for use directly with Sword.
113
virtual const char * rawKey() const;
116
/** Disable assignment operator */
117
CSwordVerseKey& operator= (const CSwordVerseKey&);
118
/** Disable from base class to prevent compiler warnings */
119
inline virtual CSwordVerseKey& operator= (const sword::VerseKey&) { return (*this); };
56
* Constructor of this class.
58
* This function will construct a versekey with the current module position
59
* and it will setup the m_module members.
62
CSwordVerseKey( CSwordModuleInfo* const module );
66
CSwordVerseKey( const CSwordVerseKey& k );
68
* VerseKey based constructor.
70
CSwordVerseKey( const sword::VerseKey* const k, CSwordModuleInfo* const module );
74
virtual CSwordKey* copy() const;
76
* Set/get the key. If the parameter is not set (means equal to QString::null)
77
* the used key is returned. Otherwise the key is set and the new on ei returned.
79
virtual QString key() const;
81
* Set the current key.
83
virtual bool key( const QString& );
85
* Set/get the key. If the parameter is not set (means equal to QString::null)
86
* the used key is returned. Otherwise the key is set and the new on ei returned.
88
virtual bool key( const char* key );
91
* Jumps to the next entry of the given type
93
bool next( const JumpType type );
95
* Jumps to the previous entry of the given type
97
bool previous ( const JumpType type );
99
* This functions returns the current book as localised text, not as book numer.
101
* Use "char Book()" to retrieve the book number of the current book.
102
* @return The name of the current book
104
QString book(const QString& newBook = QString::null);
106
* Sets the module for this key
108
virtual CSwordModuleInfo* module( CSwordModuleInfo* const newModule = 0 );
112
* Returns the raw key appropriate for use directly with Sword.
114
virtual const char * rawKey() const;
117
/** Disable assignment operator */
118
CSwordVerseKey& operator= (const CSwordVerseKey&);
119
/** Disable from base class to prevent compiler warnings */
120
inline virtual CSwordVerseKey& operator= (const sword::VerseKey&) {