Plasma-workspace

startuptasksmodel.h
1/*
2 SPDX-FileCopyrightText: 2016 Eike Hein <hein@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#pragma once
8
9#include "abstracttasksproxymodeliface.h"
10#include "taskmanager_export.h"
11
12#include <QIdentityProxyModel>
13
14#include <memory>
15
16namespace TaskManager
17{
18/**
19 * @short A tasks model for startup notifications.
20 *
21 * This model presents tasks sourced from startup notifications.
22 *
23 * Startup notifications are given a timeout sourced from klaunchrc, falling
24 * back to a default of 5 seconds if no configuration is present.
25 *
26 * Startup tasks are removed 500 msec after cancellation or timeout to
27 * overlap with window tasks appearing in window task models.
28 *
29 * @author Eike Hein <hein@kde.org>
30 */
31
33{
34 Q_OBJECT
35
36public:
37 explicit StartupTasksModel(QObject *parent = nullptr);
38 ~StartupTasksModel() override;
39
40 QHash<int, QByteArray> roleNames() const override;
41
42protected:
43 QModelIndex mapIfaceToSource(const QModelIndex &index) const override;
44
45private:
46 class Private;
47 std::unique_ptr<Private> d;
48};
49
50}
Pure method interface for tasks model implementations.
A tasks model for startup notifications.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.