diff -r 000000000000 -r 094583676ce7 wvuing/IMPSConnectionUI/UISrc/CCnUiWaitNoteContainer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wvuing/IMPSConnectionUI/UISrc/CCnUiWaitNoteContainer.h Thu Dec 17 08:41:52 2009 +0200 @@ -0,0 +1,112 @@ +/* +* Copyright (c) 2004 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: Wait note container. +* +*/ + +#ifndef __CCNUIWAITNOTECONTAINER_H +#define __CCNUIWAITNOTECONTAINER_H + +// INCLUDES +#include +#include "MCnUiUiFacade.h" +#include + +// FORWARD DECLARATIONS +class CAknWaitDialog; +class MCnUiWaitNoteObserver; + + +// CLASS DECLARATION +/** + * Wait note container. + * + * Wraps CAknWaitDialog behaviour. + * + * @since 2.1 + */ +NONSHARABLE_CLASS( CCnUiWaitNoteContainer ) : public CBase, + public MCnUiConnWaitNote, + public MProgressDialogCallback + { + +public: // Two-phased constructors and destructor + + /** + * Two-phased constructor. + * + * @since 2.1 + * @param aNoteStructureResourceId Resource ID for wait note. + * @param aLabelText The label text to show in UI. + * @param aObserver The observer to notify. + * Can be NULL, if NULL, no observer is notified from + * note cancels. + */ + static CCnUiWaitNoteContainer* NewL( TInt aNoteStructureResourceId, + const TDesC& aLabelText, + MCnUiWaitNoteObserver* aObserver ); + + /** + * Destructor. + */ + virtual ~CCnUiWaitNoteContainer(); + +private: + + /** + * C++ constructor. + * + * @param aObserver The observer to notify. + */ + CCnUiWaitNoteContainer( MCnUiWaitNoteObserver* aObserver ); + + + /** + * Symbian OS constructor. + * @param aLabelText The label text to show in UI. + * @param aNoteStructureResourceId Resource ID for wait note. + */ + void ConstructL( const TDesC& aLabelText, TInt aNoteStructureResourceId ); + + +public: //from MCnUiConnWaitNote + /** + * @see MCnUiConnWaitNote + * @since 2.1 + */ + void PushLC(); + + +public: //from MProgressDialogCallback + /** + * @see MProgressDialogCallback + * @since 2.1 + */ + void DialogDismissedL( TInt aButtonId ); + + +private: // data + + ///