kopete/kopete
customnotificationprops.cpp
Go to the documentation of this file.00001 /* 00002 customnotificationprops.cpp 00003 00004 Kopete Contactlist Custom Notifications GUI for Groups and MetaContacts 00005 00006 Contains UI controller logic for managing custom notifications 00007 00008 Copyright (c) 2004 Will Stephenson <wstephenson@kde.org> 00009 Kopete (c) 2002-2003 by the Kopete developers <kopete-devel@kde.org> 00010 00011 ************************************************************************* 00012 * * 00013 * This program is free software; you can redistribute it and/or modify * 00014 * it under the terms of the GNU General Public License as published by * 00015 * the Free Software Foundation; either version 2 of the License, or * 00016 * (at your option) any later version. * 00017 * * 00018 ************************************************************************* 00019 */ 00020 00021 #include <qcheckbox.h> 00022 #include <qcombobox.h> 00023 #include <qlineedit.h> 00024 00025 #include <kdebug.h> 00026 #include <kconfig.h> 00027 #include <kurlrequester.h> 00028 00029 #include <knotifyconfigwidget.h> 00030 00031 #include "customnotificationprops.h" 00032 00033 #include <knotification.h> 00034 00035 #include <QMetaEnum> 00036 00037 CustomNotificationProps::CustomNotificationProps( QWidget *parent, const QPair<QString,QString> &context, const char * name ) 00038 : QObject( parent ) , m_item(context) 00039 { 00040 setObjectName( name ); 00041 m_notifyWidget = new KNotifyConfigWidget( parent ); 00042 m_notifyWidget->setApplication(QString() , m_item.first , m_item.second); 00043 } 00044 00045 00046 00047 void CustomNotificationProps::dumpData() 00048 { 00049 } 00050 00051 void CustomNotificationProps::resetEventWidgets() 00052 { 00053 } 00054 00055 void CustomNotificationProps::storeCurrentCustoms() 00056 { 00057 m_notifyWidget->save(); 00058 } 00059 00060 00061 QWidget* CustomNotificationProps::widget() 00062 { 00063 return m_notifyWidget; 00064 } 00065 00066 #include "customnotificationprops.moc"
KDE 4.0 API Reference