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

Plasma

authorizationmanager.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 2009 by Rob Scheepmaker <r.scheepmaker@student.utwente.nl>
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2.1 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with this library; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin St, Fifth Floor,
00017  * Boston, MA  02110-1301  USA
00018  */
00019 
00020 #ifndef PLASMA_AUTHORIZATIONMANAGER_H
00021 #define PLASMA_AUTHORIZATIONMANAGER_H
00022 
00023 #include "plasma_export.h"
00024 
00025 #include <QtCore/QObject>
00026 
00027 class QString;
00028 class KUrl;
00029 
00030 namespace Plasma
00031 {
00032 
00033 class AuthorizationInterface;
00034 class AuthorizationManagerPrivate;
00035 class ServiceAccessJob;
00036 class ServiceJob;
00037 
00056 class PLASMA_EXPORT AuthorizationManager : public QObject
00057 {
00058     Q_OBJECT
00059 
00060     public:
00061         enum AuthorizationPolicy {
00062             DenyAll= 0,  
00063             TrustedOnly= 1, 
00064             PinPairing= 2, 
00065             Custom= 256 
00066         };
00067 
00071         static AuthorizationManager *self();
00072 
00080         void setAuthorizationPolicy(AuthorizationPolicy policy);
00081 
00087         void setAuthorizationInterface(AuthorizationInterface *interface);
00088 
00089     Q_SIGNALS:
00094         void readyForRemoteAccess();
00095 
00096     private:
00097         AuthorizationManager();
00098         ~AuthorizationManager();
00099 
00100         AuthorizationManagerPrivate *const d;
00101 
00102         Q_PRIVATE_SLOT(d, void slotLoadRules())
00103         Q_PRIVATE_SLOT(d, void slotWalletOpened())
00104 
00105         friend class AccessManager;
00106         friend class AuthorizationManagerPrivate;
00107         friend class AuthorizationManagerSingleton;
00108         friend class AuthorizationRule;
00109         friend class AuthorizationRulePrivate;
00110         friend class Applet;
00111         friend class AppletPrivate;
00112         friend class Credentials;
00113         friend class DataEngine;
00114         friend class GetSource;
00115         friend class PackagePrivate;
00116         friend class PlasmoidServiceJob;
00117         friend class RemoteService;
00118         friend class RemoteServiceJob;
00119         friend class ServicePrivate;
00120         friend class ServiceProvider;
00121 };
00122 } // Plasma namespace
00123 
00124 #endif
00125 

Plasma

Skip menu "Plasma"
  • Main Page
  • 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