Commit d22c6641 authored by Piyush Aggarwal's avatar Piyush Aggarwal 🎮
Browse files

contactsplugin: save vcards in Contacts folder provided by Windows

parent ee6e4271
Pipeline #65468 passed with stage
in 4 minutes and 5 seconds
......@@ -58,9 +58,14 @@ class QObject;
* Where the synchronizer will write vcards and other metadata
* TODO: Per-device folders since each device *will* have different uIDs
QString, vcardsLocation,
#ifdef Q_OS_WIN
Q_GLOBAL_STATIC_WITH_ARGS(QString, vcardsLocation,
(QStandardPaths::writableLocation(QStandardPaths::HomeLocation) + QString::fromLatin1("/Contacts")))
Q_GLOBAL_STATIC_WITH_ARGS(QString, vcardsLocation,
(QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QString::fromLatin1("/kpeoplevcard")))
#define VCARD_EXTENSION QStringLiteral(".vcf")
#define METADATA_EXTENSION QStringLiteral(".meta")
Supports Markdown
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