meetingrequest/mrcmailremoteattachmentplugin/inc/cmrcmailremoteattachmentplugin.h
branchRCL_3
changeset 33 da5135c61bad
equal deleted inserted replaced
32:a3a1ae9acec6 33:da5135c61bad
       
     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:  
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef CMRCMAILREMOTEATTPLUGIN_H
       
    19 #define CMRCMAILREMOTEATTPLUGIN_H
       
    20 
       
    21 #include <e32base.h>
       
    22 #include "ccalremoteattachmentapi.h"
       
    23 
       
    24 class CFSMailClient;
       
    25 class CMRCmailRemoteAttachmentPluginAttinfoFetcher;
       
    26 
       
    27 /**
       
    28  * CMRCmailRemoteAttachmentPlugin is responsible for handling
       
    29  * MR attachment downloading from MR email messages.
       
    30  */
       
    31 NONSHARABLE_CLASS( CMRCmailRemoteAttachmentPlugin ) : 
       
    32         public CCalRemoteAttachmentApi
       
    33     {
       
    34 public: // Construction and destruction
       
    35     /**
       
    36      * Creates and initializes new CMRCmailRemoteAttachmentPlugin object.
       
    37      * @return Pointer to CMRCmailRemoteAttachmentPlugin
       
    38      */
       
    39     static CMRCmailRemoteAttachmentPlugin* NewL();
       
    40     
       
    41     /**
       
    42      * C++ destructor
       
    43      */
       
    44     ~CMRCmailRemoteAttachmentPlugin();
       
    45     
       
    46 protected: // From CCalRemoteAttachmentApi
       
    47     void AttachmentInfo(
       
    48             MCalRemoteAttachmentInfo& aAttachmentInfo,
       
    49             MDesCArray& aAttachmentUrlArray ) const;
       
    50     
       
    51     void DownloadAttachmentsL(
       
    52                 const RPointerArray<MCalRemoteAttachment>& aAttachments,
       
    53                 RPointerArray<MCalRemoteAttachmentOperation>& aOperations,
       
    54                 MCalRemoteAttachmentOperationObserver& aObserver );    
       
    55 
       
    56 private: // Implementation
       
    57     CMRCmailRemoteAttachmentPlugin();
       
    58     void ConstructL();
       
    59     
       
    60 private:
       
    61     /// Own: Pointer to CMAIL client object.
       
    62     CFSMailClient* iMailClient;
       
    63     /// Own: Attachment information fetcher
       
    64     CMRCmailRemoteAttachmentPluginAttinfoFetcher* iAttinfoFetcher;
       
    65     };
       
    66 
       
    67 #endif // CMRCMAILREMOTEATTPLUGIN_H
       
    68 
       
    69 // EOF
       
    70