|
1 /* |
|
2 * Copyright (c) 2002 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: |
|
15 * Ecom plugin to implement touch support for universal missed calls indicator. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef CLOGSINDICATORPLUGIN_H |
|
22 #define CLOGSINDICATORPLUGIN_H |
|
23 |
|
24 |
|
25 // Until aknstylusactivatedpopupcontent.h is fixed |
|
26 class TAknWindowComponentLayout; |
|
27 |
|
28 // INCLUDES |
|
29 #include <AknIndicatorPlugin.h> |
|
30 #include <eikcmobs.h> |
|
31 #include <aknstylusactivatedpopupcontent.h> |
|
32 |
|
33 #include <cenrepnotifyhandler.h> |
|
34 #include <centralrepository.h> |
|
35 |
|
36 // FORWARD DECLARATION |
|
37 class CRepository; |
|
38 |
|
39 // The maximum length of the event number string |
|
40 const TInt KMaxEventNumberLength = 4; //9999 = 4 numbers |
|
41 |
|
42 // CLASS DECLARATION |
|
43 |
|
44 /** |
|
45 * Implements shared text pool |
|
46 */ |
|
47 class CLogsIndicatorPlugin : public CAknIndicatorPlugin, MCenRepNotifyHandlerCallback |
|
48 { |
|
49 public: |
|
50 |
|
51 static CLogsIndicatorPlugin* NewL(); |
|
52 |
|
53 |
|
54 public: // from CAknIndicatorPlugin |
|
55 /** |
|
56 * Implements stylus tap actions for the indicator in question |
|
57 * @param aUid UID of an indicator |
|
58 * @return none |
|
59 */ |
|
60 void HandleIndicatorTapL(const TInt aUid); |
|
61 |
|
62 /** |
|
63 * Returns the description used as link text, displayed with |
|
64 * the indicator icon in the indicator popup. |
|
65 * |
|
66 * @param aUid UID of the indicator. |
|
67 * @param[out] aTextType Type of the text, |
|
68 * @see TAknIndicatorPluginTextTypes. |
|
69 * |
|
70 * @return Indicator description or link text. |
|
71 * Ownership is transferred. |
|
72 */ |
|
73 HBufC* TextL( const TInt aUid, TInt& aTextType ); |
|
74 |
|
75 public: // from MCenRepNotifyHandlerCallback |
|
76 |
|
77 /** |
|
78 * This callback method is used to notify the client about |
|
79 * changes for integer value keys, i.e. key type is EIntKey. |
|
80 * |
|
81 * @param aId Id of the key that has changed. |
|
82 * @param aNewValue The new value of the key. |
|
83 */ |
|
84 void HandleNotifyInt( TUint32 aId, TInt aNewValue ); |
|
85 |
|
86 |
|
87 ~CLogsIndicatorPlugin(); |
|
88 |
|
89 private: |
|
90 |
|
91 CLogsIndicatorPlugin(); |
|
92 |
|
93 /** |
|
94 * By default Symbian 2nd phase constructor is private. |
|
95 */ |
|
96 void ConstructL(); |
|
97 |
|
98 /** |
|
99 * Create singular or plural content message for the popup |
|
100 * @return constructed text |
|
101 * |
|
102 * NOTE! Ownership of the text is transferred to caller. |
|
103 */ |
|
104 HBufC* CreatePopupContentMessageL(); |
|
105 |
|
106 |
|
107 private: |
|
108 |
|
109 // Command link array for popup |
|
110 RArray<TAknContentLink> iLinkArray; |
|
111 |
|
112 // Owns. Popup heading |
|
113 HBufC* iPopupHeading; |
|
114 |
|
115 // Owns. Popup content singular (template) |
|
116 HBufC* iPopupTextOne; |
|
117 |
|
118 // Owns. Popup content plural (template) |
|
119 HBufC* iPopupTextMultiple; |
|
120 |
|
121 // Owns. Command link text (Show) |
|
122 HBufC* iLinkText; |
|
123 |
|
124 // Owns. Reference to central repository for fetching the missed call count |
|
125 CRepository* iRepositoryLogs; |
|
126 // Owns. Reference to central repository for observing the missed call count changes |
|
127 CCenRepNotifyHandler* iNotifyHandlerLogs; |
|
128 |
|
129 TInt iUid; |
|
130 |
|
131 TInt iResourceFileOffset; |
|
132 }; |
|
133 #endif // CLOGSINDICATORPLUGIN_H |
|
134 |
|
135 |
|
136 |
|
137 // End of File |