2
/***************************************************************************
3
* Copyright (C) 2003 by Fred Schaettgen *
4
* kdebluetooth@schaettgen.de *
6
* This program is free software; you can redistribute it and/or modify *
7
* it under the terms of the GNU General Public License as published by *
8
* the Free Software Foundation; either version 2 of the License, or *
9
* (at your option) any later version. *
10
***************************************************************************/
12
#ifndef KBLUETOOTHNAMEREQUEST_H
13
#define KBLUETOOTHNAMEREQUEST_H
16
#include "deviceaddress.h"
21
/** Gets the name of a bluetooth device from its device address.
22
With NameRequest it is possible to retrieve the name of a remote bluetooth
23
device. Note that you shouldn't try to resolve names during
26
class NameRequest : public QObject
30
/** Returns the name of a bluetooth device.
31
@param addr The bluetooth address of the other device
32
@return The name of the device or QString::null in case of an error.
34
QString resolve(DeviceAddress addr);
36
/** Gets the error message in case resolve() has failed.
37
@return The last error message. Undefined if there was no error.
39
QString lastErrorMessage();