libkdeedu/keduvocdocument
keduvocidentifier.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 Copyright 2007-2008 Frederik Gladhorn <gladhorn@kde.org> 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 #ifndef KEDUVOCIDENTIFIER_H 00014 #define KEDUVOCIDENTIFIER_H 00015 00016 #include "libkeduvocdocument_export.h" 00017 00018 #include "keduvocpersonalpronoun.h" 00019 #include "keduvocarticle.h" 00020 00021 #include <QtCore/QList> 00022 #include <QtCore/QString> 00023 #include <QtCore/QSet> 00024 00025 00029 class KEDUVOCDOCUMENT_EXPORT KEduVocIdentifier 00030 { 00031 public: 00035 explicit KEduVocIdentifier(); 00036 00041 KEduVocIdentifier( const KEduVocIdentifier &other ); 00042 00046 ~KEduVocIdentifier(); 00047 00053 KEduVocIdentifier& operator= ( const KEduVocIdentifier &other ); 00054 public: 00055 00060 QString name() const; 00065 void setName( const QString& name ); 00066 00071 QString locale() const; 00076 void setLocale( const QString& name ); 00077 00082 KEduVocArticle& article() const; 00083 00088 void setArticle( const KEduVocArticle& article ); 00089 00094 KEduVocPersonalPronoun& personalPronouns() const; 00095 00100 void setPersonalPronouns( const KEduVocPersonalPronoun &pronouns ); 00101 00107 const QString& tense(int tenseIndex) const; 00108 00114 void setTense(int tenseIndex, const QString& tense); 00115 00116 const QStringList& tenseList() const; 00117 00118 void setTenseList(const QStringList& tenses); 00119 00120 private: 00121 class Private; 00122 Private * const d; 00123 }; 00124 00125 #endif
KDE 4.2 API Reference