equal
deleted
inserted
replaced
89 * notifies the observer given in the construction when the deletion is |
89 * notifies the observer given in the construction when the deletion is |
90 * complete. |
90 * complete. |
91 */ |
91 */ |
92 void DeleteMailboxL(); |
92 void DeleteMailboxL(); |
93 |
93 |
|
94 /** |
|
95 * Deletes the given mailbox. Displays also a confirmation dialog. |
|
96 * @param aMailboxId The ID of the mail box to delete. |
|
97 */ |
|
98 void DeleteMailboxL( const TFSMailMsgId& aMailboxId ); |
|
99 |
|
100 |
94 protected: // from MProgressDialogCallback |
101 protected: // from MProgressDialogCallback |
95 |
102 |
96 void DialogDismissedL( TInt aButtonId ); |
103 void DialogDismissedL( TInt aButtonId ); |
97 |
104 |
98 protected: // from MFSMailRequestObserver |
105 protected: // from MFSMailRequestObserver |
105 |
112 |
106 CFSEmailUiMailboxDeleter( CFSMailClient& aMailClient, |
113 CFSEmailUiMailboxDeleter( CFSMailClient& aMailClient, |
107 MFSEmailUiMailboxDeleteObserver& aObserver ); |
114 MFSEmailUiMailboxDeleteObserver& aObserver ); |
108 |
115 |
109 private: |
116 private: |
110 |
117 |
|
118 /** |
|
119 * Returns the mailboxes that can be deleted. Note that the given array is |
|
120 * left in the clean up stack. |
|
121 * @param aMailboxes The array where the mailboxes are added to. |
|
122 * @return The number of deletable mailboxes found. |
|
123 */ |
|
124 TInt GetDeletableMailboxesLC( RPointerArray<CFSMailBox>& aMailboxes ); |
|
125 |
111 /** |
126 /** |
112 * Deletes a single mailbox. |
127 * Deletes a single mailbox. |
113 * @param aMailboxes Array containing the mailbox to be deleted. |
128 * @param aMailboxes Array containing the mailbox to be deleted. |
114 * @return ETrue if user confirmed the deletion, EFalse if not. |
129 * @return ETrue if user confirmed the deletion, EFalse if not. |
115 */ |
130 */ |
119 * Deletes multiple mailboxes. |
134 * Deletes multiple mailboxes. |
120 * @param aMailboxes Array containing the mailboxes to be deleted. |
135 * @param aMailboxes Array containing the mailboxes to be deleted. |
121 * @return ETrue if user confirmed the deletion, EFalse if not. |
136 * @return ETrue if user confirmed the deletion, EFalse if not. |
122 */ |
137 */ |
123 TBool DeleteMultipleMailboxesL( const RPointerArray<CFSMailBox>& aMailboxes ); |
138 TBool DeleteMultipleMailboxesL( const RPointerArray<CFSMailBox>& aMailboxes ); |
|
139 |
|
140 /** |
|
141 * Deletes the selected mailboxes i.e. those of which IDs are in the |
|
142 * iMailboxesToDelete array. |
|
143 */ |
|
144 void DoDeleteSelectedMailboxesL(); |
124 |
145 |
125 /** |
146 /** |
126 * Confirms mailbox deletion. Behavior depends on the number of mailboxes |
147 * Confirms mailbox deletion. Behavior depends on the number of mailboxes |
127 * to be deleted. aMailboxName is not used if aCount > 1. |
148 * to be deleted. aMailboxName is not used if aCount > 1. |
128 * @param aCount Number of mailboxes to be removed. |
149 * @param aCount Number of mailboxes to be removed. |