Akonadi Contacts

recipientseditormanager.cpp
1 /*
2  SPDX-FileCopyrightText: 2017-2023 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #include "recipientseditormanager.h"
8 
9 #include "emailaddressselectionmodel.h"
10 
11 using namespace Akonadi;
12 
13 RecipientsEditorManager::RecipientsEditorManager(QObject *parent)
14  : QObject(parent)
15 {
16 }
17 
18 RecipientsEditorManager::~RecipientsEditorManager() = default;
19 
20 RecipientsEditorManager *RecipientsEditorManager::self()
21 {
22  static RecipientsEditorManager s_self;
23  return &s_self;
24 }
25 
26 Akonadi::EmailAddressSelectionModel *RecipientsEditorManager::model()
27 {
28  if (!mModel) {
29  mModel = new Akonadi::EmailAddressSelectionModel(this);
30  }
31  return mModel;
32 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:09:05 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.