• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

parley

identifier.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002 
00003     Copyright 2008 Avgoustinos Kadis <avgoustinos.kadis@kdemail.net>
00004 
00005  ***************************************************************************/
00006 
00007 /***************************************************************************
00008  *                                                                         *
00009  *   This program is free software; you can redistribute it and/or modify  *
00010  *   it under the terms of the GNU General Public License as published by  *
00011  *   the Free Software Foundation; either version 2 of the License, or     *
00012  *   (at your option) any later version.                                   *
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 //         KEduVocPersonalPronoun ppronouns = m_identifier->personalPronouns();
00074 
00075          QStringList list;
00076 
00077 //         for ( int n = 0; n <= KEduVocConjugation::Plural; n++ )
00078 //             for ( int p = 0; p <= KEduVocConjugation::ThirdNeutralCommon; p++ )
00079 //             {
00080 //                 list << ppronouns.personalPronoun ( ( KEduVocConjugation::ConjugationPerson ) p, ( KEduVocConjugation::ConjugationNumber ) n );
00081 //             }
00082 
00083          return list;
00084     }
00085 
00086 }

parley

Skip menu "parley"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeedu

Skip menu "kdeedu"
  •     lib
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal