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

Create temporary file

parent 29c84592
......@@ -32,6 +32,7 @@
#include <KTempDir>
#include <KStandardDirs>
#include <KToolInvocation>
#include <QFile>
using namespace KABSendVCards;
......@@ -124,3 +125,16 @@ void SendVcardsJob::slotExpandGroupResult(KJob* job)
void SendVcardsJob::createTemporaryFile(const QByteArray &data, const QString &filename)
QFile file(mTempDir->name() + QLatin1Char('/') + filename);
if (! | QIODevice::Text)) {
qDebug()<<"Can not write vcard filename :"<<filename;
QTextStream out(&file);
out << data;
......@@ -45,6 +45,7 @@ private Q_SLOTS:
void slotExpandGroupResult(KJob *job);
void createTemporaryFile(const QByteArray &data, const QString &filename);
void createTemporaryDir();
void jobFinished();
Akonadi::Item::List mListItem;
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