Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KDE PIM Add-ons
Commits
86facbe2
Commit
86facbe2
authored
Aug 03, 2020
by
Laurent Montel
😁
Browse files
Implement import windows contact
parent
1ccb51e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
kaddressbook/importexportplugins/windows-contacts/windowscontactimportexportplugininterface.cpp
View file @
86facbe2
...
...
@@ -45,17 +45,18 @@ WindowsContactImportExportPluginInterface::~WindowsContactImportExportPluginInte
void
WindowsContactImportExportPluginInterface
::
createAction
(
KActionCollection
*
ac
)
{
QAction
*
action
=
ac
->
addAction
(
QStringLiteral
(
"file_export_windows_contact"
));
action
->
setText
(
i18n
(
"Export Windows Contact file..."
));
action
->
setWhatsThis
(
i18n
(
"Export contacts to windows contact file."
));
setExportActions
(
QList
<
QAction
*>
()
<<
action
);
connect
(
action
,
&
QAction
::
triggered
,
this
,
&
WindowsContactImportExportPluginInterface
::
slotExportWindowsContact
);
action
=
ac
->
addAction
(
QStringLiteral
(
"file_import_windows_contact"
));
QAction
*
action
=
ac
->
addAction
(
QStringLiteral
(
"file_import_windows_contact"
));
action
->
setText
(
i18n
(
"Import Windows Contact file..."
));
action
->
setWhatsThis
(
i18n
(
"Import contacts from windows contact file."
));
setImportActions
(
QList
<
QAction
*>
()
<<
action
);
connect
(
action
,
&
QAction
::
triggered
,
this
,
&
WindowsContactImportExportPluginInterface
::
slotImportWindowsContact
);
//If a day we implement it
// action = ac->addAction(QStringLiteral("file_export_windows_contact"));
// action->setText(i18n("Export Windows Contact file..."));
// action->setWhatsThis(i18n("Export contacts to windows contact file."));
// setExportActions(QList<QAction *>() << action);
// connect(action, &QAction::triggered, this, &WindowsContactImportExportPluginInterface::slotExportWindowsContact);
}
void
WindowsContactImportExportPluginInterface
::
slotExportWindowsContact
()
...
...
@@ -90,6 +91,7 @@ void WindowsContactImportExportPluginInterface::importWindowsContact()
void
WindowsContactImportExportPluginInterface
::
exportWindowsContact
()
{
qWarning
()
<<
"Export windows contact not implement yet"
;
//TODO
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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