File indexing completed on 2024-05-19 15:57:54

0001 /*
0002  * Copyright 2014 (C) Martin Klapetek <mklapetek@kde.org>
0003  *
0004  * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005  *
0006  */
0007 
0008 #include "core.h"
0009 
0010 #include <Accounts/Manager>
0011 
0012 class CorePrivate
0013 {
0014 public:
0015     CorePrivate();
0016     Accounts::Manager *m_manager;
0017 };
0018 
0019 CorePrivate::CorePrivate()
0020     : m_manager(new Accounts::Manager())
0021 {
0022 }
0023 
0024 Q_GLOBAL_STATIC(CorePrivate, s_instance)
0025 
0026 Accounts::Manager *KAccounts::accountsManager()
0027 {
0028     return s_instance->m_manager;
0029 }