|
1 /* |
|
2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: state Listening declaration. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_BTSACCONFIGURING_H |
|
20 #define C_BTSACCONFIGURING_H |
|
21 |
|
22 #include "btsacState.h" |
|
23 |
|
24 /** |
|
25 * The state Connected |
|
26 * |
|
27 * |
|
28 * @since S60 v3.1 |
|
29 */ |
|
30 class CBtsacConfiguring : public CBtsacState |
|
31 { |
|
32 |
|
33 public: |
|
34 |
|
35 static CBtsacConfiguring* NewL(CBTSAController& aParent, TSEID aLocalSEID, TSEID aRemoteSEID); |
|
36 |
|
37 virtual ~CBtsacConfiguring(); |
|
38 |
|
39 private: |
|
40 |
|
41 // From base class CBtsacState |
|
42 |
|
43 /** |
|
44 * From CBtsacState |
|
45 * Entry of this state. |
|
46 */ |
|
47 void EnterL(); |
|
48 |
|
49 /** |
|
50 * disconnect the connected accessory |
|
51 * |
|
52 * @since S60 v3.1 |
|
53 * @param aAddr the BD address of the accessory |
|
54 * @param aStatus On completion, will contain an error code |
|
55 */ |
|
56 void DisconnectL(); |
|
57 |
|
58 /** |
|
59 * From CBtsacState |
|
60 * Open audio link to BT accessory |
|
61 * |
|
62 * @since S60 v3.1 |
|
63 * @param aAddr the BD address of the accessory |
|
64 * @param aStatus On completion, will contain an error code |
|
65 */ |
|
66 void OpenAudioLinkL(const TBTDevAddr& aAddr); |
|
67 |
|
68 |
|
69 /** |
|
70 * From CBtsacState |
|
71 * Cancel the outstanding connecting operation |
|
72 * |
|
73 * @since S60 v3.1 |
|
74 */ |
|
75 void CancelConnectL(); |
|
76 |
|
77 |
|
78 // From class MInternalGavdpUser |
|
79 void GAVDP_BearerReady(RSocket aSocket, const TAvdtpSockAddr& aAddress); |
|
80 TInt GAVDP_ConfigurationIndication(TAvdtpServiceCapability* aCapability); |
|
81 TInt GAVDP_ConfigurationEndIndication(); |
|
82 TInt GAVDP_StartIndication(TSEID aLocalSEID); |
|
83 |
|
84 void CancelActionL(TInt aError, TBTSACGavdpResetReason aGavdpReset); |
|
85 void HandleGavdpErrorL(TInt aError); |
|
86 |
|
87 private: |
|
88 |
|
89 CBtsacConfiguring(CBTSAController& aParent, TSEID aLocalSEID, TSEID aRemoteSEID); |
|
90 |
|
91 private: |
|
92 |
|
93 TSEID iLocalSEID; |
|
94 TSEID iRemoteSEID; |
|
95 TBool iSEPFound; |
|
96 TInt iRemoteSEPIndex; |
|
97 TAudioOpenedBy iAudioOpenedBy; |
|
98 }; |
|
99 |
|
100 #endif // C_BTSACCONFIGURING_H |
|
101 |