Home · All Classes · All Functions ·

QVersitDocument Class Reference

The QVersitDocument class is a container for 0..n versit properties. More...

    #include <QVersitDocument>

Public Functions

QVersitDocument ()
QVersitDocument ( const QVersitDocument & other )
~QVersitDocument ()
void addProperty ( const QVersitProperty & property )
QList<QVersitProperty> properties () const
void removeProperties ( const QString & name )
void setVersitType ( VersitType type )
VersitType versitType () const
QVersitDocument & operator= ( const QVersitDocument & other )

Detailed Description

The QVersitDocument class is a container for 0..n versit properties.

For example a vCard can be presented as a QVersitDocument that consists of 0..n properties such as a name (N), a telephone number (TEL) and an email address (EMAIL) to name a few. Each of these properties is stored as an instance of a QVersitProperty in a QVersitDocument.

QVersitDocument supports implicit sharing.

See also QVersitProperty.


Member Function Documentation

QVersitDocument::QVersitDocument ()

Constructs a new empty document

QVersitDocument::QVersitDocument ( const QVersitDocument & other )

Constructs a document that is a copy of other

QVersitDocument::~QVersitDocument ()

Frees the memory used by the document

void QVersitDocument::addProperty ( const QVersitProperty & property )

Add property to the list of contained versit properties. The property is appended as the last property of the list.

QList<QVersitProperty> QVersitDocument::properties () const

Gets the list of the contained versit properties. Note that the actual properties cannot be modified using the copy.

void QVersitDocument::removeProperties ( const QString & name )

Removes all the properties with name from the versit document.

void QVersitDocument::setVersitType ( VersitType type )

Sets the versit document type to type.

See also versitType().

VersitType QVersitDocument::versitType () const

Gets the versit document type.

See also setVersitType().

QVersitDocument & QVersitDocument::operator= ( const QVersitDocument & other )

Assigns this document to other


Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt Mobility Project 1.0.0 (Technical Preview)