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

libkdeedu/keduvocdocument

keduvocgrade.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                         Vocabulary Expression Grades for KDE Edu
00003     -----------------------------------------------------------------------
00004     copyright      :(C) 2007 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
00005  ***************************************************************************/
00006 
00007 /***************************************************************************
00008  *                                                                         *
00009  *   This program is free software; you can redistribute it and/or modify  *
00010  *   it under the terms of the GNU General Public License as published by  *
00011  *   the Free Software Foundation; either version 2 of the License, or     *
00012  *   (at your option) any later version.                                   *
00013  *                                                                         *
00014  ***************************************************************************/
00015 
00016 #ifndef KEDUVOCGRADE_H
00017 #define KEDUVOCGRADE_H
00018 
00019 #include "libkeduvocdocument_export.h"
00020 #include <QtCore/QDateTime>
00021 
00022 
00023 #define KV_MAX_GRADE       7
00024 #define KV_MIN_GRADE       0
00025 
00026 #define KV_NORM_GRADE      0       // not practiced yet
00027 #define KV_NORM_TEXT       I18N_NOOP("Not Practiced Yet")
00028 
00029 #define KV_LEV1_GRADE      1
00030 #define KV_LEV1_TEXT       I18N_NOOP("Level 1")
00031 
00032 #define KV_LEV2_GRADE      2
00033 #define KV_LEV2_TEXT       I18N_NOOP("Level 2")
00034 
00035 #define KV_LEV3_GRADE      3
00036 #define KV_LEV3_TEXT       I18N_NOOP("Level 3")
00037 
00038 #define KV_LEV4_GRADE      4
00039 #define KV_LEV4_TEXT       I18N_NOOP("Level 4")
00040 
00041 #define KV_LEV5_GRADE      5
00042 #define KV_LEV5_TEXT       I18N_NOOP("Level 5")
00043 
00044 #define KV_LEV6_GRADE      6
00045 #define KV_LEV6_TEXT       I18N_NOOP("Level 6")
00046 
00047 #define KV_LEV7_GRADE      7
00048 #define KV_LEV7_TEXT       I18N_NOOP("Level 7")
00049 
00050 
00051 typedef unsigned short grade_t;
00052 typedef unsigned short count_t;
00053 
00054 
00060 class KEDUVOCDOCUMENT_EXPORT KEduVocGrade
00061 {
00062 public:
00064     KEduVocGrade();
00065 
00070     KEduVocGrade( const KEduVocGrade &other );
00071 
00073     ~KEduVocGrade();
00074 
00080     KEduVocGrade& operator= ( const KEduVocGrade &other );
00086     bool operator== ( const KEduVocGrade &other ) const;
00087 
00088 
00092     count_t practiceCount() const;
00093 
00097     void setPracticeCount( count_t count );
00098 
00102     count_t badCount() const;
00103 
00107     void setBadCount( count_t count );
00108 
00110     void incBadCount();
00111 
00113     void incPracticeCount();
00114 
00115 
00119     void resetGrades();
00120 
00124     void setGrade( grade_t grade );
00125 
00129     grade_t grade() const;
00130 
00132     void incGrade();
00133 
00135     void decGrade();
00136 
00139     QDateTime practiceDate() const;
00140 
00144     void setPracticeDate( const QDateTime & date );
00145 
00146 private:
00147     class KEduVocGradePrivate;
00148     KEduVocGradePrivate * const d;
00149 };
00150 
00151 #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