equal
deleted
inserted
replaced
|
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Contains the global definitions needed across the ceddump module/exe |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #include "ceddumper.h" |
|
24 |
|
25 LOCAL_C void doMainL() |
|
26 { |
|
27 CCedDumper* cedDumper=NULL; |
|
28 TRAPD(error, cedDumper=CCedDumper::NewL()); |
|
29 CleanupStack::PushL(cedDumper); |
|
30 if (error == KErrNone) |
|
31 { |
|
32 error = cedDumper->ProcessCommandLineL(); |
|
33 if (error == KErrNone) |
|
34 { |
|
35 cedDumper->DumpContents(); |
|
36 } |
|
37 } |
|
38 CleanupStack::Pop(cedDumper); |
|
39 delete cedDumper; |
|
40 } |
|
41 |
|
42 TInt E32Main() |
|
43 { |
|
44 __UHEAP_MARK; |
|
45 |
|
46 CTrapCleanup* cleanup=CTrapCleanup::New(); |
|
47 |
|
48 TRAPD(error,doMainL()); |
|
49 |
|
50 __ASSERT_ALWAYS(!error, User::Panic(_L("CEDDUMP PANIC"), error)); |
|
51 |
|
52 delete cleanup; |
|
53 |
|
54 __UHEAP_MARKEND; |
|
55 |
|
56 return KErrNone; |
|
57 } |
|
58 |