File indexing completed on 2024-04-14 04:51:27

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 #ifndef KACCOUNTS_CORE_H
0009 #define KACCOUNTS_CORE_H
0010 
0011 #include "kaccounts_export.h"
0012 
0013 namespace Accounts
0014 {
0015 class Manager;
0016 }
0017 
0018 namespace KAccounts
0019 {
0020 /**
0021  * Returns a single instance of Accounts::Manager
0022  *
0023  * Always use this in your application if you need Accounts::Manager
0024  * as multiple managers can lead to concurrency issues
0025  * with the backend
0026  */
0027 KACCOUNTS_EXPORT Accounts::Manager *accountsManager();
0028 }
0029 #endif