|
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: Implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #include "MCEConstants.h" |
|
21 #include "TCmdFCUpdate.h" |
|
22 #include "CTcMCEContext.h" |
|
23 |
|
24 #include <MCESession.h> |
|
25 #include "TcLog.h" //For testing purposes |
|
26 |
|
27 void TCmdFCUpdate::ExecuteL() |
|
28 { |
|
29 // ---------- Setup ------------------------------------ |
|
30 |
|
31 // Get session |
|
32 CMceSession* session = |
|
33 reinterpret_cast<CMceSession*>(GetObjectForIdL(KSessionId, ETrue)); |
|
34 |
|
35 // ---------- Execution -------------------------------- |
|
36 |
|
37 CDesC8Array* lines = ExtractArrayL( KParamFCMediaAttrLines, ETrue ); |
|
38 CleanupStack::PushL(lines); |
|
39 |
|
40 iContext.FC().UpdateL(*session, lines); |
|
41 |
|
42 CleanupStack::Pop(lines); |
|
43 |
|
44 // ---------- Response creation ----------------------- |
|
45 |
|
46 AddIdResponseL(KSessionId, *session); |
|
47 |
|
48 } |
|
49 |
|
50 TBool TCmdFCUpdate::Match( const TTcIdentifier& aId ) |
|
51 { |
|
52 return TTcMceCommandBase::Match( aId, _L8("FCUpdate") ); |
|
53 } |
|
54 |
|
55 TTcCommandBase* TCmdFCUpdate::CreateL( MTcTestContext& aContext ) |
|
56 { |
|
57 return new( ELeave ) TCmdFCUpdate( aContext ); |
|
58 } |