lbs/internal/lbstestserver/src/lbstestservermain.cpp
branchSymbian2
changeset 1 8758140453c0
child 6 c108117318cb
equal deleted inserted replaced
0:e8c1ea2c6496 1:8758140453c0
       
     1 // Copyright (c) 2006-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 the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // servermain.cpp
       
    15 // THIS FILE MUST BE RENAMED TO THE NAME OF OF YOUR SERVER MAIN ENTRY POINT
       
    16 // DO NOT EDIT THE FILE CONTENTS
       
    17 // 
       
    18 //
       
    19 	
       
    20 	
       
    21 #include "e32base.h"
       
    22 #include "csecureasbase.h"
       
    23 #include "tserverstartparams.h"
       
    24 
       
    25 // sample E32Main
       
    26 // all servers should use this E32main(!), but in a renamed file.
       
    27 // Derived classes make use of the abstract method CSecureAsBase::CreateServerLC(const TServerStartParams& aParams)
       
    28 // For an implmenter that is your "E32Main"
       
    29 
       
    30 TInt E32Main()
       
    31 	{
       
    32 	TServerStartParams params;
       
    33 	TPtr ptr(reinterpret_cast<TText*>(&params), 0, sizeof(TServerStartParams)/sizeof(TText16));
       
    34 	User::CommandLine(ptr);
       
    35 	TInt err = CSecureASBase::ServerMain(params);
       
    36 	return err;
       
    37 	}