Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KDE Connect
Commits
d22c6641
Commit
d22c6641
authored
Jun 13, 2021
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
plugins/contacts/contactsplugin.h
View file @
d22c6641
...
@@ -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")
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment