Location:
btdefcommport.h
Link against: btmanclient.lib
class TBTCommPortSettings;
Used to configure a virtual serial port. The very least that is needed to configure a virtual serial port is the Bluetooth device address of the remote, and the SDP UUID to use on that device.
This info can then be saved by the registry and retrieved when needed.
Defined in TBTCommPortSettings
:
BDAddr()
, IsAuthenticationOnlySet()
, IsEncryptionSet()
, IsSecuritySet()
, Name()
, Port()
, SecurityLevel()
, SetAuthentication()
, SetAuthenticationAndEncryption()
, SetBTAddr()
, SetName()
, SetNoSecurity()
, SetPort()
, SetSecurityLevel()
, SetUUID()
, TBTCommPortSettings()
, TBTCommPortSettings()
, UUID()
IMPORT_C TBTCommPortSettings(const TDesC &aName, TUUID aUUID, TUint32 aBTCommPort, TUint8 aSecurityLevel, TBTDevAddr aBDAddr);
Constructor
|
IMPORT_C const TDesC &Name() const;
Returns the name of the service.
Getter for the name of the virtual serial port
|
IMPORT_C TUUID UUID() const;
Returns the unique id of the service.
Getter for the UUID of the virtual serial port
|
IMPORT_C TBTDevAddr BDAddr() const;
Returns the address of the default device associated with the service.
Getter for the remote device address of the virtual serial port
|
IMPORT_C TUint32 Port() const;
Getter for the port number of the virtual serial port
|
IMPORT_C TBool IsSecuritySet() const;
Getter to return whether any security level is set
|
IMPORT_C TBool IsEncryptionSet() const;
Getter to return whether encryption has been set for the virtual serial port connection
|
IMPORT_C TBool IsAuthenticationOnlySet() const;
Getter to return whether only authentication has been set for the virtual serial port connection
|
IMPORT_C void SetName(const TDesC &aName);
Sets the name of the service.
Setter for the name of the virtual serial port
|
IMPORT_C void SetUUID(TUUID aUUID);
Sets the unique id of the service.
Setter for the UUID of the virtual serial port
|
IMPORT_C void SetPort(TUint32 aBTCommPort);
Setter for the port number of the virtual serial port
|
IMPORT_C void SetAuthentication();
Setter to request authentication of the virtual serial connection when connection occurs
IMPORT_C void SetAuthenticationAndEncryption();
Setter to request authentication and encryption of the virtual serial connection when connection occurs
IMPORT_C void SetBTAddr(TBTDevAddr aBDAddr);
Sets the address of the default device associated with the service.
Setter for the remote device address of the virtual serial port
|
IMPORT_C TUint8 SecurityLevel() const;
Getter for the security level of the virtual serial port
|
IMPORT_C void SetSecurityLevel(TUint8 aLevel);
Sets the security level for this default service.
|