1 /* |
|
2 * Copyright (c) 2006-2007 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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef IRSTREAMSOURCEOBSERVER_H |
|
20 #define IRSTREAMSOURCEOBSERVER_H |
|
21 |
|
22 #include <e32def.h> |
|
23 |
|
24 class CIRMetaData; |
|
25 |
|
26 /** |
|
27 * This MClass is to be implemented by the observer of streamsource |
|
28 */ |
|
29 |
|
30 class MIRStreamSourceObserver |
|
31 { |
|
32 public: |
|
33 |
|
34 /** |
|
35 * MIRStreamSourceObserver::OpenComplete() |
|
36 * Called when connected to the channel server |
|
37 * To implement the fill of buffer |
|
38 */ |
|
39 virtual void OpenComplete() = 0; |
|
40 |
|
41 /** |
|
42 * MIRStreamSourceObserver::ErrorConnecting() |
|
43 * Called when there is an error when connecting to the channel server |
|
44 * @Param aErrorCode Indicates the type of error as described in |
|
45 * irstreamsourceerrors.h |
|
46 */ |
|
47 virtual void ErrorConnecting(TInt aErrorCode) = 0; |
|
48 |
|
49 /** |
|
50 * MIRStreamSourceObserver::PlayNow() |
|
51 * Called to indicate to the player to start playing |
|
52 */ |
|
53 virtual void PlayNow() = 0; |
|
54 |
|
55 /** |
|
56 * MIRStreamSourceObserver::Play() |
|
57 * Triggers the play after reconnecting to the channel |
|
58 */ |
|
59 virtual void Play() = 0; |
|
60 |
|
61 /** |
|
62 * MIRStreamSourceObserver::StopBuffering() |
|
63 * Called to indicate to the player to stop buffering |
|
64 */ |
|
65 virtual void StopBuffering() = 0; |
|
66 |
|
67 /** |
|
68 * MIRStreamSourceObserver::ConnectionEstablished(TInt aFeedValue) |
|
69 * Called to indicate that the connection to channel server is sucessful |
|
70 */ |
|
71 virtual void ConnectionEstablished() = 0 ; |
|
72 |
|
73 /** |
|
74 * MIRStreamSourceObserver::UpdateProgress() |
|
75 * Called to provide teh buffer values |
|
76 * @param aFeedValue used to pump the buffering value |
|
77 */ |
|
78 virtual void UpdateProgress(TInt aFeedValue) = 0; |
|
79 |
|
80 /** |
|
81 * Invoked when meta data is received. |
|
82 * |
|
83 * @param aMetaData The meta data that was received. |
|
84 */ |
|
85 virtual void HandleMetaDataReceivedL( const CIRMetaData& aMetaData ) = 0; |
|
86 |
|
87 // Added for ASF Player |
|
88 |
|
89 /** |
|
90 * MIRStreamSourceObserver::Asf_ErrorConnecting() |
|
91 * Called when there is an error when connecting to the channel server |
|
92 * @Param aErrorCode Indicates the type of error as described in |
|
93 * irstreamsourceerrors.h |
|
94 */ |
|
95 virtual void Asf_ErrorConnecting(TInt aErrorCode) = 0; |
|
96 |
|
97 /** |
|
98 * MIRStreamSourceObserver::Asf_ConnectionEstablished(TInt aFeedValue) |
|
99 * Called to indicate that the connection to channel server is sucessful |
|
100 */ |
|
101 virtual void Asf_ConnectionEstablished() = 0 ; |
|
102 |
|
103 /** |
|
104 * MIRStreamSourceObserver::Asf_UpdateProgress() |
|
105 * Called to provide teh buffer values |
|
106 * @param aFeedValue used to pump the buffering value |
|
107 */ |
|
108 virtual void Asf_UpdateProgress(TInt aFeedValue) = 0; |
|
109 |
|
110 /** |
|
111 * MIRStreamSourceObserver::Asf_HandleMetaDataReceivedL |
|
112 * Invoked when meta data is received. |
|
113 * |
|
114 * @param aMetaData The meta data that was received. |
|
115 */ |
|
116 virtual void Asf_HandleMetaDataReceivedL( const CIRMetaData& aMetaData ) = 0; |
|
117 }; |
|
118 |
|
119 #endif // IRSTREAMSOURCEOBSERVER_H |
|
120 |
|