21 #ifndef LDAPCONFIGWIDGET_H
22 #define LDAPCONFIGWIDGET_H
28 #include <tdeabc/ldapurl.h>
29 #include <tdeabc/ldif.h>
30 #include <tdeio/job.h>
54 TQ_PROPERTY( LCW_Flags flags READ flagsProp WRITE setFlagsProp )
55 TQ_PROPERTY( TQString user READ user WRITE setUser )
56 TQ_PROPERTY( TQString password READ password WRITE setPassword )
57 TQ_PROPERTY( TQString bindDN READ bindDN WRITE setBindDN )
58 TQ_PROPERTY( TQString realm READ realm WRITE setRealm )
59 TQ_PROPERTY( TQString host READ host WRITE setHost )
60 TQ_PROPERTY(
int port READ port WRITE setPort )
61 TQ_PROPERTY(
int ver READ ver WRITE setVer )
62 TQ_PROPERTY( TQString dn READ dn WRITE setDn )
63 TQ_PROPERTY( TQString filter READ filter WRITE setFilter )
64 TQ_PROPERTY( TQString mech READ mech WRITE setMech )
65 TQ_PROPERTY(
bool secNO READ isSecNO WRITE setSecNO )
66 TQ_PROPERTY(
bool secSSL READ isSecSSL WRITE setSecSSL )
67 TQ_PROPERTY(
bool secTLS READ isSecSSL WRITE setSecTLS )
68 TQ_PROPERTY(
bool authAnon READ isAuthAnon WRITE setAuthAnon )
69 TQ_PROPERTY(
bool authSimple READ isAuthSimple WRITE setAuthSimple )
70 TQ_PROPERTY(
bool authSASL READ isAuthSASL WRITE setAuthSASL )
71 TQ_PROPERTY(
int sizeLimit READ sizeLimit WRITE setSizeLimit )
72 TQ_PROPERTY(
int timeLimit READ timeLimit WRITE setTimeLimit )
98 const char* name = 0, WFlags fl = 0 );
101 const char* name = 0, WFlags fl = 0 );
106 void setUser(
const TQString &user );
108 TQString user()
const;
111 void setPassword(
const TQString &password );
113 TQString password()
const;
119 void setBindDN(
const TQString &binddn );
121 TQString bindDN()
const;
124 void setRealm(
const TQString &realm );
126 TQString realm()
const;
129 void setHost(
const TQString &host );
131 TQString host()
const;
134 void setPort(
int port );
139 void setVer(
int ver );
144 void setDn(
const TQString &dn );
149 void setFilter(
const TQString &filter );
151 TQString filter()
const;
154 void setMech(
const TQString &mech );
156 TQString mech()
const;
162 void setSecNO(
bool b =
true );
167 bool isSecNO()
const;
173 void setSecTLS(
bool b =
true );
178 bool isSecTLS()
const;
184 void setSecSSL(
bool b =
true );
189 bool isSecSSL()
const;
195 void setAuthAnon(
bool b =
true );
200 bool isAuthAnon()
const;
206 void setAuthSimple(
bool b =
true );
211 bool isAuthSimple()
const;
217 void setAuthSASL(
bool b =
true );
222 bool isAuthSASL()
const;
228 void setSizeLimit(
int sizelimit );
233 int sizeLimit()
const;
239 void setTimeLimit(
int timelimit );
244 int timeLimit()
const;
247 void setFlags(
int flags );
248 inline LCW_Flags flagsProp()
const {
return (LCW_Flags)flags(); }
249 inline void setFlagsProp( LCW_Flags flags ) { setFlags((
int)flags); }
260 void setAnonymous(
int state );
261 void setSimple(
int state );
262 void setSASL(
int state );
263 void mQueryDNClicked();
264 void mQueryMechClicked();
265 void loadData( TDEIO::Job*,
const TQByteArray& );
266 void loadResult( TDEIO::Job* );
271 TQStringList mQResult;
277 TQSpinBox *mPort, *mVer, *mSizeLimit, *mTimeLimit;
280 TQRadioButton *mAnonymous,*mSimple,*mSASL;
281 TQCheckBox *mSubTree;
282 TQPushButton *mEditButton;
283 TQPushButton *mQueryMech;
284 TQRadioButton *mSecNO,*mSecTLS,*mSecSSL;
291 TQGridLayout *mainLayout;
292 class LDAPConfigWidgetPrivate;
293 LDAPConfigWidgetPrivate *d;
static data, shared by ALL addressee objects