meetingrequest/mrtasks/inc/cesmrmeetingrequestsender.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 15 Mar 2010 12:39:10 +0200
branchRCL_3
changeset 11 0396474f30f5
parent 0 8466d47a6819
permissions -rw-r--r--
Revision: 201009 Kit: 201010

/*
* Copyright (c) 2007-2009 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:  ESMR meeting request sender
*
*/


#ifndef C_ESMRPOLICYCHECKER_H
#define C_ESMRPOLICYCHECKER_H

#include <e32base.h>
#include "mesmrmeetingrequestsender.h"

class CMRMailboxUtils;

/**
 *  Implements interface for constructing and sending meeting requests
 *  over email.
 *  @lib esmrtasks.lib
 */
NONSHARABLE_CLASS(CESMRMeetingRequestSender) :
        public CBase,
        public MESMRMeetingRequestSender
    {
public: // Construction and destruction

    /**
     * Two-phased constructor. Creates and initializes
     * CESMRMeetingRequestSender object.
     * @return Pointer to esmr policy checker object.
     */
    IMPORT_C static CESMRMeetingRequestSender* NewL(
            CMRMailboxUtils& aMailboxUtils );

    /**
     * Destructor.
     */
    IMPORT_C ~CESMRMeetingRequestSender();

public:// From MESMRMeetingRequestSender

    void CreateAndSendMeetingRequestL( MESMRMeetingRequestEntry& aEntry );

    void CreateAndSendMeetingRequestL( MESMRMeetingRequestEntry& aEntry,
                                       const TDesC& aFreePlainText );

private:
    CESMRMeetingRequestSender( CMRMailboxUtils& aMailboxUtils );

    void ConstructL();

private:
    /**
    * Mailbox utilities
    * Not Own.
    */
    CMRMailboxUtils& iMailboxUtils;
    };

#endif // C_ESMRPOLICYCHECKER_H