1 | /* |
2 | Copyright (c) 2010 Laurent Montel <montel@kde.org> |
3 | |
4 | This library is free software; you can redistribute it and/or modify it |
5 | under the terms of the GNU Library General Public License as published by |
6 | the Free Software Foundation; either version 2 of the License, or (at your |
7 | option) any later version. |
8 | |
9 | This library is distributed in the hope that it will be useful, but WITHOUT |
10 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
11 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public |
12 | License for more details. |
13 | |
14 | You should have received a copy of the GNU Library General Public License |
15 | along with this library; see the file COPYING.LIB. If not, write to the |
16 | Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
17 | 02110-1301, USA. |
18 | */ |
19 | |
20 | #ifndef LDAP_H |
21 | #define LDAP_H |
22 | |
23 | #include "setupobject.h" |
24 | |
25 | |
26 | class Ldap : public SetupObject |
27 | { |
28 | Q_OBJECT |
29 | public: |
30 | explicit Ldap( QObject *parent = 0 ); |
31 | ~Ldap(); |
32 | void create(); |
33 | void destroy(); |
34 | public slots: |
35 | Q_SCRIPTABLE void setUser( const QString & name ); |
36 | Q_SCRIPTABLE void setServer( const QString &server ); |
37 | Q_SCRIPTABLE void setAuthenticationMethod( const QString &meth ); |
38 | Q_SCRIPTABLE void setBindDn( const QString &bindDn ); |
39 | Q_SCRIPTABLE void setPassword( const QString &password ); |
40 | private: |
41 | QString m_user; |
42 | QString m_server; |
43 | QString m_bindDn; |
44 | QString m_authMethod; |
45 | QString m_password; |
46 | }; |
47 | |
48 | #endif |
49 | |