equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
19 #ifndef IAUPDATEFWUPDATEHANDLER_H |
19 #ifndef IAUPDATEFWUPDATEHANDLER_H |
20 #define IAUPDATEFWUPDATEHANDLER_H |
20 #define IAUPDATEFWUPDATEHANDLER_H |
21 |
21 |
22 class CIAUpdateFWFotaModel; |
22 class CIAUpdateFWFotaModel; |
23 class CIAUpdateFWSyncAppEngine; |
23 class CIAUpdateFWSyncAppEngine; |
|
24 class MIAUpdateFWUpdateObserver; |
24 |
25 |
25 #include <e32base.h> |
26 #include <e32base.h> |
26 |
27 |
27 |
28 NONSHARABLE_CLASS (CIAUpdateFWUpdateHandler) : public CActive |
28 class CIAUpdateFWUpdateHandler : public CActive |
|
29 { |
29 { |
30 public: |
30 public: |
31 |
31 |
32 IMPORT_C static CIAUpdateFWUpdateHandler* NewLC(); |
32 IMPORT_C static CIAUpdateFWUpdateHandler* NewLC(); |
33 |
33 |
34 IMPORT_C static CIAUpdateFWUpdateHandler* NewL(); |
34 IMPORT_C static CIAUpdateFWUpdateHandler* NewL(); |
35 |
35 |
36 virtual ~CIAUpdateFWUpdateHandler(); |
36 virtual ~CIAUpdateFWUpdateHandler(); |
37 |
37 |
38 public: |
38 public: |
39 |
|
40 IMPORT_C void FirmWareUpdatewithNSU(); |
|
41 |
39 |
42 IMPORT_C void FirmWareUpdatewithFOTA(); |
40 IMPORT_C void FirmWareUpdatewithFOTA( MIAUpdateFWUpdateObserver* aObserver ); |
43 |
41 |
44 IMPORT_C TBool IsDMSupportAvailableL(); |
42 IMPORT_C TBool IsDMSupportAvailableL(); |
45 |
43 |
46 private: |
44 private: |
47 |
45 |
48 enum TRequest |
|
49 { |
|
50 EFOTA =1, |
|
51 ENSU |
|
52 }; |
|
53 |
|
54 CIAUpdateFWUpdateHandler(); |
46 CIAUpdateFWUpdateHandler(); |
55 |
47 |
56 void ConstructL(); |
48 void ConstructL(); |
57 |
49 |
58 void RunL(); |
50 void RunL(); |
63 |
55 |
64 void StartSyncL( const TInt aProfileId = KErrNotFound, const TBool aUseFotaProgressNote = EFalse); |
56 void StartSyncL( const TInt aProfileId = KErrNotFound, const TBool aUseFotaProgressNote = EFalse); |
65 |
57 |
66 private: // data |
58 private: // data |
67 |
59 |
68 TRequest iRequest; |
|
69 CIAUpdateFWFotaModel* iFotaModel; |
60 CIAUpdateFWFotaModel* iFotaModel; |
70 CIAUpdateFWSyncAppEngine* iDMEngine; |
61 CIAUpdateFWSyncAppEngine* iFWSyncAppEngine; |
|
62 MIAUpdateFWUpdateObserver* iObserver; |
71 }; |
63 }; |
72 |
64 |
73 |
65 |
74 #endif //IAUPDATEFWUPDATEHANDLER_H |
66 #endif //IAUPDATEFWUPDATEHANDLER_H |