|
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_CLIENT_H__ |
|
20 #define __FMS_CLIENT_H__ |
|
21 |
|
22 #include <e32std.h> |
|
23 #include <e32base.h> |
|
24 #include <e32cmn.h> |
|
25 #include <f32file.h> |
|
26 #include "fmsclientserver.h" |
|
27 |
|
28 |
|
29 class RFMSClient : public RSessionBase |
|
30 { |
|
31 public: |
|
32 /** |
|
33 * Launches FMSServer |
|
34 * @param None |
|
35 * @return KErrNone Symbian error code |
|
36 */ |
|
37 IMPORT_C TInt OpenL(); |
|
38 |
|
39 /** |
|
40 * Close server connection |
|
41 * @param None |
|
42 * @return None |
|
43 */ |
|
44 IMPORT_C void Close(); |
|
45 |
|
46 /** |
|
47 * Sending the parameters to FMSServer |
|
48 * FotaServer or test app should use this |
|
49 * @param aReason |
|
50 * @param aBearer |
|
51 * @param aDrive |
|
52 * @param aSize |
|
53 * @return None |
|
54 */ |
|
55 IMPORT_C void NotifyForResumeL(const TOmaDLInterruptReason& aReason, |
|
56 const TInt& aBearer, const TDriveNumber& aDrive, const TInt& aSize); |
|
57 |
|
58 /* |
|
59 * Cancels the request on FMSServer |
|
60 * @param None |
|
61 * @return None |
|
62 */ |
|
63 void CancelNotifyForResume(); |
|
64 |
|
65 /** |
|
66 * Sending the parameters to FMSServer |
|
67 * to monitor for battery level during USB charging |
|
68 * @param aLevel - level of the battery charge to monitor |
|
69 * @return None |
|
70 */ |
|
71 IMPORT_C void MonitorForBatteryL(TUint aLevel); |
|
72 |
|
73 /** |
|
74 * Cancels the request on FMSServer |
|
75 * @param None |
|
76 * @return None |
|
77 */ |
|
78 IMPORT_C void Cancel(); |
|
79 |
|
80 /** |
|
81 * phone call active check to FMSServer |
|
82 * @param aCallActive, on return holds call status |
|
83 * @return TInt, error code |
|
84 */ |
|
85 IMPORT_C TInt IsPhoneCallActive(TInt& aCallActive); |
|
86 |
|
87 /** |
|
88 * Monitor for active phone call end |
|
89 * @param aPkgId, Package id of interrupted update |
|
90 * & Profile Id, Server profile Id |
|
91 * @return TInt, error code |
|
92 */ |
|
93 IMPORT_C TInt MonitorActivePhoneCallEnd(TInt aPkgId,TInt aProfileId); |
|
94 |
|
95 private: |
|
96 /* |
|
97 * FotaStartUp uses this at the time of reboot |
|
98 * to trigger FMS server |
|
99 * @param None |
|
100 * @return None |
|
101 */ |
|
102 void SendInterruptParamsL(); |
|
103 }; |
|
104 |
|
105 #endif |