vcardline.h
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 #ifndef VCARDLINE_H
00022 #define VCARDLINE_H
00023 
00024 #include <qstringlist.h>
00025 #include <qvaluelist.h>
00026 #include <qvariant.h>
00027 #include <qmap.h>
00028 #include <qstring.h>
00029 
00030 namespace KABC {
00031 
00032 class VCardLine
00033 {
00034   public:
00035     typedef QValueList<VCardLine> List;
00036     typedef QMap<QString, QStringList> ParamMap;
00037 
00038     VCardLine();
00039     VCardLine( const QString &identifier );
00040     VCardLine( const QString &identifier, const QVariant &value );
00041     VCardLine( const VCardLine& );
00042 
00043     ~VCardLine();
00044 
00045     VCardLine& operator=( const VCardLine& );
00046 
00050     void setIdentifier( const QString& identifier );
00051 
00055     QString identifier() const;
00056 
00060     void setValue( const QVariant& value );
00061 
00065     QVariant value() const;
00066 
00070     QStringList parameterList() const;
00071 
00075     void addParameter( const QString& param, const QString& value );
00076 
00081     QStringList parameters( const QString& param ) const;
00082 
00087     QString parameter( const QString& param ) const;
00088 
00089   private:
00090     ParamMap mParamMap;
00091     QString mIdentifier;
00092     QVariant mValue;
00093 
00094     class VCardLinePrivate;
00095     VCardLinePrivate *d;
00096 };
00097 
00098 }
00099 
00100 #endif
 
This file is part of the documentation for kabc Library Version 3.2.0.