File indexing completed on 2024-12-29 04:46:19

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 #pragma once
0008 
0009 #include "calendarsupport_export.h"
0010 #include <KIdentityManagementCore/IdentityManager>
0011 
0012 namespace CalendarSupport
0013 {
0014 class CALENDARSUPPORT_EXPORT IdentityManager : public KIdentityManagementCore::IdentityManager
0015 {
0016     Q_OBJECT
0017 public:
0018     explicit IdentityManager(QObject *parent = nullptr, const char *name = nullptr)
0019         : KIdentityManagementCore::IdentityManager(true /*readonly*/, parent, name)
0020     {
0021     }
0022 
0023 protected:
0024     void createDefaultIdentity(QString &fullName, QString &emailAddress) override;
0025 };
0026 
0027 KIdentityManagementCore::IdentityManager *identityManager();
0028 }