Plasma5Support

appsengine.h
1/*
2 SPDX-FileCopyrightText: 2009 Chani Armitage <chani@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-only
5*/
6
7#pragma once
8
9// plasma
10#include <Plasma5Support/DataEngine>
11#include <Plasma5Support/Service>
12
13#include <KService>
14#include <KServiceGroup>
15
16/**
17 * Apps Data Engine
18 *
19 * FIXME
20 * This engine provides information regarding tasks (windows that are currently open)
21 * as well as startup tasks (windows that are about to open).
22 * Each task and startup is represented by a unique source. Sources are added and removed
23 * as windows are opened and closed. You cannot request a customized source.
24 *
25 * A service is also provided for each task. It exposes some operations that can be
26 * performed on the windows (ex: maximize, minimize, activate).
27 *
28 * The data and operations are provided and handled by the taskmanager library.
29 * It should be noted that only a subset of data and operations are exposed.
30 */
32{
34
35public:
37 ~AppsEngine() override;
39
40protected:
41 virtual void init();
42
43private:
44 friend class AppSource;
45 void addGroup(KServiceGroup::Ptr group);
46 void addApp(KService::Ptr app);
47};
App Source.
Definition appsource.h:19
Apps Data Engine.
Definition appsengine.h:32
Plasma5Support::Service * serviceForSource(const QString &name) override
Data provider for plasmoids (Plasma plugins)
Definition dataengine.h:45
This class provides a generic API for write access to settings or services.
Definition service.h:78
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:38 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.