Diffstat (limited to 'kabc/vcardparser/vcardline.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kabc/vcardparser/vcardline.h | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/kabc/vcardparser/vcardline.h b/kabc/vcardparser/vcardline.h index 78b61f8..6e74b38 100644 --- a/kabc/vcardparser/vcardline.h +++ b/kabc/vcardparser/vcardline.h @@ -25,2 +25,3 @@ #include <qvaluelist.h> +#include <qcstring.h> #include <qvariant.h> @@ -35,2 +36,3 @@ class VCardLine typedef QValueList<VCardLine> List; + typedef QMap<QString, QStringList> ParamMap; @@ -38,3 +40,3 @@ class VCardLine VCardLine( const QString &identifier ); - VCardLine( const QString &identifier, const QVariant &value ); + VCardLine( const QString &identifier, const QString &value ); VCardLine( const VCardLine& ); @@ -58,3 +60,4 @@ class VCardLine */ - void setValue( const QVariant& value ); + void setValue( const QString& value ); + void setValue( const QByteArray& value ); @@ -64,2 +67,18 @@ class VCardLine QVariant value() const; + QByteArray valueBytes() const; + + /** + * Sets the group the line belongs to. + */ + void setGroup( const QString& group ); + + /** + * Returns the group the line belongs to. + */ + QString group() const; + + /** + * Returns whether the line belongs to a group. + */ + bool hasGroup() const; @@ -77,3 +96,3 @@ class VCardLine * Returns the values of a special parameter. - * You can get a list of all parameters with @ref paramList(). + * You can get a list of all parameters with paramList(). */ @@ -83,3 +102,3 @@ class VCardLine * Returns only the first value of a special parameter. - * You can get a list of all parameters with @ref paramList(). + * You can get a list of all parameters with paramList(). */ @@ -88,5 +107,5 @@ class VCardLine private: - QMap< QString, QStringList > *mParamMap; + ParamMap mParamMap; QString mIdentifier; - QVariant mValue; + QByteArray mValue; |