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