|
1 /* |
|
2 * Copyright (c) 2004-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: CSysApCenRepLogsObserver class definition. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef SYSAPCENREPLOGSOBSERVER_H |
|
20 #define SYSAPCENREPLOGSOBSERVER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <centralrepository.h> |
|
25 #include <cenrepnotifyhandler.h> |
|
26 #include <LogsDomainCRKeys.h> |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CSysApAppUi; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * CSysApCenRepLogsObserver |
|
35 * |
|
36 * @lib sysap |
|
37 * @since 3.0 |
|
38 */ |
|
39 |
|
40 class CSysApCenRepLogsObserver : public CBase, public MCenRepNotifyHandlerCallback |
|
41 { |
|
42 public: // Constructors and destructor |
|
43 /** |
|
44 * Default constructor |
|
45 */ |
|
46 static CSysApCenRepLogsObserver* NewL( CSysApAppUi& aSysApAppUi ); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 virtual ~CSysApCenRepLogsObserver(); |
|
52 |
|
53 /* |
|
54 * Called when indicators can be updated, and updates |
|
55 * missed call indicator if SIM check has been done. |
|
56 */ |
|
57 void HandleUiReadyL(); |
|
58 |
|
59 /** |
|
60 * Called after SIM check has been finished. Updates |
|
61 * missed call indicator if UI is ready. |
|
62 */ |
|
63 void HandleSimChangedCheckDoneL(); |
|
64 |
|
65 private: |
|
66 |
|
67 /** |
|
68 * EPOC default constructor. |
|
69 * @param None |
|
70 * @return void |
|
71 */ |
|
72 void ConstructL( ); |
|
73 |
|
74 /** |
|
75 * Constructor |
|
76 * @param CSysApAppUi& aSysApAppUi |
|
77 * @return void |
|
78 */ |
|
79 CSysApCenRepLogsObserver( CSysApAppUi& aSysApAppUi ); |
|
80 |
|
81 /** |
|
82 * C++ default constructor. |
|
83 * @param None |
|
84 * @return void |
|
85 */ |
|
86 CSysApCenRepLogsObserver(); |
|
87 |
|
88 /** |
|
89 * Updates the missed calls indicator. |
|
90 */ |
|
91 void UpdateMissedCallsIndicatorL(); |
|
92 |
|
93 public: // From MCenRepNotifyHandlerCallback |
|
94 void HandleNotifyInt( TUint32 aId, TInt aNewValue ); |
|
95 void HandleNotifyError( TUint32 aId, TInt error, CCenRepNotifyHandler* aHandler ); |
|
96 |
|
97 private: |
|
98 // By default, prohibit copy constructor |
|
99 CSysApCenRepLogsObserver( const CSysApCenRepLogsObserver& ); |
|
100 |
|
101 // Prohibit assigment operator |
|
102 CSysApCenRepLogsObserver& operator= ( const CSysApCenRepLogsObserver& ); |
|
103 |
|
104 private: |
|
105 CSysApAppUi& iSysApAppUi; |
|
106 |
|
107 CRepository* iSession; |
|
108 CCenRepNotifyHandler* iNewMissedCallsHandler; |
|
109 |
|
110 TInt iMissedCallsValue; |
|
111 |
|
112 // Whether indicators can be updated to status pane. |
|
113 TBool iUiReady; |
|
114 |
|
115 // Whether SIM check has been done. |
|
116 TBool iSimChangedCheckDone; |
|
117 }; |
|
118 |
|
119 #endif // SYSAPCENREPLOGSOBSERVER_H |
|
120 |
|
121 // End of File |