]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/global.h
Open externally called files/directories in new tabs
[dolphin.git] / src / global.h
index e3c4a1cca10ee508ef4d3fb05eed65f16250cb81..16305eafebbaec9a63b64b94ab21fbac155f4098 100644 (file)
@@ -42,6 +42,12 @@ namespace Dolphin {
      */
     void openNewWindow(const QList<QUrl> &urls = {}, QWidget *window = nullptr, const OpenNewWindowFlags &flags = OpenNewWindowFlag::None);
 
+    /**
+     * Attaches URLs to an existing Dolphin instance if possible.
+     * Returns true if URLs were successfully attached
+     */
+    bool attachToExistingInstance(const QList<QUrl>& urls, bool openFiles, bool splitView, const QString& preferredService = QString());
+
     /**
      * TODO: Move this somewhere global to all KDE apps, not just Dolphin
      */