--- a/src/versit/qversitdocument.h Fri Sep 17 08:34:34 2010 +0300
+++ b/src/versit/qversitdocument.h Mon Oct 04 01:37:06 2010 +0300
@@ -63,8 +63,10 @@
public:
enum VersitType {
InvalidType,
- VCard21Type, // vCard version 2.1
- VCard30Type // vCard version 3.0 (RFC 2426)
+ VCard21Type, // vCard version 2.1
+ VCard30Type, // vCard version 3.0 (RFC 2426)
+ ICalendar20Type,// iCalendar version 2.0 (RFC 2445)
+ VCard40Type, // vCard version 4.0
};
QVersitDocument();
@@ -76,15 +78,25 @@
bool operator==(const QVersitDocument& other) const;
bool operator!=(const QVersitDocument& other) const;
- // metadata about the versit document itself.
+ // Metadata about the versit document
+ // The type determines the format for serialization
void setType(VersitType type);
VersitType type() const;
+ // The componentType is the value of the BEGIN property
+ void setComponentType(QString componentType);
+ QString componentType() const;
+
+ // The content
void addProperty(const QVersitProperty& property);
void removeProperty(const QVersitProperty& property);
void removeProperties(const QString& name);
QList<QVersitProperty> properties() const;
+ void addSubDocument(const QVersitDocument& subdocument);
+ void setSubDocuments(const QList<QVersitDocument>& documents);
+ QList<QVersitDocument> subDocuments() const;
+
bool isEmpty() const;
void clear();