libkdeedu/keduvocdocument
keduvocpersonalpronoun.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 Copyright 2007 Frederik Gladhorn <frederik.gladhorn@kdemail.net> 00003 ***************************************************************************/ 00004 00005 /*************************************************************************** 00006 * * 00007 * This program is free software; you can redistribute it and/or modify * 00008 * it under the terms of the GNU General Public License as published by * 00009 * the Free Software Foundation; either version 2 of the License, or * 00010 * (at your option) any later version. * 00011 * * 00012 ***************************************************************************/ 00013 00014 00015 #ifndef KEDUVOCPERSONALPRONOUN_H 00016 #define KEDUVOCPERSONALPRONOUN_H 00017 00018 #include "libkeduvocdocument_export.h" 00019 #include "keduvocconjugation.h" 00020 #include <QtCore/QStringList> 00021 00025 class KEDUVOCDOCUMENT_EXPORT KEduVocPersonalPronoun 00026 { 00027 public: 00028 00032 explicit KEduVocPersonalPronoun(); 00033 00034 KEduVocPersonalPronoun( const KEduVocPersonalPronoun& rhs ); 00035 00036 ~KEduVocPersonalPronoun(); 00037 00038 KEduVocPersonalPronoun& operator = ( const KEduVocPersonalPronoun& a ); 00039 bool operator == ( const KEduVocPersonalPronoun& a ) const; 00040 00041 QString personalPronoun(KEduVocConjugation::ConjugationPerson person, KEduVocConjugation::ConjugationNumber number) const; 00042 void setPersonalPronoun(const QString& conjugation, KEduVocConjugation::ConjugationPerson person, KEduVocConjugation::ConjugationNumber number); 00043 00044 bool maleFemaleDifferent() const; 00045 void setMaleFemaleDifferent(bool different); 00046 00047 bool neutralExists() const; 00048 void setNeutralExists(bool exists); 00049 00050 bool dualExists() const; 00051 void setDualExists(bool exists); 00052 private: 00053 class Private; 00054 Private* const d; 00055 00056 int indexOf(KEduVocConjugation::ConjugationPerson person, KEduVocConjugation::ConjugationNumber number) const; 00057 }; 00058 00059 00060 00061 #endif // KEDUVOCCONJUGATION_H 00062
KDE 4.0 API Reference