My Project: authservice.cpp Source File

My Project

authservice.cpp
1/*
2 * This file is part of signon
3 *
4 * Copyright (C) 2009-2010 Nokia Corporation.
5 * Copyright (C) 2011-2016 Canonical Ltd.
6 *
7 * Contact: Alberto Mardegan <alberto.mardegan@canonical.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 */
23#include "authservice.h"
24#include "authserviceimpl.h"
25#include "debug.h"
26
27namespace SignOn {
28
29AuthService::AuthService(QObject *parent): QObject(parent),
30 impl(new AuthServiceImpl(this))
31{
32 initDebug();
33
34 qRegisterMetaType<Error>("SignOn::Error");
35 qRegisterMetaType<Error>("Error");
36
37 if (qMetaTypeId<Error>() < QMetaType::User)
38 BLAME() << "AuthService::AuthService() - "
39 "SignOn::Error meta type not registered.";
40}
41
42AuthService::~AuthService()
43{
44}
45
46 void AuthService::queryMethods()
47{
48 impl->queryMethods();
49}
50
51 void AuthService::queryMechanisms(const QString &method)
52{
53 impl->queryMechanisms(method);
54}
55
56 void AuthService::queryIdentities(const IdentityFilter &filter)
57{
58 impl->queryIdentities(filter);
59}
60
61 void AuthService::clear()
62{
63 impl->clear();
64}
65
66} //namespace SignOn
SignOn::AuthService::IdentityFilter
QMap< IdentityFilterCriteria, IdentityRegExp > IdentityFilter
Map to hold different filtering options.
Definition authservice.h:128
SignOn::AuthService::queryMethods
void queryMethods()
Requests the information on available authentication methods.
Definition authservice.cpp:46
SignOn::AuthService::clear
void clear()
Clears credentials database.
Definition authservice.cpp:61
SignOn::AuthService::~AuthService
~AuthService()
Destructor.
Definition authservice.cpp:42
SignOn::AuthService::AuthService
AuthService(QObject *parent=0)
Basic constructor.
Definition authservice.cpp:29
SignOn::AuthService::queryIdentities
void queryIdentities(const IdentityFilter &filter=IdentityFilter())
Requests information on identities which are stored.
Definition authservice.cpp:56
SignOn::AuthService::queryMechanisms
void queryMechanisms(const QString &method)
Requests the information on mechanisms which are available for certain authentication type.
Definition authservice.cpp:51
SignOn
Definition async-dbus-proxy.cpp:41