signon  8.40
smack-access-control-manager.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
00002 /*
00003  * This file is part of signon
00004  *
00005  * Copyright (C) 2011 Intel Corporation.
00006  *
00007  * Contact: Elena Reshetova <elena.reshetova@intel.com>
00008  *
00009  * This library is free software; you can redistribute it and/or
00010  * modify it under the terms of the GNU Lesser General Public License
00011  * version 2.1 as published by the Free Software Foundation.
00012  *
00013  * This library is distributed in the hope that it will be useful, but
00014  * WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00016  * Lesser General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Lesser General Public
00019  * License along with this library; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
00021  * 02110-1301 USA
00022  */
00029 #ifndef SMACK_ACCESS_CONTROL_MANAGER_H
00030 #define SMACK_ACCESS_CONTROL_MANAGER_H
00031 
00032 #include <QDBusMessage>
00033 
00034 #include <SignOn/AbstractAccessControlManager>
00035 
00041 class SmackAccessControlManager: public SignOn::AbstractAccessControlManager
00042 {
00043     Q_OBJECT
00044 
00045 public:
00050     SmackAccessControlManager(QObject *parent = 0);
00051 
00055     ~SmackAccessControlManager();
00056 
00057     // reimplemented virtual methods
00066     bool isPeerAllowedToAccess(const QDBusMessage &peerMessage,
00067                                const QString &securityContext);
00068 
00075      QString appIdOfPeer(const QDBusMessage &peerMessage);
00076 
00080     QString keychainWidgetAppId();
00081 
00082 };
00083 
00084 #endif // SMACK_ACCESS_CONTROL_MANAGER_H