PlasmaActivities

resourceinstance.h
1/*
2 SPDX-FileCopyrightText: 2011-2016 Ivan Cukic <ivan.cukic(at)kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#ifndef ACTIVITIES_RESOURCEINSTANCE_H
8#define ACTIVITIES_RESOURCEINSTANCE_H
9
10#include <QObject>
11#include <QUrl>
12
13#include "plasma_activities_export.h"
14
15namespace KActivities::ResourceInstance
16{
17/**
18 * This function is used to notify the system that a file, web page
19 * or some other resource has been accessed.
20 *
21 * @param uri URI of the resource
22 * @param application application's name (the name used for the .desktop file).
23 * If not specified, QCoreApplication::applicationName is used
24 */
25PLASMA_ACTIVITIES_EXPORT void notifyAccessed(const QUrl &uri, const QString &application = QString());
26}
27
28#endif // ACTIVITIES_RESOURCEINSTANCE_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 28 2025 12:01:06 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.