kaddressbook Library API Documentation

imaddresswidget.h

00001 /*    
00002     imaddresswidget.h
00003     
00004     IM address editor widget for KAddressbook
00005     
00006     Copyright (c) 2004 Will Stephenson   <lists@stevello.free-online.co.uk>
00007 
00008     This program is free software; you can redistribute it and/or modify
00009     it under the terms of the GNU General Public License as published by
00010     the Free Software Foundation; either version 2 of the License, or
00011     (at your option) any later version.
00012 
00013     This program is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00016     GNU General Public License for more details.
00017 
00018     You should have received a copy of the GNU General Public License
00019     along with this program; if not, write to the Free Software
00020     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00021 
00022     As a special exception, permission is given to link this program
00023     with any edition of Qt, and distribute the resulting executable,
00024     without including the source code for Qt in the source distribution.
00025 */
00026 #ifndef IMADDRESSWIDGET_H
00027 #define IMADDRESSWIDGET_H
00028 
00029 #include <qvaluelist.h>
00030 
00031 #include "imaddressbase.h"
00032 #include "imeditorwidget.h"
00033 
00034 class KPluginInfo;
00035 
00036 /* Note regarding Context:
00037  * It wasn not possible to get an idea of Context into Kopete in time for KDE 3.3,
00038  * so it has been removed from the UI and functionally disabled in the code.
00039  */
00040 
00044 class IMAddressWidget : public IMAddressBase
00045 {
00046 public:
00047     IMAddressWidget( QWidget *parent, QValueList<KPluginInfo *> protocols);
00048     IMAddressWidget( QWidget *parent, QValueList<KPluginInfo *> protocols, KPluginInfo *protocol, const QString& address, const IMContext& context = Any );
00049     KPluginInfo * protocol();
00050     IMContext context();
00051     QString address();
00052     QValueList<KPluginInfo *> mProtocols;
00053 protected:
00057     void populateProtocols();
00058 };
00059 
00060 #endif
KDE Logo
This file is part of the documentation for kaddressbook Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 25 11:19:25 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003