RfcommService Class Reference
[Bluetooth Hands-Free Profile Implementation]

Service building block for RFCOMM profiles. More...

#include <rfcomm.h>

Inheritance diagram for RfcommService:

Inheritance graph
[legend]
Collaboration diagram for RfcommService:

Collaboration graph
[legend]

List of all members.

Public Member Functions

rfcomm_secmode_t GetSecMode (void) const
 Query the security mode of the listening socket.
bool SetSecMode (rfcomm_secmode_t sec, ErrorInfo *error=0)
 Set the security mode of the listening socket.
BtHubGetHub (void) const
DispatchInterfaceGetDi (void) const
BtSessionGetFirstSession (void) const
BtSessionGetNextSession (BtSession *) const


Detailed Description

Service building block for RFCOMM profiles.

RfcommService is a proto-service that contains utility code useful for creating a service handler for an RFCOMM profile. It works in conjunction with RfcommSession.

See also:
HfpService

Member Function Documentation

rfcomm_secmode_t GetSecMode ( void   )  const [inline]

Query the security mode of the listening socket.

Returns:
The security mode applied to the listening socket
Note:
The security mode set on the listening socket is also used for all new outbound connections.
See also:
SetSecMode()

bool SetSecMode ( rfcomm_secmode_t  sec,
ErrorInfo error = 0 
)

Set the security mode of the listening socket.

The security mode of the listening socket sets the security mode of all inbound connections. The RfcommSession and HfpSession objects also apply it to all outbound connections, and it is effectively used as policy for all RFCOMM connections.

Parameters:
[in] sec Security mode to be applied
[out] error Error information structure. If this method fails and returns false, and error is not 0, error will be filled out with information on the cause of the failure.
Return values:
true Security mode was successfully applied
false Error attempting to apply security mode
Note:
Changes to the security mode of the listening socket do not affect existing connections to audio gateway devices. Changes will take effect on the next inbound or outbound connection. To determine the security mode in effect for a specific connection, use HfpService::GetSecMode().
See also:
GetSecMode(), HfpSession::GetSecMode().

BtHub* GetHub ( void   )  const [inline, inherited]

Query the presiding BtHub

DispatchInterface* GetDi ( void   )  const [inline, inherited]

Query the dispatcher interface of the presiding BtHub

BtSession * GetFirstSession ( void   )  const [inherited]

Query the first session associated with the service

Reimplemented in HfpService.

BtSession * GetNextSession ( BtSession sessp  )  const [inherited]

Enumerate the next session associated with the service


The documentation for this class was generated from the following files:
Generated on Fri Jan 9 05:58:38 2009 for libhfp by  doxygen 1.5.4