|
1 /* |
|
2 * Copyright (c) 2005-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: |
|
15 * Inteface used by Plugins for call-back to Accessory Server |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef BTACC_OBSERVER_H |
|
21 #define BTACC_OBSERVER_H |
|
22 |
|
23 #include <e32def.h> // TInt |
|
24 #include <btaccTypes.h> |
|
25 |
|
26 // FORWARD DECLARATION |
|
27 class TBTDevAddr; |
|
28 |
|
29 // DATA |
|
30 |
|
31 // CLASS DECLaRATION |
|
32 class MBTAccObserver |
|
33 { |
|
34 public: |
|
35 |
|
36 |
|
37 /** |
|
38 Called when an incoming response from a remote is ready to be picked up by |
|
39 RemCon. |
|
40 @param aAddr The address the response came from. |
|
41 @return Error. If KErrNone, RemCon is committing to collecting the message |
|
42 using GetResponse. If non-KErrNone, the message will be dropped by the |
|
43 bearer. |
|
44 */ |
|
45 virtual void NewAccessory(const TBTDevAddr& aAddr, TProfiles aType) = 0; |
|
46 |
|
47 /** |
|
48 Called when an incoming response from a remote is ready to be picked up by |
|
49 RemCon. |
|
50 @param aAddr The address the response came from. |
|
51 @return Error. If KErrNone, RemCon is committing to collecting the message |
|
52 using GetResponse. If non-KErrNone, the message will be dropped by the |
|
53 bearer. |
|
54 */ |
|
55 virtual void AccessoryDisconnected(const TBTDevAddr& aAddr, TProfiles aType) = 0; |
|
56 |
|
57 /** |
|
58 Called when an incoming response from a remote is ready to be picked up by |
|
59 RemCon. |
|
60 @param aAddr The address the response came from. |
|
61 @return Error. If KErrNone, RemCon is committing to collecting the message |
|
62 using GetResponse. If non-KErrNone, the message will be dropped by the |
|
63 bearer. |
|
64 */ |
|
65 virtual void RemoteAudioOpened(const TBTDevAddr& aAddr, TProfiles aType) = 0; |
|
66 |
|
67 /** |
|
68 Called when an incoming response from a remote is ready to be picked up by |
|
69 RemCon. |
|
70 @param aAddr The address the response came from. |
|
71 @return Error. If KErrNone, RemCon is committing to collecting the message |
|
72 using GetResponse. If non-KErrNone, the message will be dropped by the |
|
73 bearer. |
|
74 */ |
|
75 virtual void RemoteAudioClosed(const TBTDevAddr& aAddr, TProfiles aType) = 0; |
|
76 |
|
77 /** |
|
78 * Requests Accessory Framework or Dos to disable NREC |
|
79 * @param aBDAddress BT hardware address of the accessory. |
|
80 * @return None. |
|
81 */ |
|
82 virtual TInt DisableNREC(const TBTDevAddr& aAddr) = 0; |
|
83 |
|
84 /** |
|
85 * Called when a remote should be temporarily taken out of use. |
|
86 * @param aAddr The address of the remote. |
|
87 */ |
|
88 virtual void AccessoryTemporarilyUnavailable(const TBTDevAddr& aAddr, TProfiles aType) = 0; |
|
89 |
|
90 |
|
91 virtual TInt ConnectionStatus(const TBTDevAddr& aAddr) = 0; |
|
92 |
|
93 virtual TBool IsAvrcpVolCTSupported() = 0; |
|
94 virtual TBool IsAbsoluteVolumeSupported(const TBTDevAddr& aAddr) = 0; |
|
95 |
|
96 }; |
|
97 |
|
98 #endif // BTACC_OBSERVER_H |