Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit 7ea51253 authored by Laurent Montel's avatar Laurent Montel 😁

Generate vcard

parent e8f9cc4f
......@@ -25,6 +25,7 @@
#include <Akonadi/ItemFetchJob>
#include <Akonadi/ItemFetchScope>
#include <QDebug>
#include <util/vcardutil.h>
using namespace KABSendVCards;
......@@ -51,7 +52,11 @@ void SendVcardsJob::start()
Q_FOREACH (const Akonadi::Item &item, mListItem) {
if (item.hasPayload<KABC::Addressee>()) {
const KABC::Addressee contact = item.payload<KABC::Addressee>();
QByteArray data = item.payloadData();
//Workaround about broken kaddressbook fields.
PimCommon::VCardUtil vcardUtil;
} else if (item.hasPayload<KABC::ContactGroup>()) {
const KABC::ContactGroup group = item.payload<KABC::ContactGroup>();
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