meetingrequest/mrtasks/inc/cesmrmeetingrequestsender.h
branchRCL_3
changeset 12 4ce476e64c59
parent 11 0396474f30f5
child 13 8592a65ad3fb
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
     1 /*
       
     2 * Copyright (c) 2007-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:  ESMR meeting request sender
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_ESMRPOLICYCHECKER_H
       
    20 #define C_ESMRPOLICYCHECKER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include "mesmrmeetingrequestsender.h"
       
    24 
       
    25 class CMRMailboxUtils;
       
    26 
       
    27 /**
       
    28  *  Implements interface for constructing and sending meeting requests
       
    29  *  over email.
       
    30  *  @lib esmrtasks.lib
       
    31  */
       
    32 NONSHARABLE_CLASS(CESMRMeetingRequestSender) :
       
    33         public CBase,
       
    34         public MESMRMeetingRequestSender
       
    35     {
       
    36 public: // Construction and destruction
       
    37 
       
    38     /**
       
    39      * Two-phased constructor. Creates and initializes
       
    40      * CESMRMeetingRequestSender object.
       
    41      * @return Pointer to esmr policy checker object.
       
    42      */
       
    43     IMPORT_C static CESMRMeetingRequestSender* NewL(
       
    44             CMRMailboxUtils& aMailboxUtils );
       
    45 
       
    46     /**
       
    47      * Destructor.
       
    48      */
       
    49     IMPORT_C ~CESMRMeetingRequestSender();
       
    50 
       
    51 public:// From MESMRMeetingRequestSender
       
    52 
       
    53     void CreateAndSendMeetingRequestL( MESMRMeetingRequestEntry& aEntry );
       
    54 
       
    55     void CreateAndSendMeetingRequestL( MESMRMeetingRequestEntry& aEntry,
       
    56                                        const TDesC& aFreePlainText );
       
    57 
       
    58 private:
       
    59     CESMRMeetingRequestSender( CMRMailboxUtils& aMailboxUtils );
       
    60 
       
    61     void ConstructL();
       
    62 
       
    63 private:
       
    64     /**
       
    65     * Mailbox utilities
       
    66     * Not Own.
       
    67     */
       
    68     CMRMailboxUtils& iMailboxUtils;
       
    69     };
       
    70 
       
    71 #endif // C_ESMRPOLICYCHECKER_H