Commit de6be277 authored by Laurent Montel's avatar Laurent Montel 😁

Create vcard

parent bb8c34de
......@@ -188,7 +188,6 @@ void RoleTest::shouldCreateVCardWithTwoRole()
QCOMPARE(ba, expected);
}
#if 0
void RoleTest::shouldCreateVCardWithParameters()
{
KContacts::AddresseeList lst;
......@@ -242,5 +241,5 @@ void RoleTest::shouldGenerateRoleForVCard3()
"END:VCARD\r\n\r\n");
QCOMPARE(ba, expected);
}
#endif
QTEST_MAIN(RoleTest)
......@@ -39,10 +39,8 @@ private Q_SLOTS:
void shouldParseWithoutRole();
void shouldCreateVCard();
void shouldCreateVCardWithTwoRole();
#if 0
void shouldCreateVCardWithParameters();
void shouldGenerateRoleForVCard3();
#endif
};
#endif // ROLETEST_H
......@@ -1028,7 +1028,9 @@ Addressee::List VCardTool::parseVCards(const QByteArray &vcard) const
// ROLE
else if (identifier == QLatin1String("role")) {
addr.setRole((*lineIt).value().toString());
Role role((*lineIt).value().toString());
role.setParameters((*lineIt).parameterMap());
addr.insertExtraRole(role);
}
// SORT-STRING
......
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