|
1 /* |
|
2 * Copyright (c) 2008 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: This file contains the header file of the CIAUpdateRefreshHandler |
|
15 * class |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __IAUPDATE_REFRESHHANDLER_H__ |
|
21 #define __IAUPDATE_REFRESHHANDLER_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <eikenv.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class MIAUpdateRefreshObserver; |
|
29 class CIAUpdateInstallationListener; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 /** |
|
33 * |
|
34 */ |
|
35 |
|
36 class CIAUpdateRefreshHandler : public CActive |
|
37 { |
|
38 public: |
|
39 |
|
40 /** |
|
41 * Construct a CIAUpdateRefreshHandler using two phase construction, |
|
42 * and return a pointer to the created object |
|
43 * @return A pointer to the created instance of CIAUpdateRefreshHandler |
|
44 */ |
|
45 static CIAUpdateRefreshHandler* NewL(); |
|
46 |
|
47 /** |
|
48 * Construct a CIAUpdateRefreshHandler using two phase construction, |
|
49 * and return a pointer to the created object |
|
50 * @return A pointer to the created instance of CIAUpdateRefreshHandler |
|
51 */ |
|
52 static CIAUpdateRefreshHandler* NewLC(); |
|
53 |
|
54 /** |
|
55 * Destructor |
|
56 */ |
|
57 ~CIAUpdateRefreshHandler(); |
|
58 |
|
59 public: // new functions |
|
60 |
|
61 /** |
|
62 * |
|
63 */ |
|
64 void InformRefreshL(); |
|
65 |
|
66 /** |
|
67 * |
|
68 */ |
|
69 void StartListeningL( MIAUpdateRefreshObserver* iObserver ); |
|
70 |
|
71 private: // CActive |
|
72 |
|
73 /** |
|
74 * @see CActive::DoCancel |
|
75 */ |
|
76 void DoCancel(); |
|
77 |
|
78 /** |
|
79 * @see CActive::RunL |
|
80 */ |
|
81 void RunL(); |
|
82 |
|
83 /** |
|
84 * @see CActive::RunError |
|
85 */ |
|
86 TInt RunError( TInt aError ); |
|
87 |
|
88 private: |
|
89 |
|
90 /** |
|
91 * C++ constructor |
|
92 */ |
|
93 CIAUpdateRefreshHandler(); |
|
94 |
|
95 /** |
|
96 * Perform the second phase construction of a CIAUpdateRefreshHandler object |
|
97 */ |
|
98 void ConstructL(); |
|
99 |
|
100 private: //data |
|
101 |
|
102 CEikonEnv* iEikEnv; //not owned |
|
103 |
|
104 RProperty iProperty; |
|
105 |
|
106 MIAUpdateRefreshObserver* iObserver; |
|
107 |
|
108 CIAUpdateInstallationListener* iInstallationListener; |
|
109 |
|
110 }; |
|
111 |
|
112 |
|
113 #endif // __IAUPDATE_REFRESHHANDLER_H__ |