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,
22
#include "contactlist.h"
24
#include "contactcontainer.h"
27
ContactList::ContactList(Plasma::DataEngine* engine, QGraphicsWidget* parent)
28
: ScrollWidget(parent)
30
m_widget = new ContactContainer(engine, this);
33
connect(m_widget, SIGNAL(addFriend(QString)), SIGNAL(addFriend(QString)));
34
connect(m_widget, SIGNAL(sendMessage(QString)), SIGNAL(sendMessage(QString)));
35
connect(m_widget, SIGNAL(showDetails(QString)), SIGNAL(showDetails(QString)));
39
void ContactList::setProvider(const QString& provider)
41
m_widget->setProvider(provider);
45
void ContactList::setQuery(const QString& query)
47
m_widget->setSource(query);
51
void ContactList::setOwnId(const QString& id)
53
m_widget->setOwnId(id);
57
#include "contactlist.moc"