parley
identifier.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #include "identifier.h"
00016
00017 #include <QMap>
00018
00019 #include <KDebug>
00020
00021 namespace Scripting
00022 {
00023
00024 Identifier::Identifier()
00025 : QObject()
00026 {
00027 m_identifier = new KEduVocIdentifier();
00028 }
00029
00030 Identifier::Identifier ( KEduVocIdentifier * identifier )
00031 : QObject(), m_identifier ( identifier )
00032 {
00033 }
00034
00035 Identifier::Identifier ( KEduVocIdentifier & identifier )
00036 : QObject()
00037 {
00038 m_identifier = new KEduVocIdentifier ( identifier );
00039 }
00040
00041
00042 Identifier::~Identifier()
00043 {
00044 }
00045
00046 QString Identifier::article ( const KEduVocWordFlags& flags )
00047 {
00048 return m_identifier->article().article ( flags );
00049 }
00050
00051
00052 void Identifier::setArticle ( const QString& article, const KEduVocWordFlags& flags )
00053 {
00054 KEduVocArticle karticle = m_identifier->article();
00055 karticle.setArticle ( article, flags );
00056 m_identifier->setArticle ( karticle );
00057 }
00058
00059 QString Identifier::personalPronoun ( const KEduVocWordFlags& flags ) const
00060 {
00061 return m_identifier->personalPronouns().personalPronoun ( flags );
00062 }
00063
00064 void Identifier::setPersonalPronoun ( const QString& conjugation, const KEduVocWordFlags& flags )
00065 {
00066 KEduVocPersonalPronoun ppronouns = m_identifier->personalPronouns();
00067 ppronouns.setPersonalPronoun ( conjugation,flags );
00068 m_identifier->setPersonalPronouns ( ppronouns );
00069 }
00070
00071 QStringList Identifier::personalPronouns ()
00072 {
00073
00074
00075 QStringList list;
00076
00077
00078
00079
00080
00081
00082
00083 return list;
00084 }
00085
00086 }