File indexing completed on 2024-05-12 05:13:14
0001 /* 0002 SPDX-FileCopyrightText: 2004 David Faure <faure@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later WITH Qt-Commercial-exception-1.0 0005 */ 0006 0007 #include "identitymanager.h" 0008 #include "kcalprefs.h" 0009 0010 using namespace CalendarSupport; 0011 0012 // This is called to create a default identity in case emailidentities has none 0013 // (i.e. the user never used KMail before) 0014 // We provide the values from KCalPrefs, since those are configurable in korganizer. 0015 void IdentityManager::createDefaultIdentity(QString &fullName, QString &emailAddress) 0016 { 0017 fullName = KCalPrefs::instance()->fullName(); 0018 emailAddress = KCalPrefs::instance()->email(); 0019 } 0020 0021 Q_GLOBAL_STATIC(CalendarSupport::IdentityManager, globalIdentityManager) 0022 0023 KIdentityManagementCore::IdentityManager *CalendarSupport::identityManager() 0024 { 0025 return globalIdentityManager; 0026 } 0027 0028 #include "moc_identitymanager.cpp"