21 #ifndef RESOURCELDAPCONFIG_H
22 #define RESOURCELDAPCONFIG_H
25 #include <tqradiobutton.h>
26 #include <tqcombobox.h>
29 #include <kdialogbase.h>
30 #include <tderesources/configwidget.h>
31 #include <tdeabc/ldif.h>
32 #include <tdeabc/ldapconfigwidget.h>
45 class KABC_EXPORT ResourceLDAPTDEIOConfig :
public KRES::ConfigWidget
50 ResourceLDAPTDEIOConfig( TQWidget* parent = 0,
const char* name = 0 );
53 void loadSettings( KRES::Resource* );
54 void saveSettings( KRES::Resource* );
57 void editAttributes();
60 TQPushButton *mEditButton, *mCacheButton;
61 LdapConfigWidget *cfg;
63 TQMap<TQString, TQString> mAttributes;
64 int mRDNPrefix, mCachePolicy;
74 AttributesDialog(
const TQMap<TQString, TQString> &attributes,
int rdnprefix,
75 TQWidget *parent,
const char *name = 0 );
78 TQMap<TQString, TQString> attributes()
const;
79 int rdnprefix()
const;
82 void mapChanged(
int pos );
85 enum { UserMap, KolabMap, NetscapeMap, EvolutionMap, OutlookMap };
88 TQValueList< TQMap<TQString, TQString> > mMapList;
89 TQMap<TQString, TQString> mDefaultMap;
90 TQDict<KLineEdit> mLineEditDict;
91 TQDict<TQString> mNameDict;
99 OfflineDialog(
bool autoCache,
int cachePolicy,
const KURL &src,
100 const TQString &dst, TQWidget *parent,
const char *name = 0 );
103 int cachePolicy()
const;
104 bool autoCache()
const;
112 TQButtonGroup *mCacheGroup;
113 TQCheckBox *mAutoCache;
static data, shared by ALL addressee objects