22 // system include files go here: |
22 // system include files go here: |
23 #include <e32base.h> |
23 #include <e32base.h> |
24 #include <iaupdateobserver.h> |
24 #include <iaupdateobserver.h> |
25 |
25 |
26 // forward declarations go here: |
26 // forward declarations go here: |
|
27 class CMceUi; |
27 class CIAUpdate; |
28 class CIAUpdate; |
28 class CIAUpdateParameters; |
29 class CIAUpdateParameters; |
29 |
30 |
30 /** |
31 /** |
31 * Has utilities to help IAD aware applications to |
32 * Has utilities to help IAD aware applications to |
36 * CMceIAUpdateUtils *MsgIadUpdate = CMceIAUpdateUtils::NewL(); |
37 * CMceIAUpdateUtils *MsgIadUpdate = CMceIAUpdateUtils::NewL(); |
37 * iMsgIadUpdate->StartL(KYourAppUid); |
38 * iMsgIadUpdate->StartL(KYourAppUid); |
38 * @endcode |
39 * @endcode |
39 * |
40 * |
40 */ |
41 */ |
41 class CMceIAUpdateUtils : public CBase, |
42 class CMceIAUpdateUtils : public CActive, |
42 public MIAUpdateObserver |
43 public MIAUpdateObserver |
43 { |
44 { |
44 public: |
45 public: |
45 |
46 |
46 /** |
47 /** |
47 * Two-phased constructor. |
48 * Two-phased constructor. |
48 * @param aAppUid Uid of the app for which update needs to be checked. |
49 * @param aAppUid Uid of the app for which update needs to be checked. |
49 */ |
50 */ |
50 static CMceIAUpdateUtils* NewL(); |
51 static CMceIAUpdateUtils* NewL(CMceUi& aMceUi); |
51 |
52 |
52 |
53 |
53 /** |
54 /** |
54 * Destructor. |
55 * Destructor. |
55 */ |
56 */ |
56 virtual ~CMceIAUpdateUtils(); |
57 virtual ~CMceIAUpdateUtils(); |
57 |
58 |
58 /** |
59 void StartL( const TUid aAppUid ); |
59 * Start IA update process. |
60 protected: |
60 * @param aAppUid Uid of the app for which update needs to be checked. |
61 |
|
62 /** |
|
63 * From CActive |
61 */ |
64 */ |
62 void StartL( const TUid aAppUid ); |
65 void RunL(); |
|
66 |
|
67 void DoCancel(); |
63 |
68 |
64 private: |
69 private: |
65 |
70 |
66 /** |
71 /** |
67 * C++ default constructor. |
72 * C++ default constructor. |
68 */ |
73 */ |
69 CMceIAUpdateUtils(); |
74 CMceIAUpdateUtils(CMceUi& aMceUi); |
70 |
75 |
71 /** |
76 /** |
72 * By default Symbian 2nd phase constructor is private. |
77 * By default Symbian 2nd phase constructor is private. |
73 */ |
78 */ |
74 void ConstructL(); |
79 void ConstructL(); |
75 |
80 |
76 /** |
81 /** |
77 * Cleanup function. |
82 * Cleanup function. |
78 */ |
83 */ |
79 void Delete(); |
84 void Delete(); |
|
85 |
|
86 /** |
|
87 * For Setting the active object active immediately. |
|
88 */ |
|
89 void CompleteSelf(); |
|
90 |
|
91 /** |
|
92 * Start IA update process. |
|
93 * @param aAppUid Uid of the app for which update needs to be checked. |
|
94 */ |
|
95 void DoStartL(TUid aAppUid); |
80 |
96 |
81 private: // From MIAUpdateObserver |
97 private: // From MIAUpdateObserver |
82 |
98 |
83 /** |
99 /** |
84 * From MIAUpdateObserver. |
100 * From MIAUpdateObserver. |