1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 // |
7 // |
8 // Initial Contributors: |
8 // Initial Contributors: |
9 // Nokia Corporation - initial contribution. |
9 // Nokia Corporation - initial contribution. |
10 // |
10 // |
11 // Contributors: |
11 // Contributors: |
68 */ |
68 */ |
69 { |
69 { |
70 public: |
70 public: |
71 IMPORT_C TBTCommPortSettings(const TDesC& aName, TUUID aUUID,TUint32 aBTCommPort, TUint8 aSecurityLevel, TBTDevAddr aBDAddr); |
71 IMPORT_C TBTCommPortSettings(const TDesC& aName, TUUID aUUID,TUint32 aBTCommPort, TUint8 aSecurityLevel, TBTDevAddr aBDAddr); |
72 IMPORT_C TBTCommPortSettings(); |
72 IMPORT_C TBTCommPortSettings(); |
73 IMPORT_C const TDesC& Name() const; ///< Returns the name of the service. |
73 IMPORT_C const TDesC& Name() const; //< Returns the name of the service. |
74 IMPORT_C TUUID UUID() const; ///< Returns the unique id of the service. |
74 IMPORT_C TUUID UUID() const; //< Returns the unique id of the service. |
75 IMPORT_C TBTDevAddr BDAddr() const; ///< Returns the address of the default device associated with the service. |
75 IMPORT_C TBTDevAddr BDAddr() const; //< Returns the address of the default device associated with the service. |
76 IMPORT_C TUint32 Port() const; |
76 IMPORT_C TUint32 Port() const; |
77 IMPORT_C TBool IsSecuritySet() const; |
77 IMPORT_C TBool IsSecuritySet() const; |
78 IMPORT_C TBool IsEncryptionSet() const; |
78 IMPORT_C TBool IsEncryptionSet() const; |
79 IMPORT_C TBool IsAuthenticationOnlySet() const; |
79 IMPORT_C TBool IsAuthenticationOnlySet() const; |
80 IMPORT_C void SetName(const TDesC& aName); ///< Sets the name of the service. |
80 IMPORT_C void SetName(const TDesC& aName); //< Sets the name of the service. |
81 IMPORT_C void SetUUID(TUUID aUUID); ///< Sets the unique id of the service. |
81 IMPORT_C void SetUUID(TUUID aUUID); //< Sets the unique id of the service. |
82 IMPORT_C void SetPort(TUint32 aBTCommPort); |
82 IMPORT_C void SetPort(TUint32 aBTCommPort); |
83 IMPORT_C void SetAuthentication(); |
83 IMPORT_C void SetAuthentication(); |
84 IMPORT_C void SetAuthenticationAndEncryption(); // enforces authentication as well |
84 IMPORT_C void SetAuthenticationAndEncryption(); // enforces authentication as well |
85 IMPORT_C void SetNoSecurity(); // resets the above two |
85 IMPORT_C void SetNoSecurity(); // resets the above two |
86 IMPORT_C void SetBTAddr(TBTDevAddr aBDAddr); ///< Sets the address of the default device associated with the service. |
86 IMPORT_C void SetBTAddr(TBTDevAddr aBDAddr); //< Sets the address of the default device associated with the service. |
87 |
87 |
88 IMPORT_C TUint8 SecurityLevel() const; |
88 IMPORT_C TUint8 SecurityLevel() const; |
89 IMPORT_C void SetSecurityLevel(TUint8 aLevel); |
89 IMPORT_C void SetSecurityLevel(TUint8 aLevel); |
90 private: |
90 private: |
91 TBuf<32> iName; // The name of the service |
91 TBuf<32> iName; // The name of the service |