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

libkdeedu/keduvocdocument

keduvocgrammar.h

Go to the documentation of this file.
00001 /***************************************************************************
00002 
00003               manage grammar parts (articles, conjugation)
00004 
00005     -----------------------------------------------------------------------
00006 
00007     begin        : Sat Nov 27 09:50:53 MET 1999
00008 
00009     copyright    : (C) 1999-2001 Ewald Arnold <kvoctrain@ewald-arnold.de>
00010 
00011                    (C) 2005, 2007 Peter Hedlund <peter.hedlund@kdemail.net>
00012                    (C) 2007 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
00013 
00014     -----------------------------------------------------------------------
00015 
00016  ***************************************************************************/
00017 
00018 /***************************************************************************
00019  *                                                                         *
00020  *   This program is free software; you can redistribute it and/or modify  *
00021  *   it under the terms of the GNU General Public License as published by  *
00022  *   the Free Software Foundation; either version 2 of the License, or     *
00023  *   (at your option) any later version.                                   *
00024  *                                                                         *
00025  ***************************************************************************/
00026 
00027 #ifndef KEDUVOCGRAMMAR_H
00028 #define KEDUVOCGRAMMAR_H
00029 
00030 #include "libkeduvocdocument_export.h"
00031 
00032 #include <QtCore/QStringList>
00033 
00039 class KEDUVOCDOCUMENT_EXPORT KEduVocArticle
00040 {
00041 public:
00042 
00043     enum ArticleNumber {
00044         Singular,
00045         Dual,
00046         Plural,
00047         NumberMAX
00048     };
00049 
00050     enum ArticleGender {
00051         Masculine,
00052         Feminine,
00053         Neutral,
00054         GenderMAX
00055     };
00056 
00057     enum ArticleDefiniteness {
00058         Definite,
00059         Indefinite,
00060         DefinitenessMAX
00061     };
00062 
00063 
00067     explicit KEduVocArticle();
00068 
00072     KEduVocArticle( const KEduVocArticle &other );
00073 
00083     KDE_DEPRECATED KEduVocArticle( const QString &fem_def, const QString &fem_indef, const QString &mal_def, const QString &mal_indef, const QString &nat_def, const QString &nat_indef );
00084 
00088     ~KEduVocArticle();
00089 
00090 
00094     KEduVocArticle &operator= ( const KEduVocArticle& other );
00095 
00096 
00097     QString article(ArticleNumber number, ArticleDefiniteness definite, ArticleGender gender);
00098 
00099     void setArticle(const QString& article, ArticleNumber number, ArticleDefiniteness definite, ArticleGender gender);
00100 
00101     bool isArticle(const QString& article) const;
00102 
00103     bool isEmpty();
00104 
00105 private:
00106     int indexOf(ArticleNumber number, ArticleDefiniteness definite, ArticleGender gender);
00107 
00108     class Private;
00109     Private * const d;
00110 };
00111 
00112 
00113 class KEDUVOCDOCUMENT_EXPORT KEduVocComparison
00114 {
00115 public:
00116 
00120     explicit KEduVocComparison();
00121 
00125     KEduVocComparison( const KEduVocComparison &other );
00126 
00133     KEduVocComparison( const QString &l1, const QString &l2, const QString &l3 );
00134 
00136     ~KEduVocComparison();
00137 
00141     void setL1( const QString &s );
00142 
00146     void setL2( const QString &s );
00147 
00151     void setL3( const QString &s );
00152 
00156     QString l1() const;
00157 
00161     QString l2() const;
00162 
00166     QString l3() const;
00167 
00171     bool isEmpty() const;
00172 
00174     void clear();
00175 
00180     bool operator == ( const KEduVocComparison& a ) const;
00181 
00186     KEduVocComparison &operator= ( const KEduVocComparison& other );
00187 
00188 private:
00189     class Private;
00190     Private * const d;
00191 };
00192 
00193 
00194 #endif // KEDUVOCGRAMMAR_H

libkdeedu/keduvocdocument

Skip menu "libkdeedu/keduvocdocument"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
Generated for kdeedu by doxygen 1.5.4
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