22 #ifndef KABC_ADDRESSLINEEDIT_H
23 #define KABC_ADDRESSLINEEDIT_H
27 #include <tqptrlist.h>
30 #include "klineedit.h"
31 #include "kcompletion.h"
55 const char *name = 0L);
62 virtual void setFont(
const TQFont& );
74 void enableCompletion(
bool enable );
81 virtual void loadAddresses();
82 void addAddress(
const TQString& );
83 virtual void keyPressEvent(TQKeyEvent*);
84 virtual void dropEvent(TQDropEvent *e);
86 virtual void insert(
const TQString &t);
87 virtual void mouseReleaseEvent( TQMouseEvent * e );
88 void doCompletion(
bool ctrlT);
91 void slotCompletion() { doCompletion(
false); }
92 void slotPopupCompletion(
const TQString& );
93 void slotStartLDAPLookup();
94 void slotLDAPSearchData(
const TQStringList& );
98 void startLoadingLDAPEntries();
99 void stopLDAPLookup();
100 TQStringList addresses();
101 TQStringList removeMailDupes(
const TQStringList& adrs );
103 TQString m_previousAddresses;
104 bool m_useCompletion;
105 bool m_completionInitialized;
107 TQString m_typedText;
109 static bool s_addressesDirty;
111 static TQTimer *s_LDAPTimer;
113 static TQString *s_LDAPText;
118 class AddressLineEditPrivate* d;
A lineedit with LDAP and tdeabc completion.
static data, shared by ALL addressee objects