Akonadi Contacts

recipientseditormanager.cpp
1 /*
2  SPDX-FileCopyrightText: 2017-2021 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()
19 {
20 }
21 
22 RecipientsEditorManager *RecipientsEditorManager::self()
23 {
24  static RecipientsEditorManager s_self;
25  return &s_self;
26 }
27 
28 Akonadi::EmailAddressSelectionModel *RecipientsEditorManager::model()
29 {
30  if (!mModel) {
31  mModel = new Akonadi::EmailAddressSelectionModel(this);
32  }
33  return mModel;
34 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jun 23 2021 23:09:25 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.