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 "CTcSIPContext.h" |
|
20 #include "SIPConstants.h" |
|
21 #include "TCmdGetIAPNames.h" |
|
22 |
|
23 /** |
|
24 * INPUT: |
|
25 * Headers: - |
|
26 * Parameters: - |
|
27 * IDs: - |
|
28 * |
|
29 * OUTPUT: |
|
30 * Parameters: IAPNames |
|
31 * IDs: - |
|
32 */ |
|
33 void TCmdGetIAPNames::ExecuteL() |
|
34 { |
|
35 // -- Setup --------------------------------------------------------------- |
|
36 |
|
37 // Get IAP name list |
|
38 const MDesC8Array& names = iContext.IAPNames(); |
|
39 |
|
40 // -- Execution ----------------------------------------------------------- |
|
41 |
|
42 // -- Response creation --------------------------------------------------- |
|
43 |
|
44 AddArrayResponseL( KParamIAPNames, names ); |
|
45 } |
|
46 |
|
47 TBool TCmdGetIAPNames::Match( const TTcIdentifier& aId ) |
|
48 { |
|
49 return TTcSIPCommandBase::Match( aId, _L8("GetIAPNames") ); |
|
50 } |
|
51 |
|
52 TTcCommandBase* TCmdGetIAPNames::CreateL( MTcTestContext& aContext ) |
|
53 { |
|
54 return new( ELeave ) TCmdGetIAPNames( aContext ); |
|
55 } |
|
56 |