signon
8.58
|
00001 /* 00002 * This file is part of signon 00003 * 00004 * Copyright (C) 2009-2010 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 */ 00022 #ifndef EXAMPLEPLUGIN_H_ 00023 #define EXAMPLEPLUGIN_H_ 00024 00025 #include <QtCore> 00026 00027 #include "SignOn/sessiondata.h" 00028 #include "SignOn/uisessiondata.h" 00029 #include "SignOn/authpluginif.h" 00030 00031 namespace ExamplePluginNS { 00032 00037 class ExamplePlugin: public AuthPluginInterface 00038 { 00039 Q_OBJECT 00040 Q_INTERFACES(AuthPluginInterface) 00041 00042 public: 00043 ExamplePlugin(QObject *parent = 0); 00044 virtual ~ExamplePlugin(); 00045 00046 public Q_SLOTS: 00047 QString type() const; 00048 QStringList mechanisms() const; 00049 void cancel(); 00050 void process(const SignOn::SessionData &inData, 00051 const QString &mechanism = 0); 00052 void userActionFinished(const SignOn::UiSessionData &data); 00053 // void refresh(const SignOn::UiSessionData &data); 00054 private: 00055 class Private; 00056 Private *d; // Owned. 00057 bool m_showTos; 00058 }; 00059 00060 } //namespace ExamplePluginNS 00061 00062 #endif /* EXAMPLEPLUGIN_H_ */