equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008-2009 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 the License "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 * Executable entrypoint and server object factory function. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #include <usif/sif/siftransportserverstartup.h> |
|
21 #include "sifservertask.h" |
|
22 |
|
23 using namespace Usif; |
|
24 |
|
25 namespace |
|
26 { |
|
27 /** A factory function for the SIF Server */ |
|
28 CSifTransportTask* SifServerTaskFactoryL(TransportTaskFactory::TTaskType aTaskType, TTransportTaskParams& aParams) |
|
29 { |
|
30 return CSifServerTask::NewL(aTaskType, aParams); |
|
31 } |
|
32 } |
|
33 |
|
34 /** |
|
35 Executable entrypoint. |
|
36 |
|
37 @return Symbian OS error code where KErrNone indicates |
|
38 success and any other value indicates failure. |
|
39 */ |
|
40 TInt E32Main() |
|
41 { |
|
42 return StartTransportServer(KSifServerName, Version(), SifServerTaskFactoryL); |
|
43 } |