|
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 // USER |
|
20 #include "musengmceoutsession.h" |
|
21 #include "musenglivesessionobserver.h" |
|
22 //#include "mussipprofilehandler.h" |
|
23 |
|
24 // SYSTEM |
|
25 /* |
|
26 #include <mcemediastream.h> |
|
27 #include <mceoutsession.h> |
|
28 #include <mcevideostream.h> |
|
29 #include <mcemediasource.h> |
|
30 #include <mcefilesource.h> |
|
31 #include <mcemediasink.h> |
|
32 #include <mcertpsink.h> |
|
33 #include <mcespeakersink.h> |
|
34 #include <mcedisplaysink.h> |
|
35 |
|
36 #include <sipprofile.h> |
|
37 #include <uri8.h> |
|
38 #include <charconv.h> |
|
39 #include <f32file.h> |
|
40 #include <utf.h> |
|
41 */ |
|
42 const TInt KMaxUriLength = 512; |
|
43 _LIT8( KMusEngAtSign, "@" ); |
|
44 _LIT8( KMusEngPlusSign, "+" ); |
|
45 _LIT8( KMusEngSipPrefix, "sip:" ); |
|
46 _LIT8( KMusEngTelPrefix, "tel:" ); |
|
47 |
|
48 // ----------------------------------------------------------------------------- |
|
49 // |
|
50 // ----------------------------------------------------------------------------- |
|
51 // |
|
52 CMusEngMceOutSession::~CMusEngMceOutSession() |
|
53 { |
|
54 } |
|
55 |
|
56 |
|
57 // ----------------------------------------------------------------------------- |
|
58 // |
|
59 // ----------------------------------------------------------------------------- |
|
60 // |
|
61 EXPORT_C void CMusEngMceOutSession::InviteL( const TDesC& aRecipient ) |
|
62 { |
|
63 iInvited = ETrue; |
|
64 User::LeaveIfError( iErrorCode ); |
|
65 |
|
66 } |
|
67 |
|
68 |
|
69 // ----------------------------------------------------------------------------- |
|
70 // |
|
71 // ----------------------------------------------------------------------------- |
|
72 // |
|
73 EXPORT_C void CMusEngMceOutSession::CancelInviteL() |
|
74 { |
|
75 iInvited = EFalse; |
|
76 User::LeaveIfError( iErrorCode ); |
|
77 } |
|
78 |
|
79 |
|
80 // ----------------------------------------------------------------------------- |
|
81 // Handle MCE session termination. Called by MCE observer function of the |
|
82 // base class. |
|
83 // ----------------------------------------------------------------------------- |
|
84 // |
|
85 |
|
86 // ----------------------------------------------------------------------------- |
|
87 // |
|
88 // ----------------------------------------------------------------------------- |
|
89 // |
|
90 CMusEngMceOutSession::CMusEngMceOutSession( const TRect& aRect, |
|
91 TUint aSipProfileId ) |
|
92 : CMusEngMceSession( aRect ), |
|
93 iSipProfileId( aSipProfileId ) |
|
94 { |
|
95 } |
|
96 |
|
97 |
|
98 // ----------------------------------------------------------------------------- |
|
99 // |
|
100 // ----------------------------------------------------------------------------- |
|
101 // |
|
102 void CMusEngMceOutSession::ConstructL() |
|
103 { |
|
104 } |
|
105 |
|
106 |
|
107 // ----------------------------------------------------------------------------- |
|
108 // |
|
109 // ----------------------------------------------------------------------------- |
|
110 // |
|
111 void CMusEngMceOutSession::CreateMceSessionStructureL() |
|
112 { |
|
113 } |
|
114 |
|
115 |
|
116 // ----------------------------------------------------------------------------- |
|
117 // |
|
118 // ----------------------------------------------------------------------------- |
|
119 // |
|
120 MMusEngOutSessionObserver* CMusEngMceOutSession::OutSessionObserver() |
|
121 { |
|
122 return static_cast<MMusEngOutSessionObserver*>(iSessionObserver); |
|
123 } |
|
124 |
|
125 |
|
126 // ----------------------------------------------------------------------------- |
|
127 // TODO: Using UTF8 is to wide. It should handle the escape characters |
|
128 // correctly. UTF7 is not working, since it converts + as +- |
|
129 // ----------------------------------------------------------------------------- |
|
130 // |
|
131 HBufC8* CMusEngMceOutSession::ParseRecipientUriL( const TDesC& aRecipient ) |
|
132 { |
|
133 } |
|
134 |
|
135 |
|
136 |