kaddressbook
Go to the documentation of this file.
20 #include <KLocalizedString>
23 #include <KConfigGroup>
24 #include <qcheckbox.h>
25 #include <qgridlayout.h>
26 #include <qgroupbox.h>
34 i18nc(
"@title:group",
"Fields to be exported" ),
this );
38 mPrivateBox =
new QCheckBox( i18nc(
"@option:check",
"Private fields" ),
this );
40 i18nc(
"@info:tooltip",
"Export private fields" ) );
42 i18nc(
"@info:whatsthis",
43 "Check this box if you want to export the contact's "
44 "private fields to the vCard output file." ) );
47 mBusinessBox =
new QCheckBox( i18nc(
"@option:check",
"Business fields" ),
this );
49 i18nc(
"@info:tooltip",
"Export business fields" ) );
51 i18nc(
"@info:whatsthis",
52 "Check this box if you want to export the contact's "
53 "business fields to the vCard output file." ) );
56 mOtherBox =
new QCheckBox( i18nc(
"@option:check",
"Other fields" ),
this );
58 i18nc(
"@info:tooltip",
"Export other fields" ) );
60 i18nc(
"@info:whatsthis",
61 "Check this box if you want to export the contact's "
62 "other fields to the vCard output file." ) );
65 mEncryptionKeys =
new QCheckBox( i18nc(
"@option:check",
"Encryption keys" ),
this );
67 i18nc(
"@info:tooltip",
"Export encryption keys" ) );
69 i18nc(
"@info:whatsthis",
70 "Check this box if you want to export the contact's "
71 "encryption keys to the vCard output file." ) );
72 layout->
addWidget( mEncryptionKeys, 1, 1 );
74 mPictureBox =
new QCheckBox( i18nc(
"@option:check",
"Pictures" ),
this );
76 i18nc(
"@info:tooltip",
"Export pictures" ) );
78 i18nc(
"@info:whatsthis",
79 "Check this box if you want to export the contact's "
80 "picture to the vCard output file." ) );
84 i18nc(
"@title:group",
"Export options" ),
this );
88 mDisplayNameBox =
new QCheckBox( i18nc(
"@option:check",
"Display name as full name" ),
this );
90 i18nc(
"@info:tooltip",
"Export display name as full name" ) );
92 i18nc(
"@info:whatsthis",
93 "Check this box if you want to export the contact's display name "
94 "in the vCard's full name field. This may be required to get the "
95 "name shown correctly in GMail or Android." ) );
96 layout->
addWidget( mDisplayNameBox, 5, 0, 1, 2 );
106 void VCardExportSelectionWidget::readSettings()
109 const KConfigGroup group( &config,
"XXPortVCard" );
111 mPrivateBox->
setChecked( group.readEntry(
"ExportPrivateFields",
true ) );
112 mBusinessBox->
setChecked( group.readEntry(
"ExportBusinessFields",
true ) );
113 mOtherBox->
setChecked( group.readEntry(
"ExportOtherFields",
true ) );
114 mEncryptionKeys->
setChecked( group.readEntry(
"ExportEncryptionKeys",
true ) );
115 mPictureBox->
setChecked( group.readEntry(
"ExportPictureFields",
true ) );
116 mDisplayNameBox->
setChecked( group.readEntry(
"ExportDisplayName",
false ) );
119 void VCardExportSelectionWidget::writeSettings()
122 KConfigGroup group( &config,
"XXPortVCard" );
124 group.writeEntry(
"ExportPrivateFields", mPrivateBox->
isChecked() );
125 group.writeEntry(
"ExportBusinessFields", mBusinessBox->
isChecked() );
126 group.writeEntry(
"ExportOtherFields", mOtherBox->
isChecked() );
127 group.writeEntry(
"ExportEncryptionKeys", mEncryptionKeys->
isChecked() );
128 group.writeEntry(
"ExportPictureFields", mPictureBox->
isChecked() );
129 group.writeEntry(
"ExportDisplayName", mDisplayNameBox->
isChecked() );
134 ExportFields type =
None;
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:34 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.