|
signon
8.40
|
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 00023 00024 #ifndef SIGNONUI_INTERFACE_H_ 00025 #define SIGNONUI_INTERFACE_H_ 00026 00027 #include <QtCore/QObject> 00028 #include <QtCore/QByteArray> 00029 #include <QtCore/QList> 00030 #include <QtCore/QMap> 00031 #include <QtCore/QString> 00032 #include <QtCore/QStringList> 00033 #include <QtCore/QVariant> 00034 #include <QtDBus/QtDBus> 00035 #include <QtDBus/QDBusPendingCall> 00036 00037 /* 00038 * Proxy class for interface com.nokia.singlesignonui 00039 */ 00040 class SignonUiAdaptor: public QDBusAbstractInterface 00041 { 00042 Q_OBJECT 00043 00044 friend class SignonSecureStorageUiAdaptor; 00045 00046 public: 00047 static inline const char *staticInterfaceName() { 00048 return "com.nokia.singlesignonui"; 00049 } 00050 00051 public: 00052 00053 SignonUiAdaptor(const QString &service, 00054 const QString &path, 00055 const QDBusConnection &connection, 00056 QObject *parent = 0); 00057 ~SignonUiAdaptor(); 00058 00059 public Q_SLOTS: // METHODS 00060 QDBusPendingCall queryDialog(const QVariantMap ¶meters); 00061 QDBusPendingCall refreshDialog(const QVariantMap ¶meters); 00062 00063 void cancelUiRequest(const QString &requestId); 00064 00065 protected: 00066 QDBusPendingCall callWithArgumentListAndBigTimeout( 00067 const QString &method, 00068 const QList<QVariant> &args = QList<QVariant>()); 00069 }; 00070 00071 #endif