File: BackendsManager.h

package info (click to toggle)
kf6-kauth 6.20.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,468 kB
  • sloc: cpp: 2,944; xml: 24; sh: 14; makefile: 7
file content (33 lines) | stat: -rw-r--r-- 574 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
    SPDX-FileCopyrightText: 2012 Dario Freddi <drf@kde.org>

    SPDX-License-Identifier: LGPL-2.1-or-later
*/

#ifndef BACKENDS_MANAGER_H
#define BACKENDS_MANAGER_H

#include "AuthBackend.h"
#include "HelperProxy.h"

namespace KAuth
{
class BackendsManager
{
    static AuthBackend *auth;
    static HelperProxy *helper;

    BackendsManager();

public:
    static AuthBackend *authBackend();
    static HelperProxy *helperProxy();
    static void setProxyForThread(QThread *thread, HelperProxy *proxy);

private:
    static void init();
};

} // namespace Auth

#endif