diff -r ebe688cedc25 -r 7fdbb852d323 email/mail/PluginSrc/icalviewer/uisrc/cicalattaloader.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/email/mail/PluginSrc/icalviewer/uisrc/cicalattaloader.h Wed Sep 01 12:31:54 2010 +0100 @@ -0,0 +1,79 @@ +/* +* 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 +#include + +// 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