File: testldapclient.h

package info (click to toggle)
kldap 20.08.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,636 kB
  • sloc: cpp: 7,503; makefile: 14; sh: 2
file content (46 lines) | stat: -rw-r--r-- 806 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/* This file is part of the KDE project
   SPDX-FileCopyrightText: 2005 David Faure <faure@kde.org>

   SPDX-License-Identifier: LGPL-2.0-only
*/

#ifndef TESTLDAPCLIENT_H
#define TESTLDAPCLIENT_H

#include <QObject>

#include "widgets/ldapclient.h"

namespace KLDAP {
class LdapClient;
class LdapObject;
}

class TestLDAPClient : public QObject
{
    Q_OBJECT

public:
    TestLDAPClient();
    void setup();
    void runAll();
    void cleanup();

    // tests
    void testIntevation();

Q_SIGNALS:
    void leaveModality();

private Q_SLOTS:
    void slotLDAPResult(const KLDAP::LdapClient &, const KLDAP::LdapObject &);
    void slotLDAPError(const QString &);
    void slotLDAPDone();

private:
    bool check(const QString &, QString, QString);

    KLDAP::LdapClient *mClient = nullptr;
};

#endif