20 #include <QDomDocument>
29 mnl = metadataElement.namedItem( QStringLiteral(
"author" ) );
30 mAuthor = mnl.toElement().text();
33 mnl = metadataElement.namedItem( QStringLiteral(
"creation" ) );
34 mCreationDateTime = QDateTime::fromString( mnl.toElement().text(), Qt::ISODate );
44 QDomElement
author = document.createElement( QStringLiteral(
"author" ) );
45 QDomText authorText = document.createTextNode( mAuthor );
46 author.appendChild( authorText );
47 metadataElement.appendChild(
author );
50 QDomElement creation = document.createElement( QStringLiteral(
"creation" ) );
51 QDomText creationText = document.createTextNode( mCreationDateTime.toString( Qt::ISODate ) );
52 creation.appendChild( creationText );
53 metadataElement.appendChild( creation );
60 return equals( metadataOther ) &&
61 mAuthor == metadataOther.mAuthor &&
62 mCreationDateTime == metadataOther.mCreationDateTime ;
82 return mCreationDateTime;