/usr/include/KF5/libkdepim/ldapsearchdialog.h is in libkf5libkdepim-dev 4:17.12.3-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | /*
* This file is part of libkldap.
*
* Copyright (C) 2002 Klarälvdalens Datakonsult AB
*
* Author: Steffen Hansen <hansen@kde.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
//AK_REVIEW: move back to libkdepim, not ready yet
#ifndef KLDAP_LDAPSEARCHDIALOG_H
#define KLDAP_LDAPSEARCHDIALOG_H
#include "kdepim_export.h"
#include <kcontacts/addressee.h>
#include <QDialog>
class QCloseEvent;
namespace KLDAP {
class LdapClient;
class LdapObject;
/**
* @short A dialog to search contacts in a LDAP directory.
*
* This dialog allows the user to search for contacts inside
* a LDAP directory.
*
* @author Steffen Hansen <hansen@kde.org>
* @since 4.5
*/
class KDEPIM_EXPORT LdapSearchDialog : public QDialog
{
Q_OBJECT
public:
enum FilterType {
Name = 0,
Email,
HomeNumber,
WorkNumber
};
/**
* Creates a new ldap search dialog.
*
* @param parent The parent widget.
*/
explicit LdapSearchDialog(QWidget *parent = nullptr);
/**
* Destroys the ldap search dialog.
*/
~LdapSearchDialog();
/**
* Sets the @p text in the search line edit.
*/
void setSearchText(const QString &text);
/**
* Returns a list of contacts that have been selected
* in the LDAP search.
*/
KContacts::Addressee::List selectedContacts() const;
Q_SIGNALS:
/**
* This signal is emitted whenever the user clicked the
* 'Add Selected' button.
*/
void contactsAdded();
protected Q_SLOTS:
void slotUser1();
void slotUser2();
void slotCustomContextMenuRequested(const QPoint &);
void slotCancelClicked();
protected:
void closeEvent(QCloseEvent *) override;
private:
//@cond PRIVATE
class Private;
Private *const d;
Q_PRIVATE_SLOT(d, void slotAddResult(const KLDAP::LdapClient &, const KLDAP::LdapObject &))
Q_PRIVATE_SLOT(d, void slotSetScope(bool))
Q_PRIVATE_SLOT(d, void slotStartSearch())
Q_PRIVATE_SLOT(d, void slotStopSearch())
Q_PRIVATE_SLOT(d, void slotSearchDone())
Q_PRIVATE_SLOT(d, void slotError(const QString &))
//@endcond
};
}
Q_DECLARE_METATYPE(KLDAP::LdapSearchDialog::FilterType)
#endif
|