2
* Copyright 2010 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/Lesser General Public License
6
* version 2, or (at your option) any later version, as published by the
7
* Free Software Foundation
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details
14
* You should have received a copy of the GNU Library/Lesser General Public
15
* License along with this program; if not, write to the
16
* Free Software Foundation, Inc.,
17
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
#ifndef ACTIVITYLIST_H
21
#define ACTIVITYLIST_H
23
#include "activityicon.h"
24
#include "abstracticonlist.h"
26
class KActivityController;
33
class ActivityList : public Plasma::AbstractIconList
39
ActivityList(Plasma::Location location = Plasma::BottomEdge, QGraphicsItem *parent = 0);
43
void updateVisibleIcons();
44
void setSearch(const QString &searchString);
47
void activityAdded(const QString &id);
48
void activityRemoved(const QString &id);
50
void templateHidden(bool immediate);
52
void updateClosable();
55
void createActivityIcon(const QString &id);
56
void createActivityIcon(const QString &name, const QString &icon, const QString &plugin);
58
KActivityController *m_activityController;
59
ActivityIcon * m_scheduleHideOnAdd;
63
#endif //APPLETSLIST_H