author | vnuitven <> |
Mon, 06 Sep 2010 18:50:40 +0530 | |
branch | rcs |
changeset 50 | 1d8943dd8be6 |
parent 49 | 64c62431ac08 |
permissions | -rw-r--r-- |
49 | 1 |
/* |
50
1d8943dd8be6
changed copy right year to 2010 for all newly added files
vnuitven <>
parents:
49
diff
changeset
|
2 |
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
49 | 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 "mcecomexternalsource.h" |
|
22 |
#include "mceexternalsource.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 |
// CMceComExternalSink::NewL |
|
40 |
// ----------------------------------------------------------------------------- |
|
41 |
// |
|
42 |
CMceComExternalSource* CMceComExternalSource::NewL() |
|
43 |
{ |
|
44 |
CMceComExternalSource* self = NewLC(); |
|
45 |
CleanupStack::Pop( self ); |
|
46 |
return self; |
|
47 |
} |
|
48 |
||
49 |
// ----------------------------------------------------------------------------- |
|
50 |
// CMceComExternalSource::NewLC |
|
51 |
// ----------------------------------------------------------------------------- |
|
52 |
// |
|
53 |
CMceComExternalSource* CMceComExternalSource::NewLC() |
|
54 |
{ |
|
55 |
CMceComExternalSource* self = new (ELeave) CMceComExternalSource(); |
|
56 |
CleanupStack::PushL( self ); |
|
57 |
return self; |
|
58 |
} |
|
59 |
||
60 |
// ----------------------------------------------------------------------------- |
|
61 |
// CMceComExternalSource::~CMceComExternalSource |
|
62 |
// ----------------------------------------------------------------------------- |
|
63 |
// |
|
64 |
CMceComExternalSource::~CMceComExternalSource() |
|
65 |
{ |
|
66 |
} |
|
67 |
||
68 |
// ----------------------------------------------------------------------------- |
|
69 |
// CMceComExternalSource::CMceComExternalSource |
|
70 |
// ----------------------------------------------------------------------------- |
|
71 |
// |
|
72 |
CMceComExternalSource::CMceComExternalSource() |
|
73 |
: CMceComMediaSource( KMceExternalSource ) |
|
74 |
{ |
|
75 |
} |
|
76 |
||
77 |
// ----------------------------------------------------------------------------- |
|
78 |
// CMceComExternalSource::CloneL |
|
79 |
// ----------------------------------------------------------------------------- |
|
80 |
// |
|
81 |
CMceComMediaSource* CMceComExternalSource::CloneL() |
|
82 |
{ |
|
83 |
CMceComExternalSource* copy = new (ELeave) CMceComExternalSource(); |
|
84 |
Mem::Copy( copy, this, sizeof(CMceComExternalSource) ); |
|
85 |
return copy; |
|
86 |
} |
|
87 |
||
88 |
||
89 |
// ----------------------------------------------------------------------------- |
|
90 |
// CMceComExternalSource::InternalizeFlatL |
|
91 |
// ----------------------------------------------------------------------------- |
|
92 |
// |
|
93 |
void CMceComExternalSource::InternalizeFlatL( RReadStream& aReadStream ) |
|
94 |
{ |
|
95 |
CMceComMediaSource::InternalizeFlatL( aReadStream ); |
|
96 |
} |
|
97 |
||
98 |
// ----------------------------------------------------------------------------- |
|
99 |
// CMceComExternalSource::ExternalizeFlatL |
|
100 |
// ----------------------------------------------------------------------------- |
|
101 |
// |
|
102 |
void CMceComExternalSource::ExternalizeFlatL( RWriteStream& aWriteStream ) |
|
103 |
{ |
|
104 |
CMceComMediaSource::ExternalizeFlatL( aWriteStream ); |
|
105 |
} |
|
106 |
||
107 |
#ifdef MCE_COMMON_SERVER_SIDE |
|
108 |
||
109 |
// ----------------------------------------------------------------------------- |
|
110 |
// CMceComExternalSource::MccType |
|
111 |
// ----------------------------------------------------------------------------- |
|
112 |
// |
|
113 |
const TUid CMceComExternalSource::MccType() |
|
114 |
{ |
|
115 |
return KUidMccAnySource; |
|
116 |
} |
|
117 |
||
118 |
// ----------------------------------------------------------------------------- |
|
119 |
// CMceComMsrpSource::PrepareL |
|
120 |
// ----------------------------------------------------------------------------- |
|
121 |
// |
|
122 |
void CMceComExternalSource::PrepareL() |
|
123 |
{ |
|
124 |
//NOP // Not required as the data path for message stream will be handled by applications |
|
125 |
} |
|
126 |
||
127 |
#endif//MCE_COMMON_SERVER_SIDE |
|
128 |