2
This file is part of KDE.
4
Copyright (c) 2009 Eckhart Wörner <ewoerner@kde.org>
6
This program is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 2 of the License, or
9
(at your option) any later version.
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
16
You should have received a copy of the GNU General Public License
17
along with this program; if not, write to the Free Software
18
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
25
#include <QtCore/QString>
26
#include <QtGui/QGraphicsLinearLayout>
28
#include <Plasma/DataEngine>
29
#include <Plasma/ScrollWidget>
31
#include "messagewatchlist.h"
36
class MessageList : public Plasma::ScrollWidget
41
explicit MessageList(Plasma::DataEngine* engine, QGraphicsWidget* parent = 0);
44
void setFolder(const QString& folder);
45
void setProvider(const QString& provider);
48
void messageAdded(const QString& id);
49
void messageRemoved(const QString& id);
52
QGraphicsWidget* m_container;
53
Plasma::DataEngine* m_engine;
54
QHash<QString, MessageWidget*> m_idToWidget;
55
QGraphicsLinearLayout* m_layout;
58
MessageWatchList m_messageWatcher;