dbusinterface.h
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  */
00022 
00023 #ifndef SIGNON_DBUSINTERFACE_H
00024 #define SIGNON_DBUSINTERFACE_H
00025 
00026 #include <QDBusAbstractInterface>
00027 
00028 namespace SignOn {
00029 
00030 /* This is a version of QDBusInterface which doesn't do the blocking
00031  * introspection.
00032  */
00033 class DBusInterface: public QDBusAbstractInterface
00034 {
00035 public:
00036     DBusInterface(const QString &service,
00037                   const QString &path,
00038                   const char *interface,
00039                   const QDBusConnection &connection,
00040                   QObject *parent = 0);
00041     virtual ~DBusInterface();
00042 
00043     bool connect(const char *name, QObject *receiver, const char *slot);
00044 };
00045 
00046 }
00047 
00048 #endif // SIGNON_DBUSINTERFACE_H
00049