mtpdataproviders/mtpimagedp/mediasyncserver/src/main.cpp
changeset 53 62b719e049f4
parent 47 63cf70d3ecd8
equal deleted inserted replaced
47:63cf70d3ecd8 53:62b719e049f4
     1 // Copyright (c) 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 /**
       
    17  @file
       
    18  @internalTechnology
       
    19 */
       
    20 
       
    21 #include <e32base.h>
       
    22 #include "cmediasyncserver.h"
       
    23 
       
    24 
       
    25 //  Global Functions
       
    26 /**
       
    27 Process entry point
       
    28 */
       
    29 TInt E32Main()
       
    30     {
       
    31     // Create cleanup stack
       
    32     __UHEAP_MARK;
       
    33     CTrapCleanup* cleanup = CTrapCleanup::New();
       
    34     TInt ret = KErrNoMemory;
       
    35     if (cleanup)
       
    36         {
       
    37         // Run application code inside TRAP harness, wait keypress when terminated
       
    38         TRAP(ret, CMediaSyncServer::RunServerL());
       
    39         delete cleanup;
       
    40         }    
       
    41     __UHEAP_MARKEND;
       
    42     return ret;
       
    43     }