signon  8.42
signonui_interface.h
Go to the documentation of this file.
1 /*
2  * This file is part of signon
3  *
4  * Copyright (C) 2009-2010 Nokia Corporation.
5  *
6  * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public License
10  * version 2.1 as published by the Free Software Foundation.
11  *
12  * This library is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20  * 02110-1301 USA
21  */
22 
23 
24 #ifndef SIGNONUI_INTERFACE_H_
25 #define SIGNONUI_INTERFACE_H_
26 
27 #include <QtCore/QObject>
28 #include <QtCore/QByteArray>
29 #include <QtCore/QList>
30 #include <QtCore/QMap>
31 #include <QtCore/QString>
32 #include <QtCore/QStringList>
33 #include <QtCore/QVariant>
34 #include <QtDBus/QtDBus>
35 #include <QtDBus/QDBusPendingCall>
36 
37 /*
38  * Proxy class for interface com.nokia.singlesignonui
39  */
40 class SignonUiAdaptor: public QDBusAbstractInterface
41 {
42  Q_OBJECT
43 
45 
46 public:
47  static inline const char *staticInterfaceName() {
48  return "com.nokia.singlesignonui";
49  }
50 
51 public:
52 
53  SignonUiAdaptor(const QString &service,
54  const QString &path,
55  const QDBusConnection &connection,
56  QObject *parent = 0);
58 
59 public Q_SLOTS: // METHODS
60  QDBusPendingCall queryDialog(const QVariantMap &parameters);
61  QDBusPendingCall refreshDialog(const QVariantMap &parameters);
62 
63  void cancelUiRequest(const QString &requestId);
64 
65 protected:
66  QDBusPendingCall callWithArgumentListAndBigTimeout(
67  const QString &method,
68  const QList<QVariant> &args = QList<QVariant>());
69 };
70 
71 #endif