emailservices/emailserver/cmailhandlerplugin/inc/cmailmailboxdetails.h
changeset 0 8466d47a6819
child 3 a4d6f1ea0416
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2008 - 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:  data container class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CMAILMAILBOXDETAILS_H_
       
    20 #define CMAILMAILBOXDETAILS_H_
       
    21 
       
    22 class CMailMessageDetails;
       
    23 
       
    24 /**
       
    25  *  Class holding data related to mailbox 
       
    26  *
       
    27  *  @lib fsmailserver.exe
       
    28  *  @since S60 v5.1
       
    29  */
       
    30 NONSHARABLE_CLASS( CMailMailboxDetails ) : public CBase
       
    31     {
       
    32 public:
       
    33     /**
       
    34      * Two-phased constructor.
       
    35      * @param aMailboxId Id of the mailbox
       
    36      * @param aMailboxName name of the mailbox
       
    37      */ 
       
    38     static CMailMailboxDetails* NewL( TFSMailMsgId aMailboxId, const TDesC& aMailboxName );
       
    39 
       
    40     /**
       
    41     * Destructor.
       
    42     */
       
    43     virtual ~CMailMailboxDetails();
       
    44 
       
    45     /**
       
    46     * Destructor.
       
    47     */
       
    48     void SetWidgetInstance( const TDesC& aWidgetInstance );
       
    49     
       
    50 private:
       
    51 
       
    52     /**
       
    53      * Constructor
       
    54      * @param aMailboxId Id of the mailbox
       
    55      * @param aMailboxName name of the mailbox
       
    56      */ 
       
    57     CMailMailboxDetails( const TFSMailMsgId aMailboxId );
       
    58 
       
    59     /**
       
    60      * ConstructL
       
    61      * @param aMailboxName name of the mailbox
       
    62      */ 
       
    63     void ConstructL( const TDesC& aMailboxName ); 
       
    64 
       
    65 public: // data
       
    66     // For bookkeeping
       
    67     // id of the mailbox in the message store
       
    68     TFSMailMsgId                        iMailboxId;
       
    69     // array of message details objects
       
    70     RPointerArray<CMailMessageDetails>  iMessageDetailsArray;
       
    71     // Data
       
    72     // mailbox name
       
    73     HBufC*                              iMailboxName;
       
    74     
       
    75     HBufC*                              iWidgetInstance;
       
    76     };
       
    77 
       
    78 #endif /*CMAILMAILBOXDETAILS_H_*/