messagingfw/alwaysonline/AlwaysOnlineStarterApp/src/AlwaysOnlineStarterApp.cpp
changeset 0 8e480a14352b
equal deleted inserted replaced
-1:000000000000 0:8e480a14352b
       
     1 /*
       
     2 * Copyright (c) 2002 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: 
       
    15 *     Main class
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #include "AlwaysOnlineStarterApp.h"
       
    21 #include "AlwaysOnlineManagerLogging.h"
       
    22 
       
    23 
       
    24 
       
    25 GLDEF_C TInt E32Main()
       
    26     {
       
    27     KAOMANAGER_LOGGER_FN1("AOMStarter E32Main");
       
    28 
       
    29     __UHEAP_MARK;
       
    30 
       
    31     CTrapCleanup* cleanup=CTrapCleanup::New();
       
    32     TInt retVal = KErrNoMemory;
       
    33     if ( cleanup )
       
    34         {
       
    35         TRAP( retVal,RunServerL() );
       
    36 
       
    37 #ifdef _DEBUG
       
    38         if(retVal != KErrNone )
       
    39             {
       
    40             KAOMANAGER_LOGGER_WRITE_FORMAT("Error when calling RunServerL(), retVal:%d", retVal );
       
    41             KAOMANAGER_LOGGER_WRITE_NUMBER(retVal);
       
    42             }
       
    43 #endif
       
    44         delete cleanup;
       
    45         }
       
    46 
       
    47     __UHEAP_MARKEND;
       
    48 
       
    49     KAOMANAGER_LOGGER_FN2("AOMStarter E32Main");
       
    50     return retVal;
       
    51     }
       
    52 
       
    53 
       
    54 //EOF
       
    55