phoneuis/easydialing/edcontactor/inc/edcontactoremailoperation.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 19 Feb 2010 22:50:26 +0200
branchRCL_3
changeset 9 8871b09be73b
permissions -rw-r--r--
Revision: 201003 Kit: 201007

/*
* Copyright (c) 2010 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:  Class implementing the email operation
*
*/


#ifndef EDCONTACTOREMAILOPERATION_H
#define EDCONTACTOREMAILOPERATION_H

// INCLUDES
#include <e32std.h>
#include <e32base.h>

// CLASS DECLARATION
class CEDContactorOperation;

/**
 * Class implementing the email operation
 *
 *  @code
 *   ?good_class_usage_example(s)
 *  @endcode
 *
 *  @lib
 *  @since S60 v5.0
 */
NONSHARABLE_CLASS(CEDContactorEmailOperation) : public CEDContactorOperation
    {
public:
    // Constructors and destructor

    /**
     * Destructor.
     */
    ~CEDContactorEmailOperation();

    /**
     * Two-phased constructor.
     * 
     * @param aParam The address to send email to.
     * @param aName The name of the contact, to be shown in the "to" field
     */
    static CEDContactorEmailOperation* NewL(const TDesC& aParam, const TDesC& aName);

    /**
     * Two-phased constructor.
     * 
     * @param aParam The address to send email to.
     * @param aName The name of the contact, to be shown in the "to" field
     */
    static CEDContactorEmailOperation* NewLC(const TDesC& aParam, const TDesC& aName);
    
    /**
     * Executes the operation (starts the email editor)
     */
    virtual void ExecuteLD();

private:

    /**
     * Constructor for performing 1st stage construction
     * 
     * @param aParam The address to send email to.
     * @param aName The name of the contact, to be shown in the "to" field
     */
    CEDContactorEmailOperation(const TDesC& aParam, const TDesC& aName);

    /**
     * EPOC default constructor for performing 2nd stage construction
     */
    void ConstructL();

    };

#endif // EDCONTACTOREMAILOPERATION_H
// End of File