|
1 /* |
|
2 * Copyright (c) 2009-2010 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 "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 * Launches the Connection Method Manager Server. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef CMMCLISTATIC_H |
|
21 #define CMMCLISTATIC_H |
|
22 |
|
23 #include <e32std.h> |
|
24 |
|
25 const TUint KCmmDefaultMinHeapSize = 0x1000; // 4K |
|
26 const TUint KCmmDefaultMaxHeapSize = 0x10000; // 64K |
|
27 |
|
28 const TInt KCmmDefaultMessageSlots = 2; |
|
29 |
|
30 _LIT( KCmManagerStartupMutex, "CmManagerStartupMutex" ); |
|
31 |
|
32 |
|
33 /** |
|
34 * Class to handle CmManager server startup. |
|
35 */ |
|
36 class TCmManagerLauncher |
|
37 { |
|
38 public: |
|
39 static TInt LaunchServer( |
|
40 const TDesC& aServerName, |
|
41 const TDesC& aServerFileName, |
|
42 const TUid& aServerUid3, |
|
43 const TUint aWinsMinHeapSize = KCmmDefaultMinHeapSize, |
|
44 const TUint aWinsMaxHeapSize = KCmmDefaultMaxHeapSize, |
|
45 const TUint aWinsStackSize = KDefaultStackSize ); |
|
46 |
|
47 private: |
|
48 static TBool ServerStartupLock( RMutex& mutex, TInt& err ); |
|
49 static void ServerStartupUnlock( RMutex& mutex ); |
|
50 }; |
|
51 |
|
52 #endif // CMMCLISTATIC_H |
|
53 |
|
54 // End of file |