signon  8.58
signonui_interface.h
Go to the documentation of this file.
00001 /*
00002  * This file is part of signon
00003  *
00004  * Copyright (C) 2009-2010 Nokia Corporation.
00005  * Copyright (C) 2013 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 
00024 
00025 #ifndef SIGNONUI_INTERFACE_H_
00026 #define SIGNONUI_INTERFACE_H_
00027 
00028 #include <QtCore/QObject>
00029 #include <QtCore/QByteArray>
00030 #include <QtCore/QList>
00031 #include <QtCore/QMap>
00032 #include <QtCore/QString>
00033 #include <QtCore/QStringList>
00034 #include <QtCore/QVariant>
00035 #include <QtDBus/QtDBus>
00036 #include <QtDBus/QDBusPendingCall>
00037 
00038 /*
00039  * Proxy class for interface com.nokia.singlesignonui
00040  */
00041 class SignonUiAdaptor: public QDBusAbstractInterface
00042 {
00043     Q_OBJECT
00044 
00045     friend class SignonSecureStorageUiAdaptor;
00046 
00047 public:
00048     static inline const char *staticInterfaceName() {
00049         return "com.nokia.singlesignonui";
00050     }
00051 
00052 public:
00053 
00054     SignonUiAdaptor(const QString &service,
00055                     const QString &path,
00056                     const QDBusConnection &connection,
00057                     QObject *parent = 0);
00058     ~SignonUiAdaptor();
00059 
00060 public Q_SLOTS: // METHODS
00061     QDBusPendingCall queryDialog(const QVariantMap &parameters);
00062     QDBusPendingCall refreshDialog(const QVariantMap &parameters);
00063 
00064     void cancelUiRequest(const QString &requestId);
00065     QDBusPendingCall removeIdentityData(quint32 id);
00066 
00067 protected:
00068     QDBusPendingCall callWithArgumentListAndBigTimeout(
00069         const QString &method,
00070         const QList<QVariant> &args = QList<QVariant>());
00071 };
00072 
00073 #endif