🏡 index : quine-global-labs/mirror-kde-plasma-desktop.git

/*
    SPDX-FileCopyrightText: 2022 Alexander Wilms <f.alexander.wilms@gmail.com>

    SPDX-License-Identifier: GPL-2.0-or-later
*/

#ifndef DESKTOPSCHEMEHELPER_H
#define DESKTOPSCHEMEHELPER_H

#include <QObject>
#include <QStandardPaths>
#include <QString>
#include <qqmlregistration.h>

class DesktopSchemeHelper : public QObject
{
    Q_OBJECT
    QML_ELEMENT
    QML_SINGLETON

public:
    explicit DesktopSchemeHelper(QObject *parent = nullptr);
    ~DesktopSchemeHelper() override;

    Q_INVOKABLE static QString getDesktopUrl(const QString &absoluteUrlString);
    Q_INVOKABLE static QString getFileUrl(const QString &folderViewUrl);
};

#endif