|
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 <sipclientinstaller.h> |
|
19 |
|
20 #include "TCmdUninstallClient.h" |
|
21 #include "SIPConstants.h" |
|
22 |
|
23 /** |
|
24 * INPUT: |
|
25 * Headers: - |
|
26 * Parameters: ClientInfo |
|
27 * IDs: - |
|
28 * |
|
29 * OUTPUT: |
|
30 * Parameters: - |
|
31 * IDs: - |
|
32 */ |
|
33 void TCmdUninstallClient::ExecuteL() |
|
34 { |
|
35 // -- Setup --------------------------------------------------------------- |
|
36 |
|
37 // Get ClientInfo XML document and write it to a file |
|
38 PrepareFileL(); |
|
39 |
|
40 // -- Execution ----------------------------------------------------------- |
|
41 |
|
42 // Create SIP client installer and uninstall |
|
43 CSIPClientInstaller* clientInstaller = |
|
44 CSIPClientInstaller::NewLC( KInstallerPath ); |
|
45 clientInstaller->UnInstallL(); |
|
46 CleanupStack::PopAndDestroy(); // clientInstaller |
|
47 |
|
48 // -- Response creation --------------------------------------------------- |
|
49 } |
|
50 |
|
51 TBool TCmdUninstallClient::Match( const TTcIdentifier& aId ) |
|
52 { |
|
53 return TTcSIPCommandBase::Match( aId, _L8("UninstallClient") ); |
|
54 } |
|
55 |
|
56 TTcCommandBase* TCmdUninstallClient::CreateL( MTcTestContext& aContext ) |
|
57 { |
|
58 return new( ELeave ) TCmdUninstallClient( aContext ); |
|
59 } |
|
60 |