signon
8.58
|
00001 /* 00002 * This file is part of signon 00003 * 00004 * Copyright (C) 2011 Nokia Corporation. 00005 * 00006 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> 00007 * 00008 * This library is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU Lesser General Public License 00010 * version 2.1 as published by the Free Software Foundation. 00011 * 00012 * This library is distributed in the hope that it will be useful, but 00013 * WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with this library; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 00020 * 02110-1301 USA 00021 */ 00027 #ifndef SIGNON_DEFAULT_KEY_AUTHORIZER_H 00028 #define SIGNON_DEFAULT_KEY_AUTHORIZER_H 00029 00030 #include "SignOn/AbstractKeyAuthorizer" 00031 00032 #include <QObject> 00033 00034 namespace SignonDaemonNS { 00035 00041 class DefaultKeyAuthorizer: public SignOn::AbstractKeyAuthorizer 00042 { 00043 Q_OBJECT 00044 00045 public: 00046 explicit DefaultKeyAuthorizer(SignOn::KeyHandler *keyHandler, 00047 QObject *parent = 0); 00048 ~DefaultKeyAuthorizer(); 00049 00050 /* reimplemented from KeyAuthorizer */ 00051 void queryKeyAuthorization(const SignOn::Key &key, Reason reason); 00052 }; 00053 00054 } // namespace 00055 00056 #endif // SIGNON_DEFAULT_KEY_AUTHORIZER_H