1 /*
2 customnotificationprops.cpp
3
4 Kopete Contactlist Custom Notifications GUI for Groups and MetaContacts
5
6 Contains UI controller logic for managing custom notifications
7
8 Copyright (c) 2004 Will Stephenson <wstephenson@kde.org>
9 Kopete (c) 2002-2003 by the Kopete developers <kopete-devel@kde.org>
10
11 *************************************************************************
12 * *
13 * This program is free software; you can redistribute it and/or modify *
14 * it under the terms of the GNU General Public License as published by *
15 * the Free Software Foundation; either version 2 of the License, or *
16 * (at your option) any later version. *
17 * *
18 *************************************************************************
19 */
20
21 #include "customnotificationprops.h"
22
23 #include <qcheckbox.h>
24 #include <qcombobox.h>
25 #include <qlineedit.h>
26
27 #include <kconfig.h>
28 #include <kurlrequester.h>
29
30 #include <knotifyconfigwidget.h>
31
32 #include <knotification.h>
33
34 #include <QMetaEnum>
35
CustomNotificationProps(QWidget * parent,const QPair<QString,QString> & context,const char * name)36 CustomNotificationProps::CustomNotificationProps(QWidget *parent, const QPair<QString, QString> &context, const char *name)
37 : QObject(parent)
38 , m_item(context)
39 {
40 setObjectName(name);
41 m_notifyWidget = new KNotifyConfigWidget(parent);
42 m_notifyWidget->setApplication(QString(), m_item.first, m_item.second);
43 }
44
dumpData()45 void CustomNotificationProps::dumpData()
46 {
47 }
48
resetEventWidgets()49 void CustomNotificationProps::resetEventWidgets()
50 {
51 }
52
storeCurrentCustoms()53 void CustomNotificationProps::storeCurrentCustoms()
54 {
55 m_notifyWidget->save();
56 }
57
widget()58 QWidget *CustomNotificationProps::widget()
59 {
60 return m_notifyWidget;
61 }
62