emailservices/emailserver/cmailhandlerplugin/src/cmailmailboxdetails.cpp
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: This file implements class CMailMailboxDetails.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "emailtrace.h"
       
    20 #include "cmailmessagedetails.h"
       
    21 #include "cmailmailboxdetails.h"
       
    22 
       
    23 // ---------------------------------------------------------
       
    24 // CMailMailboxDetails::NewL
       
    25 // ---------------------------------------------------------
       
    26 //
       
    27 CMailMailboxDetails* CMailMailboxDetails::NewL(
       
    28     const TFSMailMsgId aMailboxId,
       
    29     const TDesC& aMailboxName )
       
    30     {
       
    31     FUNC_LOG;
       
    32     CMailMailboxDetails* self = new(ELeave) CMailMailboxDetails( aMailboxId );
       
    33     CleanupStack::PushL( self );
       
    34     self->ConstructL( aMailboxName );
       
    35     CleanupStack::Pop( self );
       
    36     return self;
       
    37     }
       
    38 
       
    39 // ---------------------------------------------------------
       
    40 // CMailMailboxDetails::CMailboxDetails
       
    41 // ---------------------------------------------------------
       
    42 //
       
    43 CMailMailboxDetails::CMailMailboxDetails( const TFSMailMsgId aMailboxId ) :
       
    44     iMailboxId( aMailboxId )
       
    45     {
       
    46     FUNC_LOG;
       
    47     }
       
    48 
       
    49 // ---------------------------------------------------------
       
    50 // CMailMailboxDetails::~CMailMailboxDetails
       
    51 // ---------------------------------------------------------
       
    52 //
       
    53 CMailMailboxDetails::~CMailMailboxDetails()
       
    54     {
       
    55     FUNC_LOG;
       
    56     delete iMailboxName;
       
    57     delete iWidgetInstance;    
       
    58     iMessageDetailsArray.ResetAndDestroy();
       
    59     }
       
    60 
       
    61 // ---------------------------------------------------------
       
    62 // CMailMailboxDetails::SetWidgetInstance
       
    63 // ---------------------------------------------------------
       
    64 //
       
    65 void CMailMailboxDetails::SetWidgetInstance( const TDesC& aWidgetInstance )
       
    66     {
       
    67     FUNC_LOG;
       
    68     iWidgetInstance = aWidgetInstance.Alloc();
       
    69     }
       
    70 
       
    71 // ---------------------------------------------------------
       
    72 // CMailMailboxDetails::ConstructL
       
    73 // ---------------------------------------------------------
       
    74 //
       
    75 void CMailMailboxDetails::ConstructL( const TDesC& aMailboxName )
       
    76     {
       
    77     FUNC_LOG;
       
    78     iMailboxName = aMailboxName.Alloc();
       
    79     }
       
    80