libkdeedu/keduvocdocument
keduvocconjugation.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef KEDUVOCCONJUGATION_H
00026 #define KEDUVOCCONJUGATION_H
00027
00028 #include "libkeduvocdocument_export.h"
00029 #include "keduvocgrade.h"
00030
00031 #include <QtCore/QStringList>
00032
00036 class KEDUVOCDOCUMENT_EXPORT KEduVocConjugation
00037 {
00038 public:
00039
00040 enum ConjugationNumber {
00041 Singular,
00042 Dual,
00043 Plural,
00044 NumberMAX
00045 };
00046
00047
00048 enum ConjugationPerson {
00049 First,
00050 Second,
00051 ThirdMale,
00052 ThirdFemale,
00053 ThirdNeutralCommon,
00054 PersonMAX
00055 };
00056
00057
00061 explicit KEduVocConjugation();
00062
00063 KEduVocConjugation( const KEduVocConjugation& rhs );
00064
00065 ~KEduVocConjugation();
00066
00067 KEduVocConjugation& operator = ( const KEduVocConjugation& a );
00068 bool operator == ( const KEduVocConjugation& a ) const;
00069
00070 QString conjugation(ConjugationPerson person, ConjugationNumber number) const;
00071 QString conjugation(int index) const;
00072 void setConjugation(const QString& conjugation, ConjugationPerson person, ConjugationNumber number);
00073
00074 bool isEmpty();
00075
00076 KEduVocGrade &grade();
00077
00078 static int indexOf(ConjugationPerson person, ConjugationNumber number);
00079
00080 private:
00081 class Private;
00082 Private* const d;
00083 };
00084
00085
00086
00087 #endif // KEDUVOCCONJUGATION_H
00088