PimCommon::LdapSearchDialog Class

class PimCommon::LdapSearchDialog

The LdapSearchDialog class provides a dialog for searching contacts in LDAP directories Author: Steffen Hansen <hansen@kde.org>. More...

Header: #include <PimCommonAkonadi/LdapSearchDialog>
CMake: find_package(KPim6PimCommonAkonadi REQUIRED)
target_link_libraries(mytarget PRIVATE KPim6::PimCommonAkonadi)

Public Functions

LdapSearchDialog(QWidget *parent = nullptr)
virtual ~LdapSearchDialog() override
KContacts::Addressee::List selectedContacts() const
void setSearchText(const QString &text)

Signals

void contactsAdded()

Reimplemented Protected Functions

virtual void closeEvent(QCloseEvent *) override

Protected Slots

void slotCancelClicked()
void slotCustomContextMenuRequested(const QPoint &)
void slotUser1()
void slotUser2()

Detailed Description

Member Function Documentation

[explicit] LdapSearchDialog::LdapSearchDialog(QWidget *parent = nullptr)

Constructs a new LDAP search dialog. @param parent The parent widget

[override virtual noexcept] LdapSearchDialog::~LdapSearchDialog()

Destructs the LDAP search dialog.

[override virtual protected] void LdapSearchDialog::closeEvent(QCloseEvent *)

Handles close events. @param event The close event

[signal] void LdapSearchDialog::contactsAdded()

Emitted when the user clicks the 'Add Selected' button.

KContacts::Addressee::List LdapSearchDialog::selectedContacts() const

Returns the list of contacts selected in the LDAP search. @return A list of selected KContacts::Addressee objects

void LdapSearchDialog::setSearchText(const QString &text)

Sets the search text in the search line edit. @param text The text to search for

[protected slot] void LdapSearchDialog::slotCancelClicked()

Handles the cancel button click.

[protected slot] void LdapSearchDialog::slotCustomContextMenuRequested(const QPoint &)

Handles custom context menu requests. @param pos The position where the context menu was requested

[protected slot] void LdapSearchDialog::slotUser1()

Handles the user1 button click.

[protected slot] void LdapSearchDialog::slotUser2()

Handles the user2 button click.