email/mail/PluginSrc/icalviewer/uisrc/cicalattaloader.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 27 Apr 2010 16:33:37 +0300
branchRCL_3
changeset 16 e00582ce7ecd
parent 0 72b543305e3a
permissions -rw-r--r--
Revision: 201015 Kit: 201017

/*
* Copyright (c) 2005 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:  Mail icalviewer attachment loader
*
*/


#ifndef __CICALATTALOADER_H
#define __CICALATTALOADER_H

#include <e32base.h>
#include <MMessageLoadObserver.h>

// FORWARD DECLARATIONS
class MMailAppUiInterface;

// CLASS DECLARATION

/**
*  Loads message attachments.
*/
class CICalAttaLoader : public CBase, MMessageLoadObserver
    {
    public:  // Constructors and destructor

        /**
        * NewL
        * @param aAppUI App UI call back
        */
        static CICalAttaLoader* NewL( MMailAppUiInterface& aAppUI );

        /**
        * Destructor.
        */
        ~CICalAttaLoader();
        
    public: // new functions
    
        /**
        * Starts loading attachments.
        * @param aMessage Mail message
        */
        void StartLoadingL( CMailMessage& aMessage );

        /**
        * FinishedWithAttachments.
        * @return ETrue if loading is finished.
        */        
        TBool FinishedWithAttachments();

    protected: // from MMessageLoadObserver
    
        void MessageLoadingL( TInt aStatus, CMailMessage& aMessage );

    private: // Constructors and destructor
        
        CICalAttaLoader( MMailAppUiInterface& aAppUI );
        
    private: // Data
    
        MMailAppUiInterface& iAppUI;
        
        TBool iFinishedWithAttachments;        
    };

#endif      // __CICALATTALOADER_H

// End of File