summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-10-11 05:51:07 (GMT)
committerMontel Laurent <montel@kde.org>2016-10-11 05:51:07 (GMT)
commit2eed6f2f10caa5e41b41e0cdea43db5fc38fccd4 (patch)
tree5046249441627aaad78abcdb004d726e1d6f9982
parent42ba70ef6b69bf4152f1174c163186223951429a (diff)
Continue to implement it
-rw-r--r--kaddressbook/importexportplugins/gmx/gmximportexportplugininterface.cpp13
-rw-r--r--kaddressbook/importexportplugins/gmx/gmximportexportplugininterface.h2
-rw-r--r--kaddressbook/importexportplugins/ldif/ldifimportexportplugininterface.cpp3
3 files changed, 15 insertions, 3 deletions
diff --git a/kaddressbook/importexportplugins/gmx/gmximportexportplugininterface.cpp b/kaddressbook/importexportplugins/gmx/gmximportexportplugininterface.cpp
index d61eedc..bd195ea 100644
--- a/kaddressbook/importexportplugins/gmx/gmximportexportplugininterface.cpp
+++ b/kaddressbook/importexportplugins/gmx/gmximportexportplugininterface.cpp
@@ -53,11 +53,12 @@ void GMXImportExportPluginInterface::exec()
{
switch(mImportExportAction) {
case Import:
+ importGMX();
break;
case Export:
+ exportGMX();
break;
}
- //TODO
}
void GMXImportExportPluginInterface::slotImportGmx()
@@ -71,3 +72,13 @@ void GMXImportExportPluginInterface::slotExportGmx()
mImportExportAction = Export;
Q_EMIT emitPluginActivated(this);
}
+
+void GMXImportExportPluginInterface::exportGMX()
+{
+
+}
+
+void GMXImportExportPluginInterface::importGMX()
+{
+
+}
diff --git a/kaddressbook/importexportplugins/gmx/gmximportexportplugininterface.h b/kaddressbook/importexportplugins/gmx/gmximportexportplugininterface.h
index 6937e95..2e1af7a 100644
--- a/kaddressbook/importexportplugins/gmx/gmximportexportplugininterface.h
+++ b/kaddressbook/importexportplugins/gmx/gmximportexportplugininterface.h
@@ -34,6 +34,8 @@ public:
private:
void slotImportGmx();
void slotExportGmx();
+ void importGMX();
+ void exportGMX();
};
#endif // GMXIMPORTEXPORTPLUGININTERFACE_H
diff --git a/kaddressbook/importexportplugins/ldif/ldifimportexportplugininterface.cpp b/kaddressbook/importexportplugins/ldif/ldifimportexportplugininterface.cpp
index 5cf2385..6775d54 100644
--- a/kaddressbook/importexportplugins/ldif/ldifimportexportplugininterface.cpp
+++ b/kaddressbook/importexportplugins/ldif/ldifimportexportplugininterface.cpp
@@ -69,7 +69,6 @@ void LDifImportExportPluginInterface::exec()
exportLdif();
break;
}
- //TODO
}
void LDifImportExportPluginInterface::slotImportLdif()
@@ -123,7 +122,7 @@ void LDifImportExportPluginInterface::import()
void LDifImportExportPluginInterface::exportLdif()
{
-#if 0
+#if 0 //FIXME
const QUrl url =
QFileDialog::getSaveFileUrl(parentWidget(), QString(), QUrl::fromLocalFile(QDir::homePath() + QLatin1String("/addressbook.ldif")), i18n("LDif Files (*.ldif)"));
if (url.isEmpty()) {