phonebookui/Phonebook2/ccapplication/ccacontactorservice/inc/ccacontactorvoipoperation.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 02 Feb 2010 10:12:17 +0200
changeset 0 e686773b3f54
child 35 4ae315f230bc
permissions -rw-r--r--
Revision: 201003 Kit: 201005

/*
* 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:  Class implementing the voip operation
*
*/


#ifndef CCACONTACTORVOIPOPERATION_H
#define CCACONTACTORVOIPOPERATION_H

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

// CLASS DECLARATION
class CCCAContactorOperation;

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

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

    /**
     * Two-phased constructor.
     * 
     * @param aParam The address to make the voip call to
     * @param aServiceID The voip service ID
     */
    static CCCAContactorVOIPOperation* NewL(const TDesC& aParam, TUint32 aServiceID);

    /**
     * Two-phased constructor.
     * 
     * @param aParam The address to make the voip call to
     * @param aServiceID The voip service ID
     */
    static CCCAContactorVOIPOperation* NewLC(const TDesC& aParam, TUint32 aServiceID);
    
    /**
     * Executes the operation (launches the voip call)
     */
    virtual void ExecuteLD();

private:

    /**
     * Constructor for performing 1st stage construction
     * 
     * @param aParam The address to make the voip call to
     * @param aServiceID The voip service ID
     */
    CCCAContactorVOIPOperation(const TDesC& aParam, TUint32 aServiceID);

    /**
     * EPOC default constructor for performing 2nd stage construction
     */
    void ConstructL();
    
    /**
     * The voip service id
     */
    TUint32 iServiceId;

    };

#endif // CCACONTACTORVOIPOPERATION_H
// End of File