Commit 86facbe2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Implement import windows contact

parent 1ccb51e7
......@@ -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
}
......
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