+/***************************************************************************
+* this file is from kdeedu project. Filename: keduvocexpression.h
+***************************************************************************/
+
/***************************************************************************
Vocabulary Expression for KDE Edu
-----------------------------------------------------------------------
(C) 2005-2007 Peter Hedlund <peter.hedlund@kdemail.net>
Copyright 2008 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
+ Copyright 2010, 2012 Reto Zingg <g.d0b3rm4n@gmail.com>
+
***************************************************************************/
/***************************************************************************
* *
***************************************************************************/
-#ifndef KEDUVOCEXPRESSION_H
-#define KEDUVOCEXPRESSION_H
+#ifndef QMVOCEXPRESSION_H
+#define QMVOCEXPRESSION_H
-#include "libkeduvocdocument_export.h"
+#include "libqmvocdocument_export.h"
#include <QtCore/QDateTime>
+#include <QMap>
-#include "keduvoclesson.h"
-#include "keduvocarticle.h"
-#include "keduvocmultiplechoice.h"
-#include "keduvoctranslation.h"
+#include "qmvoclesson.h"
+#include "qmvocarticle.h"
+#include "qmvocmultiplechoice.h"
+#include "qmvoctranslation.h"
-class KEduVocLesson;
+class QmVocLesson;
/**
This class contains one vocabulary expression as an original with one or more
translations
*/
-class KEDUVOCDOCUMENT_EXPORT KEduVocExpression
+class QMVOCDOCUMENT_EXPORT QmVocExpression
{
public:
/** default constructor for an empty vocabulary expression
*/
- explicit KEduVocExpression();
+ explicit QmVocExpression();
/** Constructor for a vocabulary expression with one translation
*
* @param expression translation
* @param lesson lesson number
*/
- explicit KEduVocExpression( const QString & expression );
+ explicit QmVocExpression( const QString & expression );
/** Constructor for a vocabulary expression with an original and one or more translations
*
* @param separator expression will be split into an original and one or more translations using separator
* @param lesson lesson number, 0 for none
*/
- explicit KEduVocExpression( const QStringList & translations );
+ explicit QmVocExpression( const QStringList & translations );
- KEduVocExpression(const KEduVocExpression& other);
+ QmVocExpression(const QmVocExpression& other);
- ~KEduVocExpression();
+ ~QmVocExpression();
/** return the lesson
*/
- KEduVocLesson * lesson() const;
+ QmVocLesson * lesson() const;
/** reset all grades of the entry
int sizeHint() const;
void setSizeHint( int sizeHint );
- void setTranslation( int index, KEduVocTranslation* translation );
+ void setTranslation( int index, QmVocTranslation* translation );
/**
* Add a translation to this expression
* @param index number of translation = the identifier
* @param index of the language identifier
* @return the translation
*/
- KEduVocTranslation* translation( int index );
- KEduVocTranslation* translation( int index ) const;
+ QmVocTranslation* translation( int index );
+ QmVocTranslation* translation( int index ) const;
QList<int> translationIndices() const;
- KEduVocExpression& operator= ( const KEduVocExpression &expression );
- bool operator== ( const KEduVocExpression &expression ) const;
+ QmVocExpression& operator= ( const QmVocExpression &expression );
+ bool operator== ( const QmVocExpression &expression ) const;
private:
- class KEduVocExpressionPrivate;
- KEduVocExpressionPrivate* const d;
+ class QmVocExpressionPrivate;
+ QmVocExpressionPrivate* const d;
/** only called by lesson to add itself to the lesson list
*/
- void setLesson( KEduVocLesson * l );
+ void setLesson( QmVocLesson * l );
- friend class KEduVocLesson;
+ friend class QmVocLesson;
};
-#endif // KEduVocExpression_H
+#endif // QMVOCEXPRESSION_H