add more spacing
[personal-kdebase.git] / workspace / solid / bluez / bluezcalljob.h
blobbebfbd20635cfd2bbb3e2a99836239ea754d9e40
1 /* This file is part of the KDE project
2 Copyright (C) 2006 Kevin Ottens <ervin@kde.org>
3 Copyright (C) 2007 Daniel Gollub <dgollub@suse.de>
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License version 2 as published by the Free Software Foundation.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
22 #ifndef BLUEZCALLJOB_H
23 #define BLUEZCALLJOB_H
25 #include <kjob.h>
26 #include <QtDBus/QDBusConnection>
27 #include <QtDBus/QDBusMessage>
28 #include <QList>
29 #include <QVariant>
31 class BluezCallJob : public KJob
33 Q_OBJECT
34 public:
35 BluezCallJob(const QDBusConnection &connection, const QString &dest,
36 const QString &path, const QString &interface, const QString &methodName,
37 const QList<QVariant> &params);
38 virtual ~BluezCallJob();
40 void start();
41 void kill(bool quietly);
43 private Q_SLOTS:
44 void doStart();
45 void callError(const QDBusError &error);
46 void callReply(const QDBusMessage &reply);
48 private:
49 QDBusConnection m_connection;
50 QString m_dest;
51 QString m_path;
52 QString m_iface;
53 QString m_method;
54 QList<QVariant> m_params;
57 #endif