|
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: See class definition below. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __TCmdCreateSecureSession_H__ |
|
21 #define __TCmdCreateSecureSession_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include "TTcMceCommandBase.h" |
|
25 #include "TCmdCreateSession.h" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CMceOutSession; |
|
29 |
|
30 // CLASS DEFINITION |
|
31 /** |
|
32 * Command class responsible for "Establish" functionality. |
|
33 */ |
|
34 class TCmdCreateSecureSession |
|
35 : public TCmdCreateSession |
|
36 { |
|
37 public: // Constructors and destructor |
|
38 |
|
39 /** |
|
40 * Constructor. |
|
41 * |
|
42 * @param aContext SIP Test case context |
|
43 */ |
|
44 TCmdCreateSecureSession( MTcTestContext& aContext ) |
|
45 : TCmdCreateSession( aContext ) {}; |
|
46 |
|
47 public: |
|
48 |
|
49 void ExecuteL(); |
|
50 |
|
51 |
|
52 public: // New methods |
|
53 |
|
54 /** |
|
55 * Static function for matching the name of this command to |
|
56 * a function identifier. |
|
57 * |
|
58 * @param aId An initialized identifier containing a function name. |
|
59 * @return ETrue if this command matches the specified name. |
|
60 */ |
|
61 static TBool Match( const TTcIdentifier& aId ); |
|
62 |
|
63 /** |
|
64 * Static fuction for creating an instance of this class |
|
65 * |
|
66 * @param aContext MCE Test case context |
|
67 * @return An initialized instance of this class. |
|
68 */ |
|
69 static TTcCommandBase* CreateL( MTcTestContext& aContext ); |
|
70 |
|
71 CMceSession* CreateSessionL( CMceManager& aManager, |
|
72 CSIPProfile& aProfile, |
|
73 const TDesC8& aRecipient, |
|
74 HBufC8* aOriginator ); |
|
75 |
|
76 CMceSession* CreateSessionL( CMceEvent& aEvent ); |
|
77 CMceSession* CreateSessionL( CMceRefer& aRefer ); |
|
78 |
|
79 }; |
|
80 |
|
81 #endif // __TCmdCreateSecureSession_H__ |