[office/tellico] /: Add DBUS command to import PDF files
Robby Stephenson
null at kde.org
Sat Sep 25 02:24:25 BST 2021
Git commit bec92c8cc11a64d12f4d645edd4b480c82651884 by Robby Stephenson.
Committed on 23/08/2021 at 01:03.
Pushed by rstephenson into branch 'master'.
Add DBUS command to import PDF files
M +4 -0 ChangeLog
M +1 -0 doc/advanced.docbook
M +2 -0 src/dbusinterface.h
https://invent.kde.org/office/tellico/commit/bec92c8cc11a64d12f4d645edd4b480c82651884
diff --git a/ChangeLog b/ChangeLog
index b248ad3a..36b6b0c9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2021-08-22 Robby Stephenson <robby at periapsis.org>
+
+ * Added DBUS command to import PDF files.
+
2021-08-18 Robby Stephenson <robby at periapsis.org>
* Fixed bug with being able to undo appending a collection.
diff --git a/doc/advanced.docbook b/doc/advanced.docbook
index 0eff04c1..a687c2f3 100644
--- a/doc/advanced.docbook
+++ b/doc/advanced.docbook
@@ -46,6 +46,7 @@ Arguments:
bool importTellico(QString file, QString action)
bool importBibtex(QString file, QString action)
bool importMODS(QString file, QString action)
+bool importPDF(QString file, QString action)
bool importRIS(QString file, QString action)
bool exportXML(QString file, bool filtered)
bool exportZip(QString file, bool filtered)
diff --git a/src/dbusinterface.h b/src/dbusinterface.h
index c862d91c..0fb9f45a 100644
--- a/src/dbusinterface.h
+++ b/src/dbusinterface.h
@@ -53,6 +53,8 @@ public Q_SLOTS:
{ return importFile(Import::MODS, QUrl::fromUserInput(file), actionType(action)); }
Q_SCRIPTABLE bool importRIS(const QString& file, const QString& action)
{ return importFile(Import::RIS, QUrl::fromUserInput(file), actionType(action)); }
+ Q_SCRIPTABLE bool importPDF(const QString& file, const QString& action)
+ { return importFile(Import::PDF, QUrl::fromUserInput(file), actionType(action)); }
Q_SCRIPTABLE bool exportXML(const QString& file, bool filtered=false)
{ return exportCollection(Export::TellicoXML, QUrl::fromUserInput(file), filtered); }
More information about the kde-doc-english
mailing list