File indexing completed on 2025-01-05 04:58:19

0001 /*
0002    SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "addresseelineeditakonadi.h"
0008 #include <Akonadi/Session>
0009 
0010 using namespace PimCommon;
0011 
0012 AddresseeLineEditAkonadi::AddresseeLineEditAkonadi() = default;
0013 
0014 AddresseeLineEditAkonadi::~AddresseeLineEditAkonadi() = default;
0015 
0016 Akonadi::Session *AddresseeLineEditAkonadi::akonadiSession() const
0017 {
0018     if (!m_akonadiSession) {
0019         m_akonadiSession = new Akonadi::Session("contactsCompletionSession");
0020     }
0021     return m_akonadiSession;
0022 }