javaextensions/bluetooth/bluetoothcommons/inc.s60/bluetoothremotedevice.h
branchRCL_3
changeset 19 04becd199f91
equal deleted inserted replaced
16:f5050f1da672 19:04becd199f91
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef BLUETOOTHREMOTEDEVICE_H
       
    20 #define BLUETOOTHREMOTEDEVICE_H
       
    21 
       
    22 #include "bluetoothfunctionserver.h"
       
    23 #include "javajniutils.h"
       
    24 #include "monitor.h"
       
    25 
       
    26 #include <btdevice.h>
       
    27 #include <btmanclient.h>
       
    28 
       
    29 namespace java
       
    30 {
       
    31 namespace bluetooth
       
    32 {
       
    33 
       
    34 class BluetoothDeviceDiscoverer;
       
    35 class BluetoothNameLookup;
       
    36 class BluetoothServiceSearcher;
       
    37 
       
    38 #define REMOTE_AUTHENTICATED  0x01
       
    39 #define REMOTE_AUTHORIZED     0x02
       
    40 #define REMOTE_ENCRYPT        0x03
       
    41 #define REMOTE_BANNED         0x04
       
    42 #define REMOTE_TRUSTED        0x05
       
    43 
       
    44 class BluetoothRemoteDevice
       
    45 {
       
    46 public:
       
    47 
       
    48     OS_IMPORT
       
    49     static TBool getSecurityProperty(TInt8 aSecurityId,
       
    50                                      TInt64 &aRemoteDevAddress);
       
    51 
       
    52 private:
       
    53 
       
    54     static TInt getRemoteDevice(RBTRegistry& aBtRegistry,
       
    55                                 TBTNamelessDevice& aDevice, TInt64 &aRemoteDevAddress);
       
    56 };
       
    57 
       
    58 } //end namespace bluetooth
       
    59 } //end namespace java
       
    60 
       
    61 
       
    62 #endif // BLUETOOTHREMOTEDEVICE_H