|
1 /* |
|
2 * Copyright (c) 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 the License "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: Base class for all packet sinks* |
|
15 */ |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDES |
|
21 #include "CCRPacketSinkBase.h" |
|
22 |
|
23 // CONSTANTS |
|
24 // None |
|
25 |
|
26 // ============================ MEMBER FUNCTIONS =============================== |
|
27 |
|
28 // ----------------------------------------------------------------------------- |
|
29 // CCRPacketSinkBase::CCRPacketSinkBase |
|
30 // C++ default constructor can NOT contain any code, that might leave. |
|
31 // ----------------------------------------------------------------------------- |
|
32 // |
|
33 CCRPacketSinkBase::CCRPacketSinkBase( |
|
34 CCRStreamingSession& aSession, |
|
35 CCRStreamingSession::TCRSinkId aSinkId ) |
|
36 : iOwningSession( aSession ), |
|
37 iSinkId( aSinkId ) |
|
38 { |
|
39 // None |
|
40 } |
|
41 |
|
42 // ----------------------------------------------------------------------------- |
|
43 // CCRPacketSinkBase::CCRPacketSinkBase |
|
44 // Destructor. |
|
45 // ----------------------------------------------------------------------------- |
|
46 // |
|
47 CCRPacketSinkBase::~CCRPacketSinkBase() |
|
48 { |
|
49 iBuffer = NULL; // Does not delete and it is right thing. |
|
50 } |
|
51 |
|
52 // ----------------------------------------------------------------------------- |
|
53 // CCRPacketSinkBase::SetBuffer |
|
54 // |
|
55 // ----------------------------------------------------------------------------- |
|
56 // |
|
57 void CCRPacketSinkBase::SetBuffer( CCRPacketBuffer* aBuffer ) |
|
58 { |
|
59 iBuffer = aBuffer; |
|
60 } |
|
61 |
|
62 // ----------------------------------------------------------------------------- |
|
63 // CCRPacketSinkBase::BufferResetDone |
|
64 // |
|
65 // ----------------------------------------------------------------------------- |
|
66 // |
|
67 void CCRPacketSinkBase::BufferResetDone() |
|
68 { |
|
69 // None |
|
70 } |
|
71 |
|
72 // ----------------------------------------------------------------------------- |
|
73 // CCRPacketSinkBase::StatusChanged |
|
74 // |
|
75 // ----------------------------------------------------------------------------- |
|
76 // |
|
77 void CCRPacketSinkBase::StatusChanged( |
|
78 MCRPacketSource::TCRPacketSourceState /*aNewState*/ ) |
|
79 { |
|
80 // None |
|
81 } |
|
82 |
|
83 // ----------------------------------------------------------------------------- |
|
84 // CCRPacketSinkBase::Id |
|
85 // |
|
86 // ----------------------------------------------------------------------------- |
|
87 // |
|
88 CCRStreamingSession::TCRSinkId CCRPacketSinkBase::Id( void ) const |
|
89 { |
|
90 return iSinkId; |
|
91 } |
|
92 |
|
93 // ----------------------------------------------------------------------------- |
|
94 // CCRPacketSinkBase::Pause |
|
95 // ----------------------------------------------------------------------------- |
|
96 // |
|
97 TInt CCRPacketSinkBase::Pause() |
|
98 { |
|
99 return KErrCompletion; |
|
100 } |
|
101 |
|
102 // ----------------------------------------------------------------------------- |
|
103 // CCRPacketSinkBase::Restore |
|
104 // ----------------------------------------------------------------------------- |
|
105 // |
|
106 TInt CCRPacketSinkBase::Restore() |
|
107 { |
|
108 return KErrCompletion; |
|
109 } |
|
110 |
|
111 // ----------------------------------------------------------------------------- |
|
112 // CCRPacketSinkBase::Stop |
|
113 // ----------------------------------------------------------------------------- |
|
114 // |
|
115 void CCRPacketSinkBase::Stop() |
|
116 { |
|
117 // None |
|
118 } |
|
119 |
|
120 // ----------------------------------------------------------------------------- |
|
121 // CCRPacketSinkBase::SetSeqAndTS |
|
122 // |
|
123 // ----------------------------------------------------------------------------- |
|
124 // |
|
125 void CCRPacketSinkBase::SetSeqAndTS( |
|
126 TUint& /*aAudioSeq*/, |
|
127 TUint& /*aAudioTS*/, |
|
128 TUint& /*aVideoSeq*/, |
|
129 TUint& /*aVideoTS*/ ) |
|
130 { |
|
131 // None |
|
132 } |
|
133 |
|
134 // ----------------------------------------------------------------------------- |
|
135 // CCRPacketSinkBase::SetRange |
|
136 // |
|
137 // ----------------------------------------------------------------------------- |
|
138 // |
|
139 void CCRPacketSinkBase::SetRange( TReal /*aLower*/, TReal /*aUpper*/ ) |
|
140 { |
|
141 // None |
|
142 } |
|
143 |
|
144 // End of File |