email/mail/PluginSrc/icalviewer/uisrc/cicalattaloader.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2005 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:  Mail icalviewer attachment loader
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __CICALATTALOADER_H
       
    20 #define __CICALATTALOADER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <MMessageLoadObserver.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class MMailAppUiInterface;
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31 *  Loads message attachments.
       
    32 */
       
    33 class CICalAttaLoader : public CBase, MMessageLoadObserver
       
    34     {
       
    35     public:  // Constructors and destructor
       
    36 
       
    37         /**
       
    38         * NewL
       
    39         * @param aAppUI App UI call back
       
    40         */
       
    41         static CICalAttaLoader* NewL( MMailAppUiInterface& aAppUI );
       
    42 
       
    43         /**
       
    44         * Destructor.
       
    45         */
       
    46         ~CICalAttaLoader();
       
    47         
       
    48     public: // new functions
       
    49     
       
    50         /**
       
    51         * Starts loading attachments.
       
    52         * @param aMessage Mail message
       
    53         */
       
    54         void StartLoadingL( CMailMessage& aMessage );
       
    55 
       
    56         /**
       
    57         * FinishedWithAttachments.
       
    58         * @return ETrue if loading is finished.
       
    59         */        
       
    60         TBool FinishedWithAttachments();
       
    61 
       
    62     protected: // from MMessageLoadObserver
       
    63     
       
    64         void MessageLoadingL( TInt aStatus, CMailMessage& aMessage );
       
    65 
       
    66     private: // Constructors and destructor
       
    67         
       
    68         CICalAttaLoader( MMailAppUiInterface& aAppUI );
       
    69         
       
    70     private: // Data
       
    71     
       
    72         MMailAppUiInterface& iAppUI;
       
    73         
       
    74         TBool iFinishedWithAttachments;        
       
    75     };
       
    76 
       
    77 #endif      // __CICALATTALOADER_H
       
    78 
       
    79 // End of File