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. The latter |
|
16 * is supplied to the SCS boilerplate code which starts up the server. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 /** |
|
22 @file |
|
23 @internalComponent |
|
24 @released |
|
25 */ |
|
26 |
|
27 #include "stsserver.h" |
|
28 #include <scs/scsserver.h> |
|
29 |
|
30 using namespace Usif; |
|
31 |
|
32 static CScsServer* NewStsServerLC() |
|
33 /** |
|
34 This factory function is called by SCS framework. It allocates |
|
35 the Sts Server object and leaves it on the cleanup stack. |
|
36 |
|
37 @return New initialized instance of CStsServer. |
|
38 On return this is on the cleanup stack. |
|
39 */ |
|
40 { |
|
41 return static_cast<CScsServer*>(CStsServer::NewLC()); |
|
42 } |
|
43 |
|
44 |
|
45 GLDEF_C TInt E32Main() |
|
46 /** |
|
47 Executable entrypoint. Calls the SCS boilerplate code which starts the SCR server |
|
48 and does not return until the server shuts down. |
|
49 |
|
50 @return Symbian OS error code where KErrNone indicates success |
|
51 and any other value indicates failure. |
|
52 */ |
|
53 { |
|
54 return StartScsServer(NewStsServerLC); |
|
55 } |