Main Page | Class Hierarchy | Data Structures | File List | Data Fields | Globals

CBTUtil Class Reference

Utility class for lowlevel manipulation of Bluetooth peer data. More...

#include <btutil.h>


Static Public Member Functions

IMPORT_C TInt GetListenPortL (const CNetworkPeer &aPeer, TInt &aPort, TInt &aType)
 Retrieves the listen port and and it's type.

IMPORT_C TInt FormatAddress (const CNetworkPeer &aPeer, TDes &aBuf)
 Formats the 48-bit bluetooth address of a bluetooth peer in the hexadecimal syntax (XX:XX:XX:XX:XX:XX).


Detailed Description

Utility class for lowlevel manipulation of Bluetooth peer data.

Author:
Matti Dahlbom
Version:
beta0_9_1_2004-01-13, 1.3

Definition at line 43 of file btutil.h.


Member Function Documentation

EXPORT_C TInt CBTUtil::FormatAddress const CNetworkPeer aPeer,
TDes &  aBuf
[static]
 

Formats the 48-bit bluetooth address of a bluetooth peer in the hexadecimal syntax (XX:XX:XX:XX:XX:XX).

Parameters:
aPeer peer whose address to format
aBuf buffer to store the formatted address as string
Returns:
KErrNone if successful, KErrArgument if non-bluetooth peer passed as argument, or any of the general error codes if other errors.

Definition at line 49 of file btutil.cpp.

References EBluetooth, CNetworkPeer::GetDeviceAddress(), and CNetworkPeer::GetProtocol().

EXPORT_C TInt CBTUtil::GetListenPortL const CNetworkPeer aPeer,
TInt &  aPort,
TInt &  aType
[static]
 

Retrieves the listen port and and it's type.

Parameters:
aPeer network peer to investigate
aPort upon successful completion, this will be set to indicate the listening port number.
aType upon successful completion, this will be set to indicate the type of the listening port (either KRFCOMM or KL2CAP)
Returns:
KErrNone on successful completion. KErrNotFound if the peer has no valid listening port defined

Definition at line 29 of file btutil.cpp.

References CNetworkPeer::GetPeerProperties(), TBTPeerProperties::iL2capPort, TBTPeerProperties::iRfcommPort, Log::Print(), and TBTPeerPropertiesBuf.


The documentation for this class was generated from the following files:
Generated on Tue Jan 13 15:47:08 2004 for CobainAPIImplementation by doxygen 1.3.5