equal
deleted
inserted
replaced
50 // @see header file |
50 // @see header file |
51 //--------------------------------------------------------------- |
51 //--------------------------------------------------------------- |
52 MsgUnifiedEditorMonitor::MsgUnifiedEditorMonitor(QObject* parent) : |
52 MsgUnifiedEditorMonitor::MsgUnifiedEditorMonitor(QObject* parent) : |
53 QObject(parent), |
53 QObject(parent), |
54 mSkipNote(false) |
54 mSkipNote(false) |
55 { |
55 { |
56 init(); |
56 mUniEditorGenUtils = q_check_ptr( new UniEditorGenUtils); |
57 mUniEditorGenUtils = new UniEditorGenUtils; |
57 init(); |
58 } |
58 } |
59 |
59 |
60 //--------------------------------------------------------------- |
60 //--------------------------------------------------------------- |
61 // MsgUnifiedEditorMonitor::~MsgUnifiedEditorMonitor |
61 // MsgUnifiedEditorMonitor::~MsgUnifiedEditorMonitor |
62 // @see header file |
62 // @see header file |
76 mBodySize = 0; |
76 mBodySize = 0; |
77 mContainerSize = 0; |
77 mContainerSize = 0; |
78 mSubjectSize = 0; |
78 mSubjectSize = 0; |
79 mMsgCurrAddressCount = 0; |
79 mMsgCurrAddressCount = 0; |
80 |
80 |
81 UniEditorGenUtils* uniEditorGenUtils = new UniEditorGenUtils; |
|
82 |
|
83 mMaxMmsSize = KDefaultMaxSize; |
81 mMaxMmsSize = KDefaultMaxSize; |
84 TRAP_IGNORE(mMaxMmsSize = uniEditorGenUtils->MaxMmsMsgSizeL()); |
82 TRAP_IGNORE(mMaxMmsSize = mUniEditorGenUtils->MaxMmsMsgSizeL()); |
85 |
83 |
86 mMaxSmsRecipients = KDefaultSmsRecipients; |
84 mMaxSmsRecipients = KDefaultSmsRecipients; |
87 TRAP_IGNORE(mMaxSmsRecipients = uniEditorGenUtils->MaxSmsRecipientsL()); |
85 TRAP_IGNORE(mMaxSmsRecipients = mUniEditorGenUtils->MaxSmsRecipientsL()); |
88 |
86 |
89 mMaxMmsRecipients = KDefaultMmsRecipients; |
87 mMaxMmsRecipients = KDefaultMmsRecipients; |
90 TRAP_IGNORE(mMaxMmsRecipients = uniEditorGenUtils->MaxMmsRecipientsL()); |
88 TRAP_IGNORE(mMaxMmsRecipients = mUniEditorGenUtils->MaxMmsRecipientsL()); |
91 |
|
92 delete uniEditorGenUtils; |
|
93 } |
89 } |
94 |
90 |
95 //--------------------------------------------------------------- |
91 //--------------------------------------------------------------- |
96 // MsgUnifiedEditorMonitor::handleContentChange |
92 // MsgUnifiedEditorMonitor::handleContentChange |
97 // @see header file |
93 // @see header file |
209 { |
205 { |
210 HbNotificationDialog* dlg = new HbNotificationDialog(); |
206 HbNotificationDialog* dlg = new HbNotificationDialog(); |
211 dlg->setFocusPolicy(Qt::NoFocus); |
207 dlg->setFocusPolicy(Qt::NoFocus); |
212 dlg->setDismissPolicy(HbPopup::TapAnywhere); |
208 dlg->setDismissPolicy(HbPopup::TapAnywhere); |
213 dlg->setAttribute(Qt::WA_DeleteOnClose, true); |
209 dlg->setAttribute(Qt::WA_DeleteOnClose, true); |
214 dlg->setText(text); |
210 dlg->setTitle(text); |
215 dlg->show(); |
211 dlg->show(); |
216 } |
212 } |
217 // reset skip note flag |
213 // reset skip note flag |
218 mSkipNote = false; |
214 mSkipNote = false; |
219 } |
215 } |