phonebookui/Phonebook2/ccapplication/ccacontactorservice/src/ccacontactoremailoperation.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 14 Sep 2010 20:54:53 +0300
branchRCL_3
changeset 21 9da50d567e3c
parent 0 e686773b3f54
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Implementation of the email operation
*
*/


// INCLUDE FILES
#include "ccacontactorheaders.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CCCAContactorEmailOperation::CCCAContactorEmailOperation()
// -----------------------------------------------------------------------------
//
CCCAContactorEmailOperation::CCCAContactorEmailOperation(const TDesC& aParam, const TDesC& aName) : 
    CCCAContactorOperation(aParam, aName)
    {
    }

// -----------------------------------------------------------------------------
// CCCAContactorEmailOperation::~CCCAContactorEmailOperation()
// -----------------------------------------------------------------------------
//
CCCAContactorEmailOperation::~CCCAContactorEmailOperation()
    {
    // No implementation required
    }

// -----------------------------------------------------------------------------
// CCCAContactorEmailOperation::NewLC()
// -----------------------------------------------------------------------------
//
CCCAContactorEmailOperation* CCCAContactorEmailOperation::NewLC(const TDesC& aParam, const TDesC& aName)
    {
    CCCAContactorEmailOperation* self = new (ELeave)CCCAContactorEmailOperation(aParam, aName);
    CleanupStack::PushL(self);
    self->ConstructL();
    return self;
    }

// -----------------------------------------------------------------------------
// CCCAContactorEmailOperation::NewL()
// -----------------------------------------------------------------------------
//
CCCAContactorEmailOperation* CCCAContactorEmailOperation::NewL(const TDesC& aParam, const TDesC& aName)
    {
    CCCAContactorEmailOperation* self=CCCAContactorEmailOperation::NewLC(aParam, aName);
    CleanupStack::Pop(); // self;
    return self;
    }

// -----------------------------------------------------------------------------
// CCCAContactorEmailOperation::ConstructL()
// -----------------------------------------------------------------------------
//
void CCCAContactorEmailOperation::ConstructL()
    {

    }

// -----------------------------------------------------------------------------
// CCCAContactorEmailOperation::ExecuteLD()
// -----------------------------------------------------------------------------
//
void CCCAContactorEmailOperation::ExecuteLD()
    {
	CleanupStack::PushL(this);
	
	TInt err = KErrNone;
	TRAP( err,
    CCCAMsgEditors::ExecuteL( KSenduiMtmSmtpUid, iParam, iName );
	);
	
	if ( KErrNone != err )
		{
	    // Show error note.
	    CCoeEnv::Static()->HandleError( err );
		}
	
    CleanupStack::PopAndDestroy(this);
    }
// Enf of File