2
* Copyright 2009 Chani Armitage <chani@kde.org>
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU Library General Public License version 2 as
6
* published by the Free Software Foundation
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details
13
* You should have received a copy of the GNU Library General Public
14
* License along with this program; if not, write to the
15
* Free Software Foundation, Inc.,
16
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23
#include <Plasma/DataEngine>
24
#include <Plasma/Service>
27
#include <KServiceGroup>
33
* This engine provides information regarding tasks (windows that are currently open)
34
* as well as startup tasks (windows that are about to open).
35
* Each task and startup is represented by a unique source. Sources are added and removed
36
* as windows are opened and closed. You cannot request a customized source.
38
* A service is also provided for each task. It exposes some operations that can be
39
* performed on the windows (ex: maximize, minimize, activate).
41
* The data and operations are provided and handled by the taskmanager library.
42
* It should be noted that only a subset of data and operations are exposed.
44
class AppsEngine : public Plasma::DataEngine
50
AppsEngine(QObject *parent, const QVariantList &args);
52
Plasma::Service *serviceForSource(const QString &name);
58
void sycocaChanged(const QStringList &changes);
61
friend class AppSource;
62
void addGroup(KServiceGroup::Ptr group);
63
void addApp(KService::Ptr app);
66
#endif // TASKSENGINE_H