3
* Security implementation of bluez DBus API
5
* Copyright (C) 2006 Daniel Gollub <dgollub@suse.de>
8
* This file is part of libkbluetooth.
10
* libkbluetooth is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version.
15
* libkbluetooth is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU General Public License for more details.
20
* You should have received a copy of the GNU General Public License
21
* along with libkbluetooth; if not, write to the Free Software
22
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
30
#include "dbussignal.h"
31
#include "dbusfilter.h"
33
#define INTERFACE_SERVICE "org.bluez.Service"
38
class Service : public DBusSignal
43
Service(DBusConnection *dbusconn, const QString &servicepath);
46
typedef QValueList<QString> UserList;
48
QString getIdentifier();
50
QString getDescription();
57
bool removeUser(const QString &address);
58
bool setTrusted(const QString &address);
59
bool isTrusted(const QString &address);
60
bool removeTrust(const QString &address);
61
QStringList listTrusts();
66
void trustAdded(const QString &address);
67
void trustRemoved(const QString &address);
75
static Service *_service;
76
static DBusHandlerResult filterFunction(DBusConnection * conn, DBusMessage *msg, void * data);