|
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: Definition of the ProgDL source reader active object class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef SINKQUEUEITEM_H |
|
20 #define SINKQUEUEITEM_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 |
|
25 class CMMFBuffer; |
|
26 class CMMFDataBuffer; |
|
27 class MMultimediaDataSourceObserver; |
|
28 class MDataSink; |
|
29 |
|
30 class CSinkQueueItem : public CBase |
|
31 { |
|
32 public: // Constructors and destructor |
|
33 static CSinkQueueItem* NewL( |
|
34 CMMFBuffer* aBuffer, |
|
35 MMultimediaDataSourceObserver* aMMDSObserver, |
|
36 MDataSink* aConsumer ); |
|
37 virtual ~CSinkQueueItem(); |
|
38 |
|
39 CMMFDataBuffer* Buffer(); |
|
40 MMultimediaDataSourceObserver* Observer(); |
|
41 // This exists for legacy support |
|
42 MDataSink* Consumer(); |
|
43 |
|
44 private: |
|
45 CSinkQueueItem( |
|
46 CMMFBuffer* aBuffer, |
|
47 MMultimediaDataSourceObserver* aMMDSObserver, |
|
48 MDataSink* aConsumer ); |
|
49 void ConstructL(); |
|
50 |
|
51 public: |
|
52 // next item |
|
53 TSglQueLink* iLink; |
|
54 |
|
55 private: |
|
56 // Buffer to be sent to server-side |
|
57 CMMFBuffer* iBuffer; |
|
58 // Reference to Multimedia data source observer |
|
59 MMultimediaDataSourceObserver* iMMDSObserver; |
|
60 // Reference to MDataSink |
|
61 MDataSink* iConsumer; |
|
62 }; |
|
63 |
|
64 #endif // SINKQUEUEITEM_H |
|
65 |
|
66 // End of File |