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; ...@@ -58,9 +58,14 @@ class QObject;
* Where the synchronizer will write vcards and other metadata * Where the synchronizer will write vcards and other metadata
* TODO: Per-device folders since each device *will* have different uIDs * TODO: Per-device folders since each device *will* have different uIDs
*/ */
Q_GLOBAL_STATIC_WITH_ARGS(
QString, vcardsLocation, #ifdef Q_OS_WIN
(QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QString::fromLatin1("/kpeoplevcard"))) Q_GLOBAL_STATIC_WITH_ARGS(QString, vcardsLocation,
(QStandardPaths::writableLocation(QStandardPaths::HomeLocation) + QString::fromLatin1("/Contacts")))
#else
Q_GLOBAL_STATIC_WITH_ARGS(QString, vcardsLocation,
(QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QString::fromLatin1("/kpeoplevcard")))
#endif
#define VCARD_EXTENSION QStringLiteral(".vcf") #define VCARD_EXTENSION QStringLiteral(".vcf")
#define METADATA_EXTENSION QStringLiteral(".meta") #define METADATA_EXTENSION QStringLiteral(".meta")
......
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