File indexing completed on 2024-10-13 09:29:40

0001 /*
0002     SPDX-FileCopyrightText: 2012 Dario Freddi <drf@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-or-later
0005 */
0006 
0007 #ifndef BACKENDS_MANAGER_H
0008 #define BACKENDS_MANAGER_H
0009 
0010 #include "AuthBackend.h"
0011 #include "HelperProxy.h"
0012 
0013 namespace KAuth
0014 {
0015 class BackendsManager
0016 {
0017     static AuthBackend *auth;
0018     static HelperProxy *helper;
0019 
0020     BackendsManager();
0021 
0022 public:
0023     static AuthBackend *authBackend();
0024     static HelperProxy *helperProxy();
0025     static void setProxyForThread(QThread *thread, HelperProxy *proxy);
0026 
0027 private:
0028     static void init();
0029 };
0030 
0031 } // namespace Auth
0032 
0033 #endif