From: Reto Zingg Date: Sat, 15 Dec 2012 17:28:48 +0000 (+0200) Subject: adapt qmvoclesson.h for querymee X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=fabd8eecb1534e1aff319fc5639cabc31bd4f6e0;p=libqmvoc.git adapt qmvoclesson.h for querymee --- diff --git a/qmvoclesson.h b/qmvoclesson.h index 967470f..5d266c4 100644 --- a/qmvoclesson.h +++ b/qmvoclesson.h @@ -1,7 +1,12 @@ +/*************************************************************************** +* this file is from kdeedu project. Filename: keduvoclesson.h +***************************************************************************/ + /*************************************************************************** Copyright 2007 Jeremy Whiting Copyright 2007 Frederik Gladhorn + Copyright (C) 2010, 2012 Reto Zingg ***************************************************************************/ @@ -14,45 +19,45 @@ * * ***************************************************************************/ -#ifndef KEDUVOCLESSON_H -#define KEDUVOCLESSON_H +#ifndef QMVOCLESSON_H +#define QMVOCLESSON_H -#include "libkeduvocdocument_export.h" +#include "libqmvocdocument_export.h" -#include "keduvoccontainer.h" +#include "qmvoccontainer.h" -class KEduVocExpression; +class QmVocExpression; /** class to store information about a lesson */ -class KEDUVOCDOCUMENT_EXPORT KEduVocLesson :public KEduVocContainer +class QMVOCDOCUMENT_EXPORT QmVocLesson :public QmVocContainer { public: /** default constructor */ - explicit KEduVocLesson(const QString& name, KEduVocContainer *parent = 0); + explicit QmVocLesson(const QString& name, QmVocContainer *parent = 0); -// void appendChildLesson(KEduVocLesson *child); +// void appendChildLesson(QmVocLesson *child); -// QList childLessons(); -// KEduVocLesson *childLesson(int row); +// QList childLessons(); +// QmVocLesson *childLesson(int row); // int childLessonCount() const; // int row() const; -// KEduVocLesson *parent(); +// QmVocLesson *parent(); /** copy constructor for d-pointer safe copying */ - KEduVocLesson( const KEduVocLesson &other ); + QmVocLesson( const QmVocLesson &other ); /** destructor */ - ~KEduVocLesson(); + ~QmVocLesson(); /** assignment operator */ - KEduVocLesson& operator= ( const KEduVocLesson& ); + QmVocLesson& operator= ( const QmVocLesson& ); - KEduVocExpression* entry(int row, EnumEntriesRecursive recursive = NotRecursive); + QmVocExpression* entry(int row, EnumEntriesRecursive recursive = NotRecursive); /** get a list of all entries in the lesson */ - QList < KEduVocExpression* > entries(EnumEntriesRecursive recursive = NotRecursive); + QList < QmVocExpression* > entries(EnumEntriesRecursive recursive = NotRecursive); /** get the number of entries in the lesson */ int entryCount(EnumEntriesRecursive recursive = NotRecursive); @@ -60,19 +65,19 @@ public: /** append an entry to the lesson * @param entryid id of the entry to add */ - void appendEntry(KEduVocExpression* entry); + void appendEntry(QmVocExpression* entry); /** * insert an entry at a specific position * @param index * @param entry */ - void insertEntry(int index, KEduVocExpression* entry); + void insertEntry(int index, QmVocExpression* entry); /** remove an entry from the lesson * @param entryid id of the entry to remove */ - void removeEntry(KEduVocExpression* entry); + void removeEntry(QmVocExpression* entry); private: class Private;