KActivities::ResourceInstance Namespace

namespace KActivities::ResourceInstance
Header: #include <KActivities/ResourceInstance>
CMake: find_package(Plasma REQUIRED COMPONENTS Activities)
target_link_libraries(mytarget PRIVATE Plasma::Activities)

Functions

void notifyAccessed(const QUrl &uri, const QString &application = QString())

Detailed Description

Function Documentation

void ResourceInstance::notifyAccessed(const QUrl &uri, const QString &application = QString())

This function is used to notify the system that a file, web page or some other resource has been accessed.

uri URI of the resource

application application's name (the name used for the .desktop file). If not specified, QCoreApplication::applicationName is used