From dbabe22249781242c789d691c1f887046e71580e Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 4 Jun 2021 12:04:14 +0000 Subject: Add SortOrderForUrl method to DBus interface adds a method to ask what's the sorting strategy (column and order) for a particular Url, as Dolphin can have directory-specific sorting strategies This makes possible for other apps that have lists of files, like Gwenview to use the same sorting when invoked from dolphin, ie opening an image CCBUG:236059 --- src/dbusinterface.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/dbusinterface.h') diff --git a/src/dbusinterface.h b/src/dbusinterface.h index 9b183384d..66659e976 100644 --- a/src/dbusinterface.h +++ b/src/dbusinterface.h @@ -20,6 +20,8 @@ public: Q_SCRIPTABLE void ShowItems(const QStringList& uriList, const QString& startUpId); Q_SCRIPTABLE void ShowItemProperties(const QStringList& uriList, const QString& startUpId); + Q_SCRIPTABLE void SortOrderForUrl(const QString &url, QString &role, QString &order); + /** * Set whether this interface has been created by dolphin --daemon. */ -- cgit v1.3