|
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 Suspended declaration. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_BTSACSUSPENDED_H |
|
20 #define C_BTSACSUSPENDED_H |
|
21 |
|
22 #include "btsacState.h" |
|
23 |
|
24 /** |
|
25 * The state Configured |
|
26 * |
|
27 * |
|
28 * @since S60 v3.1 |
|
29 */ |
|
30 class CBtsacSuspended : public CBtsacState |
|
31 { |
|
32 |
|
33 public: |
|
34 |
|
35 static CBtsacSuspended* NewL(CBTSAController& aParent); |
|
36 |
|
37 virtual ~CBtsacSuspended(); |
|
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 * Cancels the open audio link request |
|
70 * |
|
71 * @since S60 v3.1 |
|
72 * @param aAddr the BD address of the accessory |
|
73 * @param aStatus On completion, will contain an error code |
|
74 */ |
|
75 void CancelOpenAudioL(const TBTDevAddr& aAddr); |
|
76 |
|
77 |
|
78 // From class MInternalGavdpUser |
|
79 void GAVDP_StartStreamsConfirm(); |
|
80 TInt GAVDP_StartIndication(TSEID aSEID); |
|
81 void GAVDP_ReleaseIndication(TSEID aSEID); |
|
82 |
|
83 void CancelActionL(TInt aError, TBTSACGavdpResetReason aGavdpReset); |
|
84 void HandleGavdpErrorL(TInt aError); |
|
85 |
|
86 private: |
|
87 |
|
88 CBtsacSuspended(CBTSAController& aParent); |
|
89 |
|
90 TBool iOpenAudioReq; |
|
91 }; |
|
92 |
|
93 #endif // C_BTSACSUSPENDED_H |
|
94 |