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

parley

identifier.h

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 #ifndef SCRIPTINGIDENTIFIER_H
00016 #define SCRIPTINGIDENTIFIER_H
00017 
00018 #include <keduvocidentifier.h>
00019 #include <keduvocwordflags.h>
00020 
00021 #include <QObject>
00022 
00023 namespace Scripting
00024 {
00025 
00054     class Identifier : public QObject
00055     {
00056             Q_OBJECT
00057             Q_PROPERTY ( QString name READ name WRITE setName )
00058             Q_PROPERTY ( QString locale READ locale WRITE setLocale )
00059         public:
00060 
00061             Identifier ();
00062 
00063             Identifier ( KEduVocIdentifier * identifier );
00064 
00065             Identifier ( KEduVocIdentifier & identifier );
00066 
00067             ~Identifier();
00068 
00069             KEduVocIdentifier * kEduVocIdentifier() { return m_identifier; }
00070 
00075             QString name() const { return m_identifier->name(); }
00080             void setName ( const QString& name ) { m_identifier->setName ( name ); }
00081 
00086             QString locale() const { return m_identifier->locale(); }
00091             void setLocale ( const QString& name ) { m_identifier->setLocale ( name ); }
00092 
00093         public Q_SLOTS:
00094 
00095             /**** Article Functions ****/
00096 
00101 //             KEduVocArticle article() const;
00102 
00113             QString article ( const KEduVocWordFlags& flags );
00114 
00125             void setArticle ( const QString& article, const KEduVocWordFlags& flags );
00126 
00127             /**** Personal Pronoun Functions ****/
00128 
00133 //             KEduVocPersonalPronoun personalPronouns() const;
00134 
00135 //              QString personalPronoun ( const QString & number, const QString & person );
00136             QString personalPronoun ( const KEduVocWordFlags& flags ) const;
00137 
00138 
00143 //             void setPersonalPronouns ( const KEduVocPersonalPronoun &pronouns );
00144 
00145 //             void setPersonalPronoun ( const QString& personalPronoun, const QString & number, const QString & person );
00146             void setPersonalPronoun ( const QString& conjugation, const KEduVocWordFlags& flags );
00147 
00148             QStringList personalPronouns ();
00149 
00166             void setTenses ( QStringList names ) { m_identifier->setTenseList ( names ); }
00167 
00172             QStringList tenses() const { return m_identifier->tenseList(); }
00173 
00174 
00175         private:
00176             KEduVocIdentifier * m_identifier;
00177     };
00178 
00179 }
00180 
00181 #endif

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