• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KDECore

PolicyKitBackend.h

Go to the documentation of this file.
00001 /*
00002 *   Copyright (C) 2008 Nicola Gigante <nicola.gigante@gmail.com>
00003 *   Copyright (C) 2009 Dario Freddi <drf@kde.org>
00004 *
00005 *   This program is free software; you can redistribute it and/or modify
00006 *   it under the terms of the GNU Lesser General Public License as published by
00007 *   the Free Software Foundation; either version 2.1 of the License, or
00008 *   (at your option) any later version.
00009 *
00010 *   This program is distributed in the hope that it will be useful,
00011 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 *   GNU General Public License for more details.
00014 *
00015 *   You should have received a copy of the GNU Lesser General Public License
00016 *   along with this program; if not, write to the
00017 *   Free Software Foundation, Inc.,
00018 *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA .
00019 */
00020 
00021 #ifndef POLICYKIT_BACKEND_H
00022 #define POLICYKIT_BACKEND_H
00023 
00024 #include "AuthBackend.h"
00025 #include <QHash>
00026 
00027 class QByteArray;
00028 
00029 namespace KAuth
00030 {
00031 
00032 class PolicyKitBackend : public AuthBackend
00033 {
00034     Q_OBJECT
00035     Q_INTERFACES(KAuth::AuthBackend)
00036 
00037 public:
00038     PolicyKitBackend();
00039     virtual void setupAction(const QString&);
00040     virtual Action::AuthStatus authorizeAction(const QString&);
00041     virtual Action::AuthStatus actionStatus(const QString&);
00042     virtual QByteArray callerID() const;
00043     virtual bool isCallerAuthorized(const QString &action, QByteArray callerID);
00044 
00045 private Q_SLOTS:
00046     void checkForResultChanged();
00047 
00048 private:
00049     QHash<QString, Action::AuthStatus> m_cachedResults;
00050 };
00051 
00052 } // namespace Auth
00053 
00054 #endif

KDECore

Skip menu "KDECore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal