|
1 /* |
|
2 * Copyright (c) 2005 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 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MMCESTREAMOBSERVER_H |
|
20 #define MMCESTREAMOBSERVER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32std.h> |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class CMceMediaStream; |
|
27 class CMceMediaSink; |
|
28 class CMceMediaSource; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * An interface to be implemented by users of MCE if they wish to receive |
|
34 * media state events. |
|
35 * |
|
36 * This observer is set using CMceManager::SetMediaObserver function. |
|
37 * |
|
38 * @lib mceclient.lib |
|
39 */ |
|
40 class MMceStreamObserver |
|
41 { |
|
42 public: |
|
43 |
|
44 /** |
|
45 * The state of the stream has changed. |
|
46 * @param aStream, the stream that has changed. |
|
47 */ |
|
48 virtual void StreamStateChanged( |
|
49 CMceMediaStream& aStream) = 0; |
|
50 |
|
51 /** |
|
52 * The state of the sink has changed. |
|
53 * @param aStream, the stream that uses the sink. |
|
54 * @param aSink, the sink that has changed. |
|
55 */ |
|
56 virtual void StreamStateChanged( |
|
57 CMceMediaStream& aStream, |
|
58 CMceMediaSink& aSink) = 0; |
|
59 |
|
60 /** |
|
61 * The state of the source has changed. |
|
62 * @param aStream, the stream that uses the source. |
|
63 * @param aSource, the source that has changed. |
|
64 */ |
|
65 virtual void StreamStateChanged( |
|
66 CMceMediaStream& aStream, |
|
67 CMceMediaSource& aSource) = 0; |
|
68 |
|
69 }; |
|
70 |
|
71 #endif |