|
1 /* |
|
2 * Copyright (c) 2005 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 * Active object and base class for subclasses implementing a SUPL session |
|
16 * request cycle. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 |
|
22 #ifndef __CSuplServerStartupRequest_H__ |
|
23 #define __CSuplServerStartupRequest_H__ |
|
24 |
|
25 // INCLUDE FILES |
|
26 #include <e32base.h> |
|
27 |
|
28 |
|
29 #include "epos_msuplecomeventobserver.h" |
|
30 |
|
31 // CONSTANT DECLARATIONS |
|
32 |
|
33 // FORWARD DECLARATIONS |
|
34 class MConnectObserver; |
|
35 // CLASS DECLARATION |
|
36 |
|
37 /** |
|
38 * Active object implementing a position request cycle. Handles |
|
39 * activities such as controlling logging and verifying privacy. |
|
40 * |
|
41 */ |
|
42 class CSuplServerStartupRequest : public CActive |
|
43 { |
|
44 public: // Constructors and destructor |
|
45 |
|
46 /** |
|
47 * Two-phased constructor. |
|
48 */ |
|
49 static CSuplServerStartupRequest* NewL(MConnectObserver* aObserver,CSuplSessionManager& aSessionManager); |
|
50 |
|
51 /** |
|
52 * Destructor. |
|
53 */ |
|
54 virtual ~CSuplServerStartupRequest(); |
|
55 |
|
56 public: // New functions |
|
57 |
|
58 /** |
|
59 * Starts a SUPL session request cycle. |
|
60 * @param aMessage the request message from the client |
|
61 */ |
|
62 |
|
63 void MakeSuplServerStartupRequestL(CSuplSessionManager* aSessionManager,TUid aPluginUid,MSuplEcomEventObserver& aSuplEcomEventObserver); |
|
64 /** |
|
65 * Called when the server class is shutting down. |
|
66 */ |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 protected: // From CActive |
|
72 |
|
73 void RunL(); |
|
74 TInt RunError(TInt aError); |
|
75 void DoCancel(); |
|
76 |
|
77 private: |
|
78 |
|
79 CSuplServerStartupRequest(MConnectObserver* aObserver,CSuplSessionManager& aSessionManager); |
|
80 |
|
81 void ConstructL(); |
|
82 |
|
83 // By default, prohibit copy constructor |
|
84 CSuplServerStartupRequest( const CSuplServerStartupRequest& ); |
|
85 // Prohibit assigment operator |
|
86 CSuplServerStartupRequest& operator= ( const CSuplServerStartupRequest& ); |
|
87 |
|
88 |
|
89 private: // Data |
|
90 |
|
91 enum TSuplServerStartupRequestStage |
|
92 { |
|
93 ESuplReqInactive = 0, |
|
94 ESuplServerStartup, |
|
95 }; |
|
96 |
|
97 |
|
98 TSuplServerStartupRequestStage iReqPhase; |
|
99 MConnectObserver *iObserver; |
|
100 CSuplSessionManager& iSessionManager; |
|
101 |
|
102 }; |
|
103 |
|
104 #endif // __CSuplServerStartupRequest_H__ |
|
105 |
|
106 // End of File |