1 /* |
|
2 * Copyright (c) 2006 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 // USER INCLUDES |
|
21 |
|
22 #include "musengreceivesession.h" |
|
23 #include "musengreceivesessionobserver.h" |
|
24 //#include "musengmceutils.h" |
|
25 //#include "muslogger.h" |
|
26 |
|
27 // SYSTEM INCLUDES |
|
28 #include <mcemanager.h> |
|
29 #include <mceinsession.h> |
|
30 #include <mceaudiostream.h> |
|
31 #include <mcevideostream.h> |
|
32 #include <mcemediasource.h> |
|
33 #include <mcertpsource.h> |
|
34 #include <mcedisplaysink.h> |
|
35 #include <mcespeakersink.h> |
|
36 |
|
37 #include <utf.h> |
|
38 |
|
39 |
|
40 const TInt KMaxUriLength = 512; |
|
41 |
|
42 // ----------------------------------------------------------------------------- |
|
43 // |
|
44 // ----------------------------------------------------------------------------- |
|
45 // |
|
46 CMusEngReceiveSession::~CMusEngReceiveSession() |
|
47 { |
|
48 } |
|
49 |
|
50 |
|
51 // ----------------------------------------------------------------------------- |
|
52 // |
|
53 // ----------------------------------------------------------------------------- |
|
54 // |
|
55 EXPORT_C CMusEngReceiveSession* CMusEngReceiveSession::NewL( |
|
56 const TRect& aRect, |
|
57 MMusEngReceiveSessionObserver* aSessionObserver) |
|
58 { |
|
59 CMusEngReceiveSession* self = |
|
60 new( ELeave ) CMusEngReceiveSession( aSessionObserver, aRect ); |
|
61 CleanupStack::PushL( self ); |
|
62 self->ConstructL(); |
|
63 CleanupStack::Pop( self ); |
|
64 return self; |
|
65 } |
|
66 |
|
67 |
|
68 // ----------------------------------------------------------------------------- |
|
69 // |
|
70 // ----------------------------------------------------------------------------- |
|
71 // |
|
72 EXPORT_C void CMusEngReceiveSession::AcceptInvitationL( |
|
73 const TBool& aAccept ) |
|
74 { |
|
75 iAccepInvitation = aAccept; |
|
76 } |
|
77 |
|
78 |
|
79 // ----------------------------------------------------------------------------- |
|
80 // |
|
81 // ----------------------------------------------------------------------------- |
|
82 // |
|
83 EXPORT_C void CMusEngReceiveSession::SetSessionObserver( |
|
84 MMusEngReceiveSessionObserver* aSessionObserver) |
|
85 { |
|
86 iSessionObserver = aSessionObserver; |
|
87 } |
|
88 |
|
89 |
|
90 |
|
91 // ----------------------------------------------------------------------------- |
|
92 // |
|
93 // ----------------------------------------------------------------------------- |
|
94 // |
|
95 TBool CMusEngReceiveSession::IsRtpcInactivityTimoutSupported() |
|
96 { |
|
97 return ETrue; |
|
98 } |
|
99 |
|
100 |
|
101 // ----------------------------------------------------------------------------- |
|
102 // |
|
103 // ----------------------------------------------------------------------------- |
|
104 // |
|
105 CMusEngReceiveSession::CMusEngReceiveSession( |
|
106 MMusEngReceiveSessionObserver* aSessionObserver, |
|
107 const TRect& aRect ) |
|
108 : CMusEngMceSession( aRect ) |
|
109 { |
|
110 } |
|
111 |
|
112 |
|
113 // ----------------------------------------------------------------------------- |
|
114 // |
|
115 // ----------------------------------------------------------------------------- |
|
116 // |
|
117 void CMusEngReceiveSession::ConstructL() |
|
118 { |
|
119 } |
|
120 |
|
121 |
|
122 |
|
123 // ----------------------------------------------------------------------------- |
|
124 // |
|
125 // ----------------------------------------------------------------------------- |
|
126 // |
|
127 MMusEngReceiveSessionObserver* CMusEngReceiveSession::ReceiveSessionObserver() |
|
128 { |
|
129 } |
|
130 |
|