javaextensions/bluetooth/bluetoothcommons/inc.s60/bluetoothremotedevice.h
author Dario Sestito <darios@symbian.org>
Fri, 22 Oct 2010 14:23:56 +0100
branchRCL_3
changeset 84 0553e2305d00
parent 19 04becd199f91
permissions -rw-r--r--
Remerge changes for bug 2896 and tweak for generatej9zips.py

/*
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*/


#ifndef BLUETOOTHREMOTEDEVICE_H
#define BLUETOOTHREMOTEDEVICE_H

#include "bluetoothfunctionserver.h"
#include "javajniutils.h"
#include "monitor.h"

#include <btdevice.h>
#include <btmanclient.h>

namespace java
{
namespace bluetooth
{

class BluetoothDeviceDiscoverer;
class BluetoothNameLookup;
class BluetoothServiceSearcher;

#define REMOTE_AUTHENTICATED  0x01
#define REMOTE_AUTHORIZED     0x02
#define REMOTE_ENCRYPT        0x03
#define REMOTE_BANNED         0x04
#define REMOTE_TRUSTED        0x05

class BluetoothRemoteDevice
{
public:

    OS_IMPORT
    static TBool getSecurityProperty(TInt8 aSecurityId,
                                     TInt64 &aRemoteDevAddress);

private:

    static TInt getRemoteDevice(RBTRegistry& aBtRegistry,
                                TBTNamelessDevice& aDevice, TInt64 &aRemoteDevAddress);
};

} //end namespace bluetooth
} //end namespace java


#endif // BLUETOOTHREMOTEDEVICE_H