34 * Destructor |
43 * Destructor |
35 */ |
44 */ |
36 ~MsgMonitor(); |
45 ~MsgMonitor(); |
37 |
46 |
38 /** |
47 /** |
|
48 * Set to skip showing note for first time |
|
49 * @param skip true/false |
|
50 */ |
|
51 inline void setSkipNote(bool skip = true); |
|
52 |
|
53 /** |
|
54 * Seeker method to access current message type |
|
55 */ |
|
56 static inline ConvergedMessage::MessageType messageType(); |
|
57 |
|
58 /** |
|
59 * seeker function to get current msg size in bytes |
|
60 */ |
|
61 static inline int messageSize(); |
|
62 |
|
63 /** |
|
64 * seeker function to get current msg's body size |
|
65 * in bytes |
|
66 */ |
|
67 static inline int bodySize(); |
|
68 |
|
69 /** |
|
70 * seeker function to get current msg's attachment |
|
71 * container size in bytes |
|
72 */ |
|
73 static inline int containerSize(); |
|
74 |
|
75 /** |
|
76 * seeker function to get current msg's subject |
|
77 * size in bytes |
|
78 */ |
|
79 static inline int subjectSize(); |
|
80 |
|
81 /** |
|
82 * seeker function to get max possible mms size |
|
83 * in bytes |
|
84 */ |
|
85 static inline int maxMmsSize(); |
|
86 |
|
87 /** |
|
88 * seeker funtion to get max recipient count for sms |
|
89 */ |
|
90 static inline int maxSmsRecipients(); |
|
91 |
|
92 /** |
|
93 * seeker funtion to get max recipient count for mms |
|
94 */ |
|
95 static inline int maxMmsRecipients(); |
|
96 |
|
97 public slots: |
|
98 /** |
|
99 * slot to find any msg type change during editor operations |
|
100 */ |
|
101 void checkMsgTypeChange(); |
|
102 |
|
103 private: |
|
104 /** |
39 * setter method to initialize content |
105 * setter method to initialize content |
40 */ |
106 */ |
41 void init(); |
107 void init(); |
42 |
108 |
43 /** |
109 /** |
44 * seeker function to get current msg size in bytes |
110 * handle size change of editor components |
45 */ |
111 */ |
46 static int messageSize(); |
112 void updateSizeInfo(HbWidget* aWidget); |
|
113 |
|
114 /** |
|
115 * show type change discreet note |
|
116 */ |
|
117 void showPopup(const QString& text); |
|
118 |
|
119 /** |
|
120 * accessor for view |
|
121 */ |
|
122 MsgUnifiedEditorView* view(); |
|
123 |
|
124 private: |
|
125 /** |
|
126 * Flag to skip showing the type change popup. |
|
127 * Note need to be skipped when an mms is opened from draft. |
|
128 */ |
|
129 bool mSkipNote; |
47 |
130 |
48 /** |
131 /** |
49 * seeker function to get current msg's body size |
132 * Type of msg under composition in the editor |
50 * in bytes |
|
51 */ |
133 */ |
52 static int bodySize(); |
134 static ConvergedMessage::MessageType mMessageType; |
53 |
135 |
54 /** |
|
55 * seeker function to get current msg's attachment |
|
56 * container size in bytes |
|
57 */ |
|
58 static int containerSize(); |
|
59 |
|
60 /** |
|
61 * seeker function to get current msg's subject |
|
62 * size in bytes |
|
63 */ |
|
64 static int subjectSize(); |
|
65 |
|
66 /** |
|
67 * seeker function to get max possible mms size |
|
68 * in bytes |
|
69 */ |
|
70 static int maxMmsSize(); |
|
71 |
|
72 public slots: |
|
73 /** |
|
74 * handle size change signal emitted by msg components |
|
75 */ |
|
76 void onSizeChanged(int aSize); |
|
77 |
|
78 private: |
|
79 /** |
136 /** |
80 * msg body size in bytes |
137 * msg body size in bytes |
81 */ |
138 */ |
82 static int mBodySize; |
139 static int mBodySize; |
83 |
140 |
93 |
150 |
94 /** |
151 /** |
95 * max mms size in bytes |
152 * max mms size in bytes |
96 */ |
153 */ |
97 static int mMaxMmsSize; |
154 static int mMaxMmsSize; |
|
155 |
|
156 /** |
|
157 * max recipient count in an sms |
|
158 */ |
|
159 static int mMaxSmsRecipients; |
|
160 |
|
161 /** |
|
162 * max recipient count in an sms |
|
163 */ |
|
164 static int mMaxMmsRecipients; |
|
165 |
|
166 /** |
|
167 * UniEditorGenUtils object |
|
168 * Owned |
|
169 */ |
|
170 UniEditorGenUtils* mUniEditorGenUtils; |
98 }; |
171 }; |
99 |
172 |
|
173 #include "msgmonitor.inl" |
|
174 |
100 #endif //MSG_MONITOR_H |
175 #endif //MSG_MONITOR_H |