~ubuntu-branches/ubuntu/intrepid/kdebluetooth/intrepid-proposed

« back to all changes in this revision

Viewing changes to kdebluetooth/libkbluetooth/namerequest.h

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2008-08-07 09:49:47 UTC
  • mto: This revision was merged to the branch mainline in revision 56.
  • Revision ID: james.westby@ubuntu.com-20080807094947-pj6q3uxwuv7l844q
Tags: upstream-0.1
ImportĀ upstreamĀ versionĀ 0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//-*-c++-*-
2
 
/***************************************************************************
3
 
 *   Copyright (C) 2003 by Fred Schaettgen                                 *
4
 
 *   kdebluetooth@schaettgen.de                                            *
5
 
 *                                                                         *
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
 
 ***************************************************************************/
11
 
 
12
 
#ifndef KBLUETOOTHNAMEREQUEST_H
13
 
#define KBLUETOOTHNAMEREQUEST_H
14
 
 
15
 
#include <qobject.h>
16
 
#include "deviceaddress.h"
17
 
 
18
 
namespace KBluetooth
19
 
{
20
 
 
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
24
 
an ongoing inquiry.
25
 
*/
26
 
class NameRequest : public QObject
27
 
{
28
 
    Q_OBJECT
29
 
public:
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.
33
 
    */
34
 
    QString resolve(DeviceAddress addr);
35
 
 
36
 
    /** Gets the error message in case resolve() has failed.
37
 
    @return The last error message. Undefined if there was no error.
38
 
    */
39
 
    QString lastErrorMessage();
40
 
 
41
 
private:
42
 
    QString errorMessage;
43
 
};
44
 
 
45
 
}
46
 
 
47
 
#endif