- Main Page
- Related Pages
- Classes
- Files

- File List

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