|
1 /* |
|
2 * Copyright (c) 2007,2009 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: Observer for generic upnp volume state machine |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_UPNPVOLUMESTATEMACHINEOBSERVER_H |
|
20 #define C_UPNPVOLUMESTATEMACHINEOBSERVER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 |
|
25 |
|
26 /** |
|
27 * Class for receiving callbacks from |
|
28 * CUPnPVolumeStateMachine |
|
29 * |
|
30 * @lib upnpavcontrollerhelper.lib |
|
31 */ |
|
32 class MUpnpVolumeStateMachineObserver |
|
33 { |
|
34 |
|
35 public: |
|
36 |
|
37 /** |
|
38 * Indicates state machine has been synchronised with the renderer |
|
39 * @param aError error that occurred during sync |
|
40 */ |
|
41 virtual void VolumeSyncReady( TInt aError ) = 0; |
|
42 |
|
43 /** |
|
44 * Indicates volume state has been changed |
|
45 * either by request or spontanelously. |
|
46 * @param aError the error code |
|
47 * @param aRenderingSession for playback commands |
|
48 * @param aUserOriented ETrue if this responds to a request |
|
49 */ |
|
50 virtual void VolumeChanged( |
|
51 TInt aError, TInt aVolume, TBool aUserOriented ) = 0; |
|
52 |
|
53 /** |
|
54 * Indicates mute state has been changed |
|
55 * either by request or spontanelously. |
|
56 * @param aError the error code |
|
57 * @param aMuteState current mute state |
|
58 * @param aUserOriented ETrue if this responds to a request |
|
59 */ |
|
60 virtual void MuteChanged( |
|
61 TInt aError, TBool aMuteState, TBool aUserOriented ) = 0; |
|
62 |
|
63 }; |
|
64 |
|
65 |
|
66 #endif // C_UPNPVOLUMESTATEMACHINEOBSERVER_H |
|
67 |