signon  8.42
smack-access-control-manager.h
Go to the documentation of this file.
1 /* -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of signon
4  *
5  * Copyright (C) 2011 Intel Corporation.
6  *
7  * Contact: Elena Reshetova <elena.reshetova@intel.com>
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public License
11  * version 2.1 as published by the Free Software Foundation.
12  *
13  * This library is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21  * 02110-1301 USA
22  */
29 #ifndef SMACK_ACCESS_CONTROL_MANAGER_H
30 #define SMACK_ACCESS_CONTROL_MANAGER_H
31 
32 #include <QDBusMessage>
33 
34 #include <SignOn/AbstractAccessControlManager>
35 
41 class SmackAccessControlManager: public SignOn::AbstractAccessControlManager
42 {
43  Q_OBJECT
44 
45 public:
50  SmackAccessControlManager(QObject *parent = 0);
51 
56 
57  // reimplemented virtual methods
66  bool isPeerAllowedToAccess(const QDBusMessage &peerMessage,
67  const QString &securityContext);
68 
75  QString appIdOfPeer(const QDBusMessage &peerMessage);
76 
80  QString keychainWidgetAppId();
81 
82 };
83 
84 #endif // SMACK_ACCESS_CONTROL_MANAGER_H