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 b174f200 authored by Laurent Montel's avatar Laurent Montel 😁

Create temporary file

parent 910f087e
......@@ -72,6 +72,7 @@ bool SendVcardsJob::start()
createTemporaryDir();
const QString contactRealName(contact.realName());
const QString attachmentName = (contactRealName.isEmpty() ? QLatin1String("vcard") : contactRealName ) + QLatin1String( ".vcf" );
createTemporaryFile(data, attachmentName);
} else if (item.hasPayload<KABC::ContactGroup>()) {
++mExpandGroupJobCount;
const KABC::ContactGroup group = item.payload<KABC::ContactGroup>();
......@@ -117,8 +118,8 @@ void SendVcardsJob::slotExpandGroupResult(KJob* job)
KABC::VCardConverter converter;
const QByteArray groupData = converter.exportVCards(expandJob->contacts(), KABC::VCardConverter::v3_0);
createTemporaryDir();
createTemporaryFile(groupData, attachmentName);
//TODO
--mExpandGroupJobCount;
if (mExpandGroupJobCount == 0) {
jobFinished();
......
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