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

libkdeedu/keduvocdocument

keduvocdeclination.h

Go to the documentation of this file.
00001 /***************************************************************************
00002 
00003     C++ Interface: keduvocdeclination
00004 
00005     -----------------------------------------------------------------------
00006 
00007     begin         : Do Sep 20 2007
00008 
00009     copyright     : (C) 2007 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
00010 
00011     -----------------------------------------------------------------------
00012 
00013  ***************************************************************************/
00014 
00015 /***************************************************************************
00016  *                                                                         *
00017  *   This program is free software; you can redistribute it and/or modify  *
00018  *   it under the terms of the GNU General Public License as published by  *
00019  *   the Free Software Foundation; either version 2 of the License, or     *
00020  *   (at your option) any later version.                                   *
00021  *                                                                         *
00022  ***************************************************************************/
00023 #ifndef KEDUVOCDECLINATION_H
00024 #define KEDUVOCDECLINATION_H
00025 
00026 #include <QtCore/QString>
00027 
00033 class KEduVocDeclination{
00034 public:
00035     enum DeclinationNumber {
00036         Singular = 1,
00037         Dual,
00038         Plural
00039     };
00040 
00041     enum DeclinationCase {
00042         Nominative = 1,
00043         Genitive,
00044         Dative,
00045         Accusative,
00046         Ablative,
00047         Locative,
00048         Vocative,
00049         DeclinationCaseMAX
00050     };
00051 
00052 
00056     explicit KEduVocDeclination();
00057 
00061     KEduVocDeclination( const KEduVocDeclination &other );
00062 
00063     ~KEduVocDeclination();
00064 
00069 //     will probably not be necessary
00070 //     bool operator == ( const KEduVocDeclination& a ) const;
00071 
00076     KEduVocDeclination& operator= ( const KEduVocDeclination& other );
00077 
00084     QString declination(DeclinationNumber number, DeclinationCase decCase);
00085 
00092     void setDeclination(const QString& declination, DeclinationNumber number, DeclinationCase decCase);
00093 
00094     bool isEmpty();
00095 
00096 private:
00097     int indexOf(DeclinationNumber number, DeclinationCase decCase);
00098 
00099     class Private;
00100     Private * const d;
00101 };
00102 
00103 #endif

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