}
KEduVocLesson *lesson = new KEduVocLesson;
- lesson->setDescription( lessonName );
+ lesson->setName( lessonName );
d->m_lessons.insert( position, lesson );
return position;
}
}
-QStringList KEduVocDocument::lessonDescriptions() const
+QStringList KEduVocDocument::lessonNames() const
{
QStringList descriptions;
QList<KEduVocLesson*> lessonObjects = lessons().values();
for ( int i = 0; i < lessonObjects.count(); ++i ) {
- descriptions.append( lessonObjects[i]->description() );
+ descriptions.append( lessonObjects[i]->name() );
}
return descriptions;
}
* All lesson descriptions as stringlist.
* @returns a list of defined lessons
*/
- QStringList lessonDescriptions() const;
+ QStringList lessonNames() const;
/**
* Sets the description of the lesson
QDomElement thisLessonElement = m_domDoc.createElement( KVTML_LESSON );
// add a name
- thisLessonElement.appendChild( newTextElement( KVTML_NAME, thisLesson->description() ) );
+ thisLessonElement.appendChild( newTextElement( KVTML_NAME, thisLesson->name() ) );
// add a inquery tag
thisLessonElement.appendChild( newTextElement( KVTML_QUERY, m_doc->lessonInQuery( lessonid ) ? KVTML_TRUE : KVTML_FALSE ) );
for ( int i = 0; i < keys.size(); ++i ) {
int thiskey = keys[i];
QDomElement domElementDesc = domDoc.createElement( KV_LESS_DESC );
- QDomText domTextDesc = domDoc.createTextNode( lessons[thiskey]->description() );
+ QDomText domTextDesc = domDoc.createTextNode( lessons[thiskey]->name() );
domElementDesc.setAttribute( KV_LESS_NO, thiskey );
if ( m_doc->currentLesson() == thiskey )
{
public:
QSet<int> m_entries;
- QString m_description;
+ QString m_name;
};
KEduVocLesson::KEduVocLesson()
: d( new Private )
{
d->m_entries = other.d->m_entries;
- d->m_description = other.d->m_description;
+ d->m_name = other.d->m_name;
}
KEduVocLesson::~KEduVocLesson()
KEduVocLesson& KEduVocLesson::operator= ( const KEduVocLesson &other )
{
d->m_entries = other.d->m_entries;
- d->m_description = other.d->m_description;
+ d->m_name = other.d->m_name;
return *this;
}
-void KEduVocLesson::setDescription( const QString &description )
+void KEduVocLesson::setName( const QString &name )
{
- d->m_description = description;
+ d->m_name = name;
}
-QString KEduVocLesson::description()
+QString KEduVocLesson::name()
{
- return d->m_description;
+ return d->m_name;
}
QList<int> KEduVocLesson::entries()
/** assignment operator */
KEduVocLesson& operator= ( const KEduVocLesson& );
- /** set the lesson description
- * @param description text to set for the description
+ /** set the lesson name
+ * @param name text to set for the name
*/
- void setDescription( const QString &description );
+ void setName( const QString &name );
- /** get the lesson description */
- QString description();
+ /** get the lesson name */
+ QString name();
/** get a list of all entries in the lesson */
QList<int> entries();