25 #ifndef IMEDITORWIDGET_H
26 #define IMEDITORWIDGET_H
28 #include <tqvaluelist.h>
29 #include <tdelistview.h>
30 #include <kdialogbase.h>
32 #include "contacteditorwidget.h"
39 enum IMContext { Any, Home, Work };
55 IMEditorWidget( TQWidget *parent, const TQString &preferredIM, const char *name = 0 );
58 void loadContact( TDEABC::Addressee *addr );
59 void storeContact( TDEABC::Addressee *addr );
60 void setReadOnly( bool readOnly );
61 TQValueList<KPluginInfo *> availableProtocols() const;
62 bool isModified() const;
63 TQString preferred() const;
66 void slotUpdateButtons();
70 void slotSetStandard();
76 static void splitField( const TQString &str, TQString &app, TQString &name, TQString &value );
87 IMEditorBase *mWidget;
88 void setModified( bool modified );
91 TQValueList<KPluginInfo *> mChangedProtocols;
92 TQValueList<KPluginInfo *> mProtocols;
103 IMAddressLVI( TDEListView *parent, KPluginInfo * protocol,
104 const TQString &address, const IMContext &context = Any );
106 void setAddress( const TQString &address );
107 void setProtocol( KPluginInfo * protocol );
108 void setContext( const IMContext &context );
111 KPluginInfo * protocol() const;
112 TQString address() const;
113 IMContext context() const;
115 void setPreferred( bool preferred );
116 bool preferred() const;
119 virtual void paintCell( TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment );
122 KPluginInfo * mProtocol;
List view item representing a single IM address.
|