|
1 // Copyright (c) 2006-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 "Symbian Foundation License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Definition of class used to start a LBS server process |
|
15 // |
|
16 // |
|
17 |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 @internalTechnology |
|
23 */ |
|
24 |
|
25 #ifndef __LBSSECUREASBASE_H__ |
|
26 #define __LBSSECUREASBASE_H__ |
|
27 |
|
28 #include <e32base.h> |
|
29 |
|
30 // forward classes |
|
31 class TServerStartParams; |
|
32 |
|
33 /** |
|
34 @internalTechnology |
|
35 @released |
|
36 |
|
37 Interface to create server |
|
38 */ |
|
39 class MCreateServerImpl |
|
40 { |
|
41 public: |
|
42 virtual void CreateServerLC(TServerStartParams& aParams) = 0; |
|
43 }; |
|
44 |
|
45 /** |
|
46 @internalTechnology |
|
47 @released |
|
48 |
|
49 CActiveScheduler Class. |
|
50 */ |
|
51 class CSecureASBase : public CActiveScheduler |
|
52 { |
|
53 public: |
|
54 enum TSecureASBasePanic |
|
55 { |
|
56 ECreateServerLCNotOverridden = 0 |
|
57 }; |
|
58 public: |
|
59 CSecureASBase(); |
|
60 static TInt ServerLaunch(TServerStartParams& aParams); |
|
61 static TInt ServerMain(TServerStartParams& aParams); |
|
62 protected: |
|
63 static TInt RunServerL(TServerStartParams& aParams); |
|
64 TInt CreateServer(); |
|
65 |
|
66 // create the derived server object and leave it on the cleanup stack |
|
67 //virtual void CreateServerLC(TServerStartParams& aParams); |
|
68 MCreateServerImpl* GetImplLC(); |
|
69 void Panic(const TSecureASBasePanic aPanic); |
|
70 }; |
|
71 |
|
72 |
|
73 |
|
74 #endif // __LBSSECUREASBASE_H__ |