|
1 /* |
|
2 * Copyright (c) 2007 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: Implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #include "MCEConstants.h" |
|
21 #include "TCmdCreateSecureSession.h" |
|
22 #include "CTcMCEContext.h" |
|
23 |
|
24 #include <sipprofile.h> |
|
25 #include "TCLog.h" |
|
26 #include <MceSession.h> |
|
27 #include "mcesecureoutsession.h" |
|
28 |
|
29 class CMceManager; |
|
30 |
|
31 // ---------------------------------------------------------------------------- |
|
32 // TCmdCreateSecureSession::ExecuteL |
|
33 // ---------------------------------------------------------------------------- |
|
34 // |
|
35 void TCmdCreateSecureSession::ExecuteL() |
|
36 { |
|
37 TcLog::Write( _L8("\nTCmdCreateSecureSession::ExecuteL()") ); |
|
38 CreateOutSessionL(); |
|
39 } |
|
40 |
|
41 // ---------------------------------------------------------------------------- |
|
42 // TCmdCreateSecureSession::CreateSessionL |
|
43 // ---------------------------------------------------------------------------- |
|
44 // |
|
45 CMceSession* TCmdCreateSecureSession::CreateSessionL( CMceManager& aManager, |
|
46 CSIPProfile& aProfile, |
|
47 const TDesC8& aRecipient, |
|
48 HBufC8* aOriginator ) |
|
49 { |
|
50 return CMceSecureOutSession::NewL( aManager, aProfile, |
|
51 aRecipient, aOriginator ); |
|
52 } |
|
53 |
|
54 // ---------------------------------------------------------------------------- |
|
55 // TCmdCreateSecureSession::CreateSessionL |
|
56 // ---------------------------------------------------------------------------- |
|
57 // |
|
58 CMceSession* TCmdCreateSecureSession::CreateSessionL( CMceEvent& aEvent ) |
|
59 { |
|
60 return CMceSecureOutSession::NewL( aEvent ); |
|
61 } |
|
62 |
|
63 // ---------------------------------------------------------------------------- |
|
64 // TCmdCreateSecureSession::CreateSessionL |
|
65 // ---------------------------------------------------------------------------- |
|
66 // |
|
67 CMceSession* TCmdCreateSecureSession::CreateSessionL( CMceRefer& aRefer ) |
|
68 { |
|
69 return CMceSecureOutSession::NewL( aRefer ); |
|
70 } |
|
71 |
|
72 // ---------------------------------------------------------------------------- |
|
73 // TCmdCreateSecureSession::Match |
|
74 // ---------------------------------------------------------------------------- |
|
75 // |
|
76 TBool TCmdCreateSecureSession::Match( const TTcIdentifier& aId ) |
|
77 { |
|
78 return TTcMceCommandBase::Match( aId, _L8("CreateSecureSession") ); |
|
79 } |
|
80 |
|
81 // ---------------------------------------------------------------------------- |
|
82 // TCmdCreateSecureSession::CreateL |
|
83 // ---------------------------------------------------------------------------- |
|
84 // |
|
85 TTcCommandBase* TCmdCreateSecureSession::CreateL( MTcTestContext& aContext ) |
|
86 { |
|
87 return new( ELeave ) TCmdCreateSecureSession( aContext ); |
|
88 } |
|
89 |