748
|
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*>(¶ms), 0, sizeof(TServerStartParams)/sizeof(TText16));
|
|
34 |
User::CommandLine(ptr);
|
|
35 |
TInt err = CSecureASBase::ServerMain(params);
|
|
36 |
return err;
|
|
37 |
}
|