CalendarSupport

identitymanager.cpp
1/*
2 SPDX-FileCopyrightText: 2004 David Faure <faure@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later WITH Qt-Commercial-exception-1.0
5*/
6
7#include "identitymanager.h"
8#include "kcalprefs.h"
9
10using namespace CalendarSupport;
11
12// This is called to create a default identity in case emailidentities has none
13// (i.e. the user never used KMail before)
14// We provide the values from KCalPrefs, since those are configurable in korganizer.
15void IdentityManager::createDefaultIdentity(QString &fullName, QString &emailAddress)
16{
17 fullName = KCalPrefs::instance()->fullName();
18 emailAddress = KCalPrefs::instance()->email();
19}
20
21Q_GLOBAL_STATIC(CalendarSupport::IdentityManager, globalIdentityManager)
22
23KIdentityManagementCore::IdentityManager *CalendarSupport::identityManager()
24{
25 return globalIdentityManager;
26}
27
28#include "moc_identitymanager.cpp"
QString fullName(const PartType &type)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:16:32 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.