Commit 27d2c2d7 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Insert ldap addresses

parent 28709f77
......@@ -40,7 +40,7 @@ set(CALENDARSUPPORT_LIB_VERSION "5.12.40")
set(LIBKDEPIM_LIB_VERSION "5.12.40")
set(EVENTVIEW_LIB_VERSION "5.12.40")
set(AKONADI_VERSION "5.12.40")
set(AKONADICONTACT_LIB_VERSION "5.12.43")
set(AKONADICONTACT_LIB_VERSION "5.12.44")
set(KDIAGRAM_LIB_VERSION "1.4.0")
find_package(KGantt ${KDIAGRAM_LIB_VERSION} CONFIG REQUIRED)
......
......@@ -463,6 +463,13 @@ void IncidenceAttendee::expandResult(KJob *job)
}
}
void IncidenceAttendee::insertAddresses(const KContacts::Addressee::List &list)
{
for (const KContacts::Addressee &contact : list) {
insertAttendeeFromAddressee(contact);
}
}
void IncidenceAttendee::slotSelectAddresses()
{
QPointer<Akonadi::AbstractEmailAddressSelectionDialog> dialog;
......@@ -475,6 +482,7 @@ void IncidenceAttendee::slotSelectAddresses()
}
dialog->view()->view()->setSelectionMode(QAbstractItemView::ExtendedSelection);
dialog->setWindowTitle(i18n("Select Attendees"));
connect(dialog.data(), &Akonadi::AbstractEmailAddressSelectionDialog::insertAddresses, this, &IncidenceEditorNG::IncidenceAttendee::insertAddresses);
if (dialog->exec() == QDialog::Accepted) {
const Akonadi::EmailAddressSelection::List list = dialog->selectedAddresses();
for (const Akonadi::EmailAddressSelection &selection : list) {
......
......@@ -24,7 +24,7 @@
#include "incidenceeditor-ng.h"
#include <KCalendarCore/FreeBusy>
#include <KContacts/Addressee>
namespace Ui {
class EventOrTodoDesktop;
}
......@@ -110,6 +110,8 @@ private Q_SLOTS:
private:
void updateGroupExpand();
void insertAddresses(const KContacts::Addressee::List &list);
void changeStatusForMe(KCalendarCore::Attendee::PartStat);
/** Returns if I was the organizer of the loaded event */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment