Commit bc64fab6 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Add method to figure out the kns: url of an item

parent 3606c932
......@@ -206,3 +206,8 @@ QStringList KNSResource::executables() const
else
return {};
}
QUrl KNSResource::knsUrl() const
{
return QUrl(QStringLiteral("kns://")+knsBackend()->name() + QLatin1Char('/') + QUrl(m_entry.providerId()).host() + QLatin1Char('/') + m_entry.uniqueId());
}
......@@ -63,6 +63,8 @@ public:
QStringList executables() const override;
QUrl knsUrl() const;
private:
const QStringList m_categories;
KNSCore::EntryInternal m_entry;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment