File indexing completed on 2024-04-28 16:54:38
0001 /* 0002 SPDX-FileCopyrightText: 2019 Kai Uwe Broulik <kde@privat.broulik.de> 0003 0004 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #pragma once 0008 0009 #include <QModelIndex> 0010 #include <QString> 0011 0012 class QAbstractItemModel; 0013 class QDBusConnection; 0014 0015 namespace NotificationManager 0016 { 0017 namespace Utils 0018 { 0019 QHash<int, QByteArray> roleNames(); 0020 0021 QString processNameFromPid(uint pid); 0022 0023 QString desktopEntryFromPid(uint pid); 0024 0025 QModelIndex mapToModel(const QModelIndex &idx, const QAbstractItemModel *sourceModel); 0026 0027 bool isDBusMaster(); 0028 0029 } // namespace Utils 0030 0031 } // namespace NotificationManager