KAuth

AuthServicesBackend.h
1 /*
2  SPDX-FileCopyrightText: 2008 Nicola Gigante <[email protected]>
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 
13 namespace KAuth
14 {
15 class AuthServicesBackend : public AuthBackend
16 {
17  Q_OBJECT
18  Q_PLUGIN_METADATA(IID "org.kde.AuthServicesBackend")
19  Q_INTERFACES(KAuth::AuthBackend)
20 
21 public:
22  AuthServicesBackend();
23  virtual ~AuthServicesBackend();
24  virtual void setupAction(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  virtual bool actionExists(const QString &action);
30 };
31 
32 } // namespace KAuth
33 
34 #endif
Q_OBJECTQ_OBJECT
AuthStatus
The three values set by authorization methods.
Definition: action.h:82
KCONFIGCORE_EXPORT bool authorizeAction(const QString &action)
Definition: action.cpp:18
Q_INTERFACES(...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Feb 5 2023 04:14:58 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.