meetingrequest/mrgui/mrfieldbuilderplugin/src/cmrremoveattachmentcommand.cpp
branchRCL_3
changeset 12 4ce476e64c59
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
       
     1 /*
       
     2 * Copyright (c) 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:  MR remove attachment command implementation
       
    15  *
       
    16  */
       
    17 #include "cmrremoveattachmentcommand.h"
       
    18 
       
    19 #include <calentry.h>
       
    20 #include <calattachment.h>
       
    21 
       
    22 // DEBUG
       
    23 #include "emailtrace.h"
       
    24 
       
    25 
       
    26 // ======== MEMBER FUNCTIONS ========
       
    27 
       
    28 // ---------------------------------------------------------------------------
       
    29 // CMRRemoveAttachmentCommand::CMRRemoveAttachmentCommand
       
    30 // ---------------------------------------------------------------------------
       
    31 //
       
    32 CMRRemoveAttachmentCommand::CMRRemoveAttachmentCommand() :
       
    33     CMRAttachmentCommand()
       
    34     {
       
    35     FUNC_LOG;
       
    36     }
       
    37     
       
    38 // ---------------------------------------------------------------------------
       
    39 // CMRRemoveAttachmentCommand::CMRRemoveAttachmentCommand
       
    40 // ---------------------------------------------------------------------------
       
    41 //
       
    42 CMRRemoveAttachmentCommand::~CMRRemoveAttachmentCommand()
       
    43     {
       
    44     FUNC_LOG;
       
    45     }
       
    46 
       
    47 // ---------------------------------------------------------------------------
       
    48 // CMRRemoveAttachmentCommand::NewL
       
    49 // ---------------------------------------------------------------------------
       
    50 //
       
    51 CMRRemoveAttachmentCommand* CMRRemoveAttachmentCommand::NewL()
       
    52     {
       
    53     FUNC_LOG;
       
    54     
       
    55     CMRRemoveAttachmentCommand* self = new( ELeave )CMRRemoveAttachmentCommand;
       
    56     CleanupStack::PushL( self );
       
    57     self->ConstructL();
       
    58     CleanupStack::Pop( self );
       
    59     return self;
       
    60     }
       
    61 
       
    62 // ---------------------------------------------------------------------------
       
    63 // CMRRemoveAttachmentCommand::ConstructL
       
    64 // ---------------------------------------------------------------------------
       
    65 //
       
    66 void CMRRemoveAttachmentCommand::ConstructL()
       
    67     {
       
    68     FUNC_LOG;
       
    69     }
       
    70 
       
    71 // ---------------------------------------------------------------------------
       
    72 // CMRRemoveAttachmentCommand::ExecuteAttachmentCommandL
       
    73 // ---------------------------------------------------------------------------
       
    74 //
       
    75 void CMRRemoveAttachmentCommand::ExecuteAttachmentCommandL(
       
    76             CCalEntry& aEntry,
       
    77             TInt aAttachmentIndex )
       
    78     {
       
    79     FUNC_LOG;
       
    80     aEntry.DeleteAttachmentL( *( aEntry.AttachmentL( aAttachmentIndex ) ) );
       
    81     }
       
    82 
       
    83 // EOF