emailservices/emailserver/inc/cmailmailboxdetails.h
branchRCL_3
changeset 25 3533d4323edc
equal deleted inserted replaced
24:d189ee25cf9d 25:3533d4323edc
       
     1 /*
       
     2 * Copyright (c) 2008 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 private:
       
    46 
       
    47     /**
       
    48      * Constructor
       
    49      * @param aMailboxId Id of the mailbox
       
    50      * @param aMailboxName name of the mailbox
       
    51      */ 
       
    52     CMailMailboxDetails( const TFSMailMsgId aMailboxId );
       
    53 
       
    54     /**
       
    55      * ConstructL
       
    56      * @param aMailboxName name of the mailbox
       
    57      */ 
       
    58     void ConstructL( const TDesC& aMailboxName ); 
       
    59 
       
    60 public: // data
       
    61     // For bookkeeping
       
    62     // id of the mailbox in the message store
       
    63     TFSMailMsgId iMailboxId;
       
    64     // Data
       
    65     // mailbox name
       
    66     HBufC*       iMailboxName;
       
    67     };
       
    68 
       
    69 #endif /*CMAILMAILBOXDETAILS_H_*/