|
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 * Defines a SIF Transport Server startup function |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 @publishedAll |
|
23 @released |
|
24 */ |
|
25 |
|
26 #ifndef SIFTRANSPORTSERVERSTARTUP_H |
|
27 #define SIFTRANSPORTSERVERSTARTUP_H |
|
28 |
|
29 #include <usif/sif/siftransporttask.h> |
|
30 |
|
31 namespace Usif |
|
32 { |
|
33 /** Default shutdown period is 2 seconds */ |
|
34 const TInt KDefaultShutdownPeriodUs = 2 * 1000 * 1000; |
|
35 |
|
36 /** |
|
37 Starts a transient server. This function should be called from an executable entrypoint |
|
38 which is the @see E32Main() function. |
|
39 |
|
40 @param aServerName The name of a server to be started. |
|
41 @param aVersion The version of a server to be started. |
|
42 @param aTaskFactory A factory function. It is used to generate tasks which implement |
|
43 software management requests for the installer. |
|
44 @param aShutdownPeriodUs A shutdown period after which a server shuts down itself |
|
45 if there are no sessions. |
|
46 */ |
|
47 IMPORT_C TInt StartTransportServer(const TDesC& aServerName, const TVersion& aVersion, TransportTaskFactory::GenerateTask aTaskFactory, TInt aShutdownPeriodUs = KDefaultShutdownPeriodUs); |
|
48 |
|
49 } // End of namespace Usif |
|
50 |
|
51 #endif // #ifndef SIFTRANSPORTSERVERSTARTUP_H |