File indexing completed on 2024-12-22 05:13:40
0001 /* 0002 SPDX-FileCopyrightText: 2011-2016 Ivan Cukic <ivan.cukic(at)kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #include "resourceinstance.h" 0008 #include "manager_p.h" 0009 0010 #include <QCoreApplication> 0011 0012 namespace KActivities::ResourceInstance 0013 { 0014 0015 void notifyAccessed(const QUrl &uri, const QString &application) 0016 { 0017 if (uri.isEmpty()) { 0018 return; 0019 } 0020 0021 Manager::resources()->RegisterResourceEvent(application.isEmpty() ? QCoreApplication::instance()->applicationName() : application, 0022 0, 0023 uri.toString(), 0024 0 /* Accessed */); 0025 } 0026 0027 } // namespace KActivities::ResourceInstance