|
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 #include "mcemediasink.h" |
|
20 #include "mcestreamobserver.h" |
|
21 #include "mcesession.h" |
|
22 #include "mcemanager.h" |
|
23 |
|
24 |
|
25 |
|
26 // ============================ MEMBER FUNCTIONS =============================== |
|
27 |
|
28 |
|
29 // ----------------------------------------------------------------------------- |
|
30 // CMceMediaSink::~CMceMediaSink |
|
31 // ----------------------------------------------------------------------------- |
|
32 // |
|
33 EXPORT_C CMceMediaSink::~CMceMediaSink() |
|
34 { |
|
35 } |
|
36 |
|
37 // ----------------------------------------------------------------------------- |
|
38 // CMceMediaSink::Type |
|
39 // ----------------------------------------------------------------------------- |
|
40 // |
|
41 EXPORT_C TMceSinkType CMceMediaSink::Type() const |
|
42 { |
|
43 return iType; |
|
44 } |
|
45 |
|
46 |
|
47 |
|
48 // ----------------------------------------------------------------------------- |
|
49 // CMceMediaSink::IsEnabled |
|
50 // ----------------------------------------------------------------------------- |
|
51 // |
|
52 EXPORT_C TBool CMceMediaSink::IsEnabled() const |
|
53 { |
|
54 return iIsEnabled; |
|
55 } |
|
56 |
|
57 |
|
58 // ----------------------------------------------------------------------------- |
|
59 // CMceMediaSink::CMceMediaSink |
|
60 // ----------------------------------------------------------------------------- |
|
61 // |
|
62 CMceMediaSink::CMceMediaSink() |
|
63 :iIsEnabled( ETrue ), |
|
64 iReferenceCount( 0 ) |
|
65 { |
|
66 } |
|
67 |
|
68 |
|
69 // ----------------------------------------------------------------------------- |
|
70 // CMceMediaSink::DoEnableL |
|
71 // ----------------------------------------------------------------------------- |
|
72 // |
|
73 void CMceMediaSink::DoEnableL() |
|
74 { |
|
75 iIsEnabled = ETrue; |
|
76 } |
|
77 |
|
78 |
|
79 // --------------------------------------- -------------------------------------- |
|
80 // CMceMediaSink::DoDisableL |
|
81 // ----------------------------------------------------------------------------- |
|
82 // |
|
83 void CMceMediaSink::DoDisableL() |
|
84 { |
|
85 iIsEnabled = EFalse; |
|
86 } |
|
87 |
|
88 |
|
89 // ----------------------------------------------------------------------------- |
|
90 // CMceMediaSink::InitializeL |
|
91 // ----------------------------------------------------------------------------- |
|
92 // |
|
93 void CMceMediaSink::InitializeL( CMceMediaStream& aParent ) |
|
94 { |
|
95 iStream = &aParent; |
|
96 } |
|
97 |
|
98 |
|
99 // ----------------------------------------------------------------------------- |
|
100 // CMceMediaSink::InitializeL |
|
101 // ----------------------------------------------------------------------------- |
|
102 // |
|
103 void CMceMediaSink::InitializeL( CMceManager* /*aManager*/ ) |
|
104 { |
|
105 // NOP |
|
106 } |
|
107 |
|
108 |
|
109 // ----------------------------------------------------------------------------- |
|
110 // CMceMediaSink::ReferenceCount |
|
111 // ----------------------------------------------------------------------------- |
|
112 // |
|
113 TInt& CMceMediaSink::ReferenceCount() |
|
114 { |
|
115 return iReferenceCount; |
|
116 } |
|
117 |