emailuis/emailui/inc/freestyleemailuimailboxdeleter.h
changeset 1 12c456ceeff2
parent 0 8466d47a6819
child 2 5253a20d2a1e
--- a/emailuis/emailui/inc/freestyleemailuimailboxdeleter.h	Thu Dec 17 08:39:21 2009 +0200
+++ b/emailuis/emailui/inc/freestyleemailuimailboxdeleter.h	Thu Jan 07 12:38:38 2010 +0200
@@ -91,6 +91,13 @@
      */
     void DeleteMailboxL();
 
+    /**
+     * Deletes the given mailbox. Displays also a confirmation dialog.
+     * @param aMailboxId The ID of the mail box to delete.
+     */
+    void DeleteMailboxL( const TFSMailMsgId& aMailboxId );
+
+
 protected: // from MProgressDialogCallback
 
     void DialogDismissedL( TInt aButtonId );
@@ -107,7 +114,15 @@
                               MFSEmailUiMailboxDeleteObserver& aObserver  );
 
 private:
-    
+
+	/**
+	 * Returns the mailboxes that can be deleted. Note that the given array is
+	 * left in the clean up stack.
+	 * @param aMailboxes The array where the mailboxes are added to.
+	 * @return The number of deletable mailboxes found.
+	 */
+	TInt GetDeletableMailboxesLC( RPointerArray<CFSMailBox>& aMailboxes );
+
     /**
      * Deletes a single mailbox.
      * @param aMailboxes Array containing the mailbox to be deleted.
@@ -123,6 +138,12 @@
     TBool DeleteMultipleMailboxesL( const RPointerArray<CFSMailBox>& aMailboxes );
     
     /**
+     * Deletes the selected mailboxes i.e. those of which IDs are in the
+     * iMailboxesToDelete array.
+     */
+    void DoDeleteSelectedMailboxesL();
+    
+    /**
      *  Confirms mailbox deletion. Behavior depends on the number of mailboxes
      *  to be deleted. aMailboxName is not used if aCount > 1.
      *  @param aCount Number of mailboxes to be removed.