equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2004 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 #include "CTcSIPConnectionContainer.h" |
|
19 #include "SIPConstants.h" |
|
20 #include "TCmdGetIAPName.h" |
|
21 |
|
22 /** |
|
23 * INPUT: |
|
24 * Headers: - |
|
25 * Parameters: ConnectionId* |
|
26 * IDs: - |
|
27 * |
|
28 * OUTPUT: |
|
29 * Parameters: IAPName |
|
30 * IDs: - |
|
31 */ |
|
32 void TCmdGetIAPName::ExecuteL() |
|
33 { |
|
34 // -- Setup --------------------------------------------------------------- |
|
35 |
|
36 // Select connection; either default or user specified (and existing) |
|
37 CTcSIPConnectionContainer& conn = SelectConnectionL(); |
|
38 |
|
39 // -- Execution ----------------------------------------------------------- |
|
40 |
|
41 // -- Response creation --------------------------------------------------- |
|
42 |
|
43 AddTextResponseL( KParamIAPName, conn.IAPName() ); |
|
44 } |
|
45 |
|
46 TBool TCmdGetIAPName::Match( const TTcIdentifier& aId ) |
|
47 { |
|
48 return TTcSIPCommandBase::Match( aId, _L8("GetIAPName") ); |
|
49 } |
|
50 |
|
51 TTcCommandBase* TCmdGetIAPName::CreateL( MTcTestContext& aContext ) |
|
52 { |
|
53 return new( ELeave ) TCmdGetIAPName( aContext ); |
|
54 } |
|
55 |