kaddressbook
imaddresswidget.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef IMADDRESSWIDGET_H
00025 #define IMADDRESSWIDGET_H
00026
00027 #include <qvaluelist.h>
00028
00029 #include "imaddressbase.h"
00030 #include "imeditorwidget.h"
00031
00032 class KPluginInfo;
00033
00034
00035
00036
00037
00038
00042 class IMAddressWidget : public IMAddressBase
00043 {
00044 Q_OBJECT
00045
00046 public:
00047 IMAddressWidget( QWidget *parent, QValueList<KPluginInfo *> protocols);
00048 IMAddressWidget( QWidget *parent, QValueList<KPluginInfo *> protocols,
00049 KPluginInfo *protocol, const QString& address,
00050 const IMContext& context = Any );
00051
00052 KPluginInfo * protocol() const;
00053 IMContext context() const;
00054 QString address() const ;
00055 QValueList<KPluginInfo *> mProtocols;
00056
00057 signals:
00058 void inValidState( bool );
00059
00060 protected:
00064 void populateProtocols();
00065
00066 protected slots:
00067 void slotProtocolChanged();
00068 void slotAddressChanged( const QString &text );
00069
00070 private:
00071 void init();
00072 };
00073
00074 #endif
|