1 /* |
|
2 * Copyright (c) 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 "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: Implementation of fotaserver component |
|
15 * This is part of fotaapplication. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef __FMS_SESSION_H__ |
|
20 #define __FMS_SESSION_H__ |
|
21 |
|
22 #include "fmsserver.h" |
|
23 |
|
24 class CFMSSession: public CSession2 |
|
25 { |
|
26 friend class CFMSServer; |
|
27 public: |
|
28 /** |
|
29 * Destructor |
|
30 */ |
|
31 virtual ~CFMSSession(); |
|
32 |
|
33 private: |
|
34 /** |
|
35 * Constructor |
|
36 */ |
|
37 CFMSSession(); |
|
38 |
|
39 /** |
|
40 * Provides FMS Server reference |
|
41 * @param None. |
|
42 * @return CFMSServer reference |
|
43 */ |
|
44 CFMSServer& Server(); |
|
45 |
|
46 /** |
|
47 * Called by the framework to handle the request |
|
48 * @param aMessage |
|
49 * @return None |
|
50 */ |
|
51 void ServiceL(const RMessage2& aMessage); |
|
52 |
|
53 /** |
|
54 * Called from ServiceL to handle the request |
|
55 * @param aMessage |
|
56 * @return None |
|
57 */ |
|
58 void DispatchMessageL(const RMessage2& aMessage); |
|
59 |
|
60 /** |
|
61 * Called when ServiceL leaves |
|
62 * @param aMessage |
|
63 * @param aError |
|
64 * @return None |
|
65 */ |
|
66 void ServiceError(const RMessage2 &aMessage, TInt aError); |
|
67 |
|
68 /** |
|
69 * Checks whether the session started client is secured or not |
|
70 * @param aMessage |
|
71 * @return TBool |
|
72 */ |
|
73 TBool CheckClientSecureIdL( const RMessage2 &aMessage ); |
|
74 |
|
75 /** |
|
76 * Finds the bearer id for the corresponding IAP Id |
|
77 * @param aIapId |
|
78 * @return TUint32, bearer id |
|
79 */ |
|
80 TUint32 FindBearerIdL(TInt aIapId); |
|
81 |
|
82 /** |
|
83 * Writes Dummy file in case of unsupported monitoring |
|
84 * @param None. |
|
85 * @return CFMSServer reference |
|
86 */ |
|
87 void WriteDummyFile(); |
|
88 |
|
89 /** |
|
90 * Checks whether the phone is in 2G or 3G mode |
|
91 * sets the member variable iWcdmaBearer |
|
92 * @param None. |
|
93 * @return CFMSServer reference |
|
94 */ |
|
95 void PhoneModeL(); |
|
96 |
|
97 /** |
|
98 * |
|
99 * Handles the service based on bearer type |
|
100 * @param aMessage. |
|
101 * @return None |
|
102 */ |
|
103 void HandleBasedOnBearertypeL(const RMessage2& aMessage); |
|
104 private: |
|
105 TBool iStopServer; |
|
106 TBool iWlanbearer; |
|
107 TBool iWcdmaBearer; |
|
108 }; |
|
109 |
|
110 |
|
111 #endif |
|