contactsplugin: save vcards in Contacts folder provided by Windows
This commit is contained in:
parent
ee6e427137
commit
d22c6641b4
1 changed files with 8 additions and 3 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue