|
1 /* |
|
2 * Copyright (c) 2009 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 class subscribes and listens to rproperty defined in cinstantmsgindicator.h |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __CIMSTATUSPANEINDICATOR_H |
|
20 #define __CIMSTATUSPANEINDICATOR_H |
|
21 |
|
22 #include "imstatuspaneindicatorpluginuids.h" |
|
23 |
|
24 //system includes |
|
25 #include <e32base.h> |
|
26 #include <e32property.h> |
|
27 #include <cinstantmsgindicator.h> |
|
28 |
|
29 //Forward Declarations |
|
30 |
|
31 #define KMAXLENGTH 512 |
|
32 /** |
|
33 * IM Indicator Plug-in implementation |
|
34 * |
|
35 * @lib ImIndicatorPlugin |
|
36 * @since 3.2 |
|
37 */ |
|
38 class CIMStatusPaneIndicator : public CActive |
|
39 |
|
40 { |
|
41 |
|
42 public: // Constructors and destructor |
|
43 |
|
44 /** |
|
45 * Two-phased constructor. |
|
46 */ |
|
47 static CIMStatusPaneIndicator* NewL(); |
|
48 |
|
49 /** |
|
50 * Destructor. |
|
51 */ |
|
52 ~CIMStatusPaneIndicator(); |
|
53 public: // New Functions |
|
54 |
|
55 /** |
|
56 * Returns the message count |
|
57 */ |
|
58 TInt MsgCount(); |
|
59 /** |
|
60 * Returns the service id |
|
61 */ |
|
62 TInt ServiceId(); |
|
63 /** |
|
64 * returns the message sender id |
|
65 */ |
|
66 const TDesC& SenderId(); |
|
67 |
|
68 /** |
|
69 * returns the number of p-2-p chats. |
|
70 */ |
|
71 TInt IsMultipleSenders(); |
|
72 |
|
73 private: |
|
74 |
|
75 /** |
|
76 * C++ default constructor. |
|
77 */ |
|
78 CIMStatusPaneIndicator(); |
|
79 |
|
80 /** |
|
81 * By default Symbian 2nd phase constructor is private. |
|
82 */ |
|
83 void ConstructL(); |
|
84 |
|
85 |
|
86 /** |
|
87 * from CActive |
|
88 */ |
|
89 void RunL(); |
|
90 |
|
91 /** |
|
92 * from CActive |
|
93 */ |
|
94 void DoCancel(); |
|
95 |
|
96 private: // data |
|
97 |
|
98 // count of p-2-p chats |
|
99 TInt iMultipleSenders; |
|
100 |
|
101 // owned: object of the Rproperty |
|
102 RProperty iProperty; |
|
103 |
|
104 // count of number of new messages |
|
105 TInt iMsgCount; |
|
106 |
|
107 // service id |
|
108 TInt iServiceId; |
|
109 |
|
110 // owned: message sender id. |
|
111 HBufC* iSenderId; |
|
112 |
|
113 |
|
114 }; |
|
115 |
|
116 #endif // __CIMSTATUSPANEINDICATOR_H |
|
117 |
|
118 // End of File |