File indexing completed on 2025-01-26 04:52:14
0001 /* This file is part of the KDE project 0002 SPDX-FileCopyrightText: 2005 David Faure <faure@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <QObject> 0010 0011 #include "ldapclient.h" 0012 0013 namespace KLDAPCore 0014 { 0015 class LdapObject; 0016 } 0017 namespace KLDAPWidgets 0018 { 0019 class LdapClient; 0020 } 0021 0022 class TestLDAPClient : public QObject 0023 { 0024 Q_OBJECT 0025 0026 public: 0027 TestLDAPClient(); 0028 void setup(); 0029 void runAll(); 0030 void cleanup(); 0031 0032 // tests 0033 void testIntevation(); 0034 0035 Q_SIGNALS: 0036 void leaveModality(); 0037 0038 private: 0039 void slotLDAPResult(const KLDAPWidgets::LdapClient &, const KLDAPCore::LdapObject &); 0040 void slotLDAPError(const QString &); 0041 void slotLDAPDone(); 0042 bool check(const QString &, QString, QString); 0043 0044 KLDAPWidgets::LdapClient *mClient = nullptr; 0045 };