equal
deleted
inserted
replaced
22 #define MCCANYSOURCE_H |
22 #define MCCANYSOURCE_H |
23 |
23 |
24 #include <e32std.h> |
24 #include <e32std.h> |
25 #include "mccdatasource.h" |
25 #include "mccdatasource.h" |
26 #include "mmccevents.h" |
26 #include "mmccevents.h" |
|
27 #include "mccdatareceiver.h" |
|
28 #include "mccdatareceiverobserver.h" |
27 |
29 |
28 // FORWARD DECLARATIONS |
30 // FORWARD DECLARATIONS |
29 |
31 |
30 /** |
32 /** |
31 * |
33 * |
32 */ |
34 */ |
33 class CMccAnySource: public CMccDataSource |
35 class CMccAnySource: public CMccDataSource, public MMccDataReceiverObserver |
34 { |
36 { |
35 |
37 |
36 public: // Methods called internally or by the controller |
38 public: // Methods called internally or by the controller |
37 |
39 |
38 /** |
40 /** |
206 |
208 |
207 /** |
209 /** |
208 * From MDataSource |
210 * From MDataSource |
209 */ |
211 */ |
210 void NegotiateSourceL( MDataSink& aDataSink ); |
212 void NegotiateSourceL( MDataSink& aDataSink ); |
|
213 |
|
214 public: |
|
215 |
|
216 void DataReceivedL( const TDesC8& aData ); |
211 |
217 |
212 private: |
218 private: |
213 |
219 |
214 CMccAnySource(); |
220 CMccAnySource(); |
215 |
221 |
220 |
226 |
221 MAsyncEventHandler* iAsyncEventHandler; |
227 MAsyncEventHandler* iAsyncEventHandler; |
222 TBool iPaused; |
228 TBool iPaused; |
223 TFourCC iFourCC; |
229 TFourCC iFourCC; |
224 |
230 |
|
231 CMccDataReceiver* iDataReceiver; |
|
232 CMMFBuffer* iBufferToBeFilled; |
|
233 MDataSink* iConsumer; |
|
234 |
225 #ifdef EUNIT_TEST |
235 #ifdef EUNIT_TEST |
226 friend class UT_CMccAnySource; |
236 friend class UT_CMccAnySource; |
227 #endif |
237 #endif |
228 |
238 |
229 }; |
239 }; |