author | zautrix <zautrix> | 2004-06-26 19:01:18 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-06-26 19:01:18 (UTC) |
commit | b9aad1f15dc600e4dbe4c62d3fcced6363188ba3 (patch) (unidiff) | |
tree | 2c3d4004fb21c72cba65793859f9bcd8ffd3a49c /kabc/plugins/ldap/resourceldapconfig.h | |
download | kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.zip kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.gz kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.bz2 |
Initial revision
Diffstat (limited to 'kabc/plugins/ldap/resourceldapconfig.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kabc/plugins/ldap/resourceldapconfig.h | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/kabc/plugins/ldap/resourceldapconfig.h b/kabc/plugins/ldap/resourceldapconfig.h new file mode 100644 index 0000000..42d30ff --- a/dev/null +++ b/kabc/plugins/ldap/resourceldapconfig.h | |||
@@ -0,0 +1,100 @@ | |||
1 | /* | ||
2 | This file is part of libkabc. | ||
3 | Copyright (c) 2002 Tobias Koenig <tokoe@kde.org> | ||
4 | |||
5 | This library is free software; you can redistribute it and/or | ||
6 | modify it under the terms of the GNU Library General Public | ||
7 | License as published by the Free Software Foundation; either | ||
8 | version 2 of the License, or (at your option) any later version. | ||
9 | |||
10 | This library is distributed in the hope that it will be useful, | ||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | Library General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU Library General Public License | ||
16 | along with this library; see the file COPYING.LIB. If not, write to | ||
17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | ||
18 | Boston, MA 02111-1307, USA. | ||
19 | */ | ||
20 | |||
21 | /* | ||
22 | Enhanced Version of the file for platform independent KDE tools. | ||
23 | Copyright (c) 2004 Ulf Schenk | ||
24 | |||
25 | $Id$ | ||
26 | */ | ||
27 | |||
28 | #ifndef RESOURCELDAPCONFIG_H | ||
29 | #define RESOURCELDAPCONFIG_H | ||
30 | |||
31 | #include <qmap.h> | ||
32 | //US | ||
33 | #include <qdict.h> | ||
34 | |||
35 | #include <kdialogbase.h> | ||
36 | #include <kresources/configwidget.h> | ||
37 | |||
38 | class QCheckBox; | ||
39 | class QPushButton; | ||
40 | class QSpinBox; | ||
41 | class QString; | ||
42 | |||
43 | class KComboBox; | ||
44 | class KLineEdit; | ||
45 | |||
46 | namespace KABC { | ||
47 | |||
48 | class ResourceLDAPConfig : public KRES::ConfigWidget | ||
49 | { | ||
50 | Q_OBJECT | ||
51 | |||
52 | public: | ||
53 | ResourceLDAPConfig( QWidget* parent = 0, const char* name = 0 ); | ||
54 | |||
55 | public slots: | ||
56 | void loadSettings( KRES::Resource* ); | ||
57 | void saveSettings( KRES::Resource* ); | ||
58 | |||
59 | private slots: | ||
60 | void editAttributes(); | ||
61 | |||
62 | private: | ||
63 | KLineEdit *mUser; | ||
64 | KLineEdit *mPassword; | ||
65 | KLineEdit *mHost; | ||
66 | QSpinBox *mPort; | ||
67 | KLineEdit *mDn; | ||
68 | KLineEdit *mFilter; | ||
69 | QCheckBox *mAnonymous; | ||
70 | QPushButton *mEditButton; | ||
71 | QMap<QString, QString> mAttributes; | ||
72 | }; | ||
73 | |||
74 | class AttributesDialog : public KDialogBase | ||
75 | { | ||
76 | Q_OBJECT | ||
77 | |||
78 | public: | ||
79 | AttributesDialog( const QMap<QString, QString> &attributes, QWidget *parent, | ||
80 | const char *name = 0 ); | ||
81 | ~AttributesDialog(); | ||
82 | |||
83 | QMap<QString, QString> attributes() const; | ||
84 | |||
85 | private slots: | ||
86 | void mapChanged( int pos ); | ||
87 | |||
88 | private: | ||
89 | enum { UserMap, KolabMap, NetscapeMap, EvolutionMap, OutlookMap }; | ||
90 | |||
91 | KComboBox *mMapCombo; | ||
92 | QValueList< QMap<QString, QString> > mMapList; | ||
93 | |||
94 | QDict<KLineEdit> mLineEditDict; | ||
95 | QDict<QString> mNameDict; | ||
96 | }; | ||
97 | |||
98 | } | ||
99 | |||
100 | #endif | ||