Commit b5908575 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add actions

parent 95c20b13
......@@ -36,35 +36,15 @@ CSVImportExportPluginInterface::~CSVImportExportPluginInterface()
void CSVImportExportPluginInterface::createAction(KActionCollection *ac)
{
#if 0
QAction *action = ac->addAction(QStringLiteral("file_import_csv"));
action->setText(i18n("Import CSV..."));
action->setWhatsThis(i18n("Import contacts from a CSV file."));
setImportActions(QList<QAction *>() << action);
QList<QAction *> exportActionList;
QAction *action = ac->addAction(QStringLiteral("file_export_csv"));
action->setText(i18n("Export CSV file..."));
action->setWhatsThis(i18n("Export contacts to a file in comma separated value format."));
setExportActions(QList<QAction *>() << action);
action = ac->addAction(QStringLiteral("file_import_csv"));
action->setText(i18n("Import CSV..."));
action->setWhatsThis(i18n("Import contacts from a CSV file."));
exportActionList << action;
action = ac->addAction(QStringLiteral("file_export_csv40"));
action->setWhatsThis(i18n("Export contacts to a CSV 4.0 file."));
action->setText(i18n("Export CSV 4.0..."));
exportActionList << action;
action = ac->addAction(QStringLiteral("file_export_csv30"));
action->setText(i18n("Export CSV 3.0..."));
action->setWhatsThis(i18n("Export contacts to a CSV 3.0 file."));
exportActionList << action;
action = ac->addAction(QStringLiteral("file_export_csv21"));
action->setText(i18n("Export CSV 2.1..."));
action->setWhatsThis(i18n("Export contacts to a CSV 2.1 file."));
exportActionList << action;
setExportActions(exportActionList);
#endif
action->setText(i18n("Import CSV file..."));
action->setWhatsThis(i18n("Import contacts from a file in comma separated value format."));
setImportActions(QList<QAction *>() << action);
}
void CSVImportExportPluginInterface::exec()
......
......@@ -36,37 +36,13 @@ LDapImportExportPluginInterface::~LDapImportExportPluginInterface()
void LDapImportExportPluginInterface::createAction(KActionCollection *ac)
{
#if 0
QAction *action = ac->addAction(QStringLiteral("file_import_ldap"));
action->setText(i18n("Import LDap..."));
action->setWhatsThis(i18n("Import contacts from a LDap file."));
action->setText(i18n("Import From LDAP server..."));
action->setWhatsThis(i18n("Import contacts from an LDAP server."));
setImportActions(QList<QAction *>() << action);
QList<QAction *> exportActionList;
action = ac->addAction(QStringLiteral("file_import_ldap"));
action->setText(i18n("Import LDap..."));
action->setWhatsThis(i18n("Import contacts from a LDap file."));
exportActionList << action;
action = ac->addAction(QStringLiteral("file_export_ldap40"));
action->setWhatsThis(i18n("Export contacts to a LDap 4.0 file."));
action->setText(i18n("Export LDap 4.0..."));
exportActionList << action;
action = ac->addAction(QStringLiteral("file_export_ldap30"));
action->setText(i18n("Export LDap 3.0..."));
action->setWhatsThis(i18n("Export contacts to a LDap 3.0 file."));
exportActionList << action;
action = ac->addAction(QStringLiteral("file_export_ldap21"));
action->setText(i18n("Export LDap 2.1..."));
action->setWhatsThis(i18n("Export contacts to a LDap 2.1 file."));
exportActionList << action;
setExportActions(exportActionList);
#endif
}
void LDapImportExportPluginInterface::exec()
{
//TODO
}
......@@ -36,35 +36,15 @@ LDifImportExportPluginInterface::~LDifImportExportPluginInterface()
void LDifImportExportPluginInterface::createAction(KActionCollection *ac)
{
#if 0
QAction *action = ac->addAction(QStringLiteral("file_import_ldif"));
action->setText(i18n("Import LDif..."));
action->setWhatsThis(i18n("Import contacts from a LDif file."));
action->setText(i18n("Import LDIF file..."));
action->setWhatsThis(i18n("Import contacts from an LDIF file."));
setImportActions(QList<QAction *>() << action);
QList<QAction *> exportActionList;
action = ac->addAction(QStringLiteral("file_import_ldif"));
action->setText(i18n("Import LDif..."));
action->setWhatsThis(i18n("Import contacts from a LDif file."));
exportActionList << action;
action = ac->addAction(QStringLiteral("file_export_ldif40"));
action->setWhatsThis(i18n("Export contacts to a LDif 4.0 file."));
action->setText(i18n("Export LDif 4.0..."));
exportActionList << action;
action = ac->addAction(QStringLiteral("file_export_ldif30"));
action->setText(i18n("Export LDif 3.0..."));
action->setWhatsThis(i18n("Export contacts to a LDif 3.0 file."));
exportActionList << action;
action = ac->addAction(QStringLiteral("file_export_ldif21"));
action->setText(i18n("Export LDif 2.1..."));
action->setWhatsThis(i18n("Export contacts to a LDif 2.1 file."));
exportActionList << action;
setExportActions(exportActionList);
#endif
action = ac->addAction(QStringLiteral("file_export_ldif"));
action->setText(i18n("Export LDIF file..."));
action->setWhatsThis(i18n("Export contacts to an LDIF file."));
setExportActions(QList<QAction *>() << action);
}
void LDifImportExportPluginInterface::exec()
......
Supports Markdown
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