contentmgmt/cafstreamingsupport/test/streamingtestagent/source/server/startup.cpp
equal
deleted
inserted
replaced
|
1 // Copyright (c) 2007-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 "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 // Executable entrypoint and server object factory function. The latter |
|
15 // is supplied to the SCS boilerplate code which starts up the server. |
|
16 // |
|
17 // |
|
18 |
|
19 #include "staserver.h" |
|
20 |
|
21 using namespace StreamAccess; |
|
22 |
|
23 static CScsServer* NewStreamingTestAgentLC() |
|
24 /** |
|
25 This factory function is called by SCS framework. It allocates |
|
26 the Streaming Test Agent Server object and |
|
27 leaves it on the cleanup stack. |
|
28 |
|
29 @return New initialized instance of CStaServer. |
|
30 On return this is on the cleanup stack. |
|
31 */ |
|
32 { |
|
33 return StreamAccess::CStaServer::NewLC(); |
|
34 } |
|
35 |
|
36 |
|
37 GLDEF_C TInt E32Main() |
|
38 /** |
|
39 Executable entrypoint. Calls the SCS boilerplate code which starts the server |
|
40 and does not return until the server shuts down. |
|
41 |
|
42 @return Symbian OS error code where KErrNone indicates success |
|
43 and any other value indicates failure. |
|
44 */ |
|
45 { |
|
46 return StartScsServer(NewStreamingTestAgentLC); |
|
47 } |