authservice.cpp
00001 /*
00002  * This file is part of signon
00003  *
00004  * Copyright (C) 2009-2010 Nokia Corporation.
00005  * Copyright (C) 2011-2015 Canonical Ltd.
00006  *
00007  * Contact: Alberto Mardegan <alberto.mardegan@canonical.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  */
00023 #include "authservice.h"
00024 #include "authserviceimpl.h"
00025 #include "debug.h"
00026 
00027 namespace SignOn {
00028 
00029 AuthService::AuthService(QObject *parent): QObject(parent),
00030     impl(new AuthServiceImpl(this))
00031 {
00032     initDebug();
00033 
00034     qRegisterMetaType<Error>("SignOn::Error");
00035     qRegisterMetaType<Error>("Error");
00036 
00037     if (qMetaTypeId<Error>() < QMetaType::User)
00038         BLAME() << "AuthService::AuthService() - "
00039             "SignOn::Error meta type not registered.";
00040 }
00041 
00042 AuthService::~AuthService()
00043 {
00044 }
00045 
00046 void AuthService::queryMethods()
00047 {
00048     impl->queryMethods();
00049 }
00050 
00051 void AuthService::queryMechanisms(const QString &method)
00052 {
00053     impl->queryMechanisms(method);
00054 }
00055 
00056 void AuthService::queryIdentities(const IdentityFilter &filter)
00057 {
00058     impl->queryIdentities(filter);
00059 }
00060 
00061 void AuthService::clear()
00062 {
00063     impl->clear();
00064 }
00065 
00066 } //namespace SignOn