pimappsupport/chinesecalendaralg/originaltsrc/TCCnMain.cpp
branchRCL_3
changeset 12 38571fd2a704
equal deleted inserted replaced
5:42814f902fe6 12:38571fd2a704
       
     1 // Copyright (c) 2003-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 //
       
    15 
       
    16 #include <e32test.h>
       
    17 #include "ConvertDates.h"
       
    18 
       
    19 // Type definitions
       
    20 #define UNUSED_VAR(a) a = a
       
    21 
       
    22 void mainL();
       
    23 
       
    24 GLDEF_C TInt E32Main()
       
    25     {
       
    26 	__UHEAP_MARK;
       
    27 	CTrapCleanup* cleanupStack=CTrapCleanup::New();
       
    28 
       
    29 	TRAPD(error,mainL());
       
    30 	UNUSED_VAR(error); //Used to supress build warnings
       
    31 
       
    32 	delete cleanupStack;
       
    33 	__UHEAP_MARKEND;
       
    34 	return KErrNone;
       
    35     }
       
    36 
       
    37 void mainL()
       
    38     {
       
    39 	CConvertDates* ConvDates = CConvertDates::NewL();
       
    40 	CleanupStack::PushL(ConvDates);
       
    41 
       
    42 	ConvDates->ConvertL();
       
    43 	CleanupStack::PopAndDestroy();  //delete ConvDates;
       
    44 	}