My Project: securitycontext.h Source File

My Project

securitycontext.h
1/*
2 * This file is part of signon
3 *
4 * Copyright (C) 2018 elementary, Inc
5 *
6 * Contact: Corentin Noël <corentin@elementary.io>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * version 2.1 as published by the Free Software Foundation.
11 *
12 * This library is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA
21 */
22
23#ifndef LIBSIGNON_SECURITY_CONTEXT_H
24#define LIBSIGNON_SECURITY_CONTEXT_H
25
26#include <QMetaType>
27#include <QStringList>
28
29#include "libsignoncommon.h"
30
31namespace SignOn {
32
40 class SIGNON_EXPORT SecurityContext
41{
42
43public:
47 SecurityContext();
48
54 SecurityContext(const QString &systemContext, const QString &applicationContext);
55
61 void setSystemContext(const QString &systemContext);
62
67 QString systemContext() const;
68
74 void setApplicationContext(const QString &applicationContext);
75
80 QString applicationContext() const;
81
82private:
83 QString m_systemContext;
84 QString m_applicationContext;
85};
86
91typedef QList<SecurityContext> SecurityContextList;
92
93} // namespace SignOn
94
95Q_DECLARE_METATYPE(SignOn::SecurityContext)
96
97#endif /* LIBSIGNON_SECURITY_CONTEXT_H */
SignOn::SecurityContext
Contains access security context information.
Definition securitycontext.h:41
SignOn
Definition async-dbus-proxy.cpp:41
SignOn::SecurityContextList
QList< SecurityContext > SecurityContextList
Defines a list of security contexts.
Definition identityinfo.h:55