1 /* 2 SPDX-FileCopyrightText: 2012 Dario Freddi <drf@kde.org> 3 4 SPDX-License-Identifier: LGPL-2.1-or-later 5 */ 6 7 #ifndef BACKENDS_MANAGER_H 8 #define BACKENDS_MANAGER_H 9 10 #include "AuthBackend.h" 11 #include "HelperProxy.h" 12 13 namespace KAuth 14 { 15 class BackendsManager 16 { 17 static AuthBackend *auth; 18 static HelperProxy *helper; 19 20 BackendsManager(); 21 22 public: 23 static AuthBackend *authBackend(); 24 static HelperProxy *helperProxy(); 25 static void setProxyForThread(QThread *thread, HelperProxy *proxy); 26 27 private: 28 static void init(); 29 }; 30 31 } // namespace Auth 32 33 #endif 34