diff options
Diffstat (limited to 'bibletime/backend/cswordkey.h')
-rw-r--r-- | bibletime/backend/cswordkey.h | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/bibletime/backend/cswordkey.h b/bibletime/backend/cswordkey.h deleted file mode 100644 index f5c774f..0000000 --- a/bibletime/backend/cswordkey.h +++ /dev/null @@ -1,76 +0,0 @@ -/*************************************************************************** - cswordkey.h - description - ------------------- - begin : Thu May 24 2001 - copyright : (C) 2001 by The BibleTime team - email : info@bibletime.de - ***************************************************************************/ - -/*************************************************************************** - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - ***************************************************************************/ - -#ifndef CSWORDKEY_H -#define CSWORDKEY_H - -//Own includes - - -//Qt includes -#include <qstring.h> - - -class CSwordModuleInfo; -/** - * The base class for all Sword based keys. - * @author The BibleTime team - * @version $Id: cswordkey.h,v 1.14 2003/01/02 18:42:19 joachim Exp $ - */ -class CSwordKey { - -protected: - CSwordKey(CSwordModuleInfo* module = 0); //protected constructor, because CSwordKey shouldn't be used (it's an abstract base class). - CSwordKey(const CSwordKey&); //copy constructor - -public: - - enum TextRenderType { - Normal = 0, - HTMLEscaped - }; - - virtual ~CSwordKey() {}; - - - //pure virtual functions - virtual const QString key() = 0; - virtual void key(const QString&) = 0; - virtual void key(const char*) = 0; - virtual CSwordKey* copy() const = 0; - - //implemented functions - virtual CSwordModuleInfo* const module(CSwordModuleInfo* const newModule = 0); - virtual const QString rawText(); - virtual const QString renderedText( const CSwordKey::TextRenderType mode = CSwordKey::Normal ); - virtual const QString strippedText(); - /** - * This returns a new object of the right CSwordKey* implementation (e.g. CSwordVerseKey or CSwordLDKey) - * The type is determined by the type of the module. - * @see CSwordModuleInfo, CSwordBibleModuleInfo, CSwordCommentaryModuleInfo, CSwordLexiconModukleInfo - */ - static CSwordKey* createInstance(CSwordModuleInfo * const module); - /** - * The assignment operator for more easy use of the key classes. - */ - virtual CSwordKey& operator = ( const QString& ); - -protected: - CSwordModuleInfo* m_module; //module pointer used by all keys -}; - -#endif |