KAuth

AuthServicesBackend.h
1/*
2 SPDX-FileCopyrightText: 2008 Nicola Gigante <nicola.gigante@gmail.com>
3
4 SPDX-License-Identifier: LGPL-2.1-or-later
5*/
6
7#ifndef AUTHSERVICES_BACKEND_H
8#define AUTHSERVICES_BACKEND_H
9
10#include "AuthBackend.h"
11#include <Security/Security.h>
12
13namespace KAuth
14{
15class AuthServicesBackend : public AuthBackend
16{
18 Q_PLUGIN_METADATA(IID "org.kde.AuthServicesBackend")
19 Q_INTERFACES(KAuth::AuthBackend)
20
21public:
22 AuthServicesBackend();
23 virtual ~AuthServicesBackend();
24 virtual void setupAction(const QString &);
25 virtual Action::AuthStatus authorizeAction(const QString &);
26 virtual Action::AuthStatus actionStatus(const QString &);
27 virtual QByteArray callerID() const;
28 virtual bool isCallerAuthorized(const QString &action, const QByteArray &callerID, const QVariantMap &details);
29};
30
31} // namespace KAuth
32
33#endif
AuthStatus
The three values set by authorization methods.
Definition action.h:84
Q_INTERFACES(...)
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:49:34 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.