QString m_title;
QString m_author;
QString m_license;
- QString m_remark;
+ QString m_comment;
QString m_version;
QString m_csvDelimiter;
m_url.setFileName( i18n( "Untitled" ) );
m_title = "";
m_author = "";
- m_remark = "";
+ m_comment = "";
m_version = "";
m_generator = "";
m_csvDelimiter = QString( '\t' );
}
-QString KEduVocDocument::documentRemark() const
+QString KEduVocDocument::documentComment() const
{
- return d->m_remark;
+ return d->m_comment;
}
}
-void KEduVocDocument::setDocumentRemark( const QString & s )
+void KEduVocDocument::setDocumentComment( const QString & s )
{
- d->m_remark = s.simplified();
+ d->m_comment = s.simplified();
}
/** @returns the license of the file */
QString license() const;
- /** set the remark of the file
- * @param rem remark to set */
- void setDocumentRemark( const QString & rem );
+ /** set the comment of the file
+ * @param comment comment to set */
+ void setDocumentComment( const QString & comment );
- /** @return the remark of the file */
- QString documentRemark() const;
+ /** @return the comment of the file */
+ QString documentComment() const;
/**
* Sets the generator of the file
// read the comment
currentElement = informationElement.firstChildElement( KVTML_COMMENT );
if ( !currentElement.isNull() ) {
- m_doc->setDocumentRemark( currentElement.text() );
+ m_doc->setDocumentComment( currentElement.text() );
}
return true;
}
// comment
- if ( !m_doc->documentRemark().isEmpty() ) {
- informationElement.appendChild( newTextElement( KVTML_COMMENT, m_doc->documentRemark() ) );
+ if ( !m_doc->documentComment().isEmpty() ) {
+ informationElement.appendChild( newTextElement( KVTML_COMMENT, m_doc->documentComment() ) );
}
return true;
documentAttribute = domElementKvtml.attributeNode( KV_DOC_REM );
if ( !documentAttribute.isNull() )
- m_doc->setDocumentRemark( documentAttribute.value() );
+ m_doc->setDocumentComment( documentAttribute.value() );
documentAttribute = domElementKvtml.attributeNode( KV_GENERATOR );
if ( !documentAttribute.isNull() ) {
if ( !m_doc->license().isEmpty() )
domElementKvtml.setAttribute( KV_LICENSE, m_doc->license() );
- if ( !m_doc->documentRemark().isEmpty() )
- domElementKvtml.setAttribute( KV_DOC_REM, m_doc->documentRemark() );
+ if ( !m_doc->documentComment().isEmpty() )
+ domElementKvtml.setAttribute( KV_DOC_REM, m_doc->documentComment() );
if ( !writeLesson( domDoc, domElementKvtml ) )
return false;
if ( isStartElement() ) {
if ( name() == "Description" )
- m_doc->setDocumentRemark( readElementText() );
+ m_doc->setDocumentComment( readElementText() );
else if ( name() == "Batch" )
readBatch();
else
if ( isStartElement() ) {
if ( name() == "description" )
- m_doc->setDocumentRemark( readElementText() );
+ m_doc->setDocumentComment( readElementText() );
else if ( name() == "full_name" )
m_doc->setTitle( readElementText() );
else if ( name() == "ar" )
this->m_titleList.append( doc->title() );
// add it's comment to the comment list
- this->m_commentList.append( doc->documentRemark() );
+ this->m_commentList.append( doc->documentComment() );
}
// plug a memory leak
delete doc;