Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 2ec130e8 authored by Laurent Montel's avatar Laurent Montel 😁

Return all parameters

parent 157aa3e1
......@@ -78,7 +78,7 @@ QString Email::toString() const
QString str;
str += QString::fromLatin1( "Email {\n" );
str += QString::fromLatin1( " mail: %1\n" ).arg( d->mail );
str += QString::fromLatin1( " prefered: %1\n" ).arg( d->preferred ? QLatin1String("True") : QLatin1String("False") );
str += QString::fromLatin1( " preferred: %1\n" ).arg( d->preferred ? QLatin1String("True") : QLatin1String("False") );
if (!d->parameters.isEmpty()) {
QMapIterator<QString, QStringList> i(d->parameters);
QString param;
......
......@@ -136,3 +136,8 @@ QString VCardLine::parameter( const QString &param ) const
}
}
}
VCardLine::ParamMap VCardLine::parameterMap() const
{
return mParamMap;
}
......@@ -109,6 +109,12 @@ class VCardLine
*/
QString parameter( const QString &param ) const;
/**
* Returns all parameters
* @since 4.14.5
*/
ParamMap parameterMap() const;
private:
ParamMap mParamMap;
QString mIdentifier;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment