File indexing completed on 2024-07-21 09:28:28

0001 /*
0002     SPDX-FileCopyrightText: 2008 Nicola Gigante <nicola.gigante@gmail.com>
0003     SPDX-FileCopyrightText: 2009 Dario Freddi <drf@kde.org>
0004 
0005     SPDX-License-Identifier: LGPL-2.1-or-later
0006 */
0007 
0008 #ifndef KAUTH_BACKENDS_MANAGER_H
0009 #define KAUTH_BACKENDS_MANAGER_H
0010 
0011 #include "AuthBackend.h"
0012 #include "HelperProxy.h"
0013 #include "kauthcore_export.h"
0014 
0015 namespace KAuth
0016 {
0017 class KAUTHCORE_EXPORT BackendsManager
0018 {
0019 private:
0020     static AuthBackend *auth;
0021     static HelperProxy *helper;
0022 
0023     KAUTHCORE_NO_EXPORT BackendsManager();
0024 
0025 public:
0026     static AuthBackend *authBackend();
0027     static HelperProxy *helperProxy();
0028 
0029 private:
0030     KAUTHCORE_NO_EXPORT static void init();
0031     KAUTHCORE_NO_EXPORT static QList<QObject *> retrieveInstancesIn(const QString &path);
0032 };
0033 
0034 } // namespace Auth
0035 
0036 #endif