|
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 |
|
20 |
|
21 #include "mcecomexternalsink.h" |
|
22 #include "mceexternalsink.h" |
|
23 #include "mcecommediastream.h" |
|
24 #include "mcecomsession.h" |
|
25 |
|
26 #ifdef MCE_COMMON_SERVER_SIDE |
|
27 |
|
28 #include <mmccInterface.h> |
|
29 #include "mcesdpsession.h" |
|
30 #include "mcemediamanager.h" |
|
31 |
|
32 #endif//MCE_COMMON_SERVER_SIDE |
|
33 |
|
34 // ============================ MEMBER FUNCTIONS =============================== |
|
35 |
|
36 |
|
37 |
|
38 // ----------------------------------------------------------------------------- |
|
39 // CMceComAvSink::NewL |
|
40 // ----------------------------------------------------------------------------- |
|
41 // |
|
42 CMceComExternalSink* CMceComExternalSink::NewL() |
|
43 { |
|
44 CMceComExternalSink* self = NewLC(); |
|
45 CleanupStack::Pop( self ); |
|
46 return self; |
|
47 } |
|
48 |
|
49 // ----------------------------------------------------------------------------- |
|
50 // CMceComExternalSink::NewLC |
|
51 // ----------------------------------------------------------------------------- |
|
52 // |
|
53 CMceComExternalSink* CMceComExternalSink::NewLC() |
|
54 { |
|
55 CMceComExternalSink* self = new (ELeave) CMceComExternalSink(); |
|
56 CleanupStack::PushL( self ); |
|
57 return self; |
|
58 } |
|
59 |
|
60 // ----------------------------------------------------------------------------- |
|
61 // CMceComExternalSink::~CMceComExternalSink |
|
62 // ----------------------------------------------------------------------------- |
|
63 // |
|
64 CMceComExternalSink::~CMceComExternalSink() |
|
65 { |
|
66 } |
|
67 |
|
68 // ----------------------------------------------------------------------------- |
|
69 // CMceComExternalSink::CMceComExternalSink |
|
70 // ----------------------------------------------------------------------------- |
|
71 // |
|
72 CMceComExternalSink::CMceComExternalSink() |
|
73 : CMceComMediaSink( KMceExternalSink ) |
|
74 { |
|
75 } |
|
76 |
|
77 |
|
78 // ----------------------------------------------------------------------------- |
|
79 // CMceComExternalSink::CloneL |
|
80 // ----------------------------------------------------------------------------- |
|
81 // |
|
82 CMceComMediaSink* CMceComExternalSink::CloneL() |
|
83 { |
|
84 CMceComExternalSink* copy = new (ELeave) CMceComExternalSink(); |
|
85 Mem::Copy( copy, this, sizeof(CMceComExternalSink) ); |
|
86 copy->Zero(); |
|
87 return copy; |
|
88 |
|
89 } |
|
90 |
|
91 |
|
92 // ----------------------------------------------------------------------------- |
|
93 // CMceComExternalSink::InternalizeFlatL |
|
94 // ----------------------------------------------------------------------------- |
|
95 // |
|
96 void CMceComExternalSink::InternalizeFlatL( RReadStream& aReadStream ) |
|
97 { |
|
98 CMceComMediaSink::InternalizeFlatL( aReadStream ); |
|
99 } |
|
100 |
|
101 // ----------------------------------------------------------------------------- |
|
102 // CMceComExternalSink::ExternalizeFlatL |
|
103 // ----------------------------------------------------------------------------- |
|
104 // |
|
105 void CMceComExternalSink::ExternalizeFlatL( RWriteStream& aWriteStream ) |
|
106 { |
|
107 CMceComMediaSink::ExternalizeFlatL( aWriteStream ); |
|
108 } |
|
109 |
|
110 #ifdef MCE_COMMON_SERVER_SIDE |
|
111 |
|
112 // ----------------------------------------------------------------------------- |
|
113 // CMceComExternalSink::MccType |
|
114 // ----------------------------------------------------------------------------- |
|
115 // |
|
116 const TUid CMceComExternalSink::MccType() |
|
117 { |
|
118 return KUidMccAnySink; |
|
119 } |
|
120 |
|
121 |
|
122 // ----------------------------------------------------------------------------- |
|
123 // CMceComExternalSink::PrepareL |
|
124 // ----------------------------------------------------------------------------- |
|
125 // |
|
126 void CMceComExternalSink::PrepareL() |
|
127 { |
|
128 //NOP // Not required as the data path for message stream will be handled by applications |
|
129 } |
|
130 |
|
131 #endif//MCE_COMMON_SERVER_SIDE |
|
132 |