diff -r 4ae315f230bc -r a6539d1e8e43 phonebookui/Phonebook2/UIControls/inc/CPbk2AdaptiveSearchGridWaiter.h --- a/phonebookui/Phonebook2/UIControls/inc/CPbk2AdaptiveSearchGridWaiter.h Tue May 25 12:26:45 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,93 +0,0 @@ -/* -* Copyright (c) 2002-2007 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: Phonebook2 Adaptive Search Grid -* helper class -*/ - - -#ifndef CPBK2ADAPTIVESEARCHGRIDWAITER_H -#define CPBK2ADAPTIVESEARCHGRIDWAITER_H - -// INCLUDES -#include -#include - -class CAknWaitDialog; - -/** - * @internal Only Phonebook 2 internal use supported! - */ -class MPbk2SearchGridWaiterObserver - { - public: // Interface - /** - * Grid delay complete - */ - virtual void GridDelayCompleteL() = 0; - - virtual void WaitNoteDismissed() = 0; - }; - -/** - * Utility class that implements the wait logic and - * process decoration if needed. - */ -NONSHARABLE_CLASS( CPbk2AdaptiveSearchGridWaiter ) : - public CTimer, - private MProgressDialogCallback - - { - public: // Construction and destruction - - /** - * Creates a new instance of this class. - * - * @return A new instance of this class. - */ - static CPbk2AdaptiveSearchGridWaiter* NewL( MPbk2SearchGridWaiterObserver& aObserver ); - - /** - * Destructor. - */ - ~CPbk2AdaptiveSearchGridWaiter(); - - public: // Interface - - void Start(); - void Stop(); - - private: // From CTimer - void RunL(); - TInt RunError( TInt aError ); - - private: // From MProgressDialogCallback - void DialogDismissedL( TInt aButtonId ); - - private: // Implementation - CPbk2AdaptiveSearchGridWaiter( MPbk2SearchGridWaiterObserver& aObserver ); - void ConstructL(); - void DismissWaitNote(); - - private: // Data - /// Own: Decorator for the process - CAknWaitDialog* iWaitNote; - // Notifiy if wait note is on - TBool iStarted; - // Ref: - MPbk2SearchGridWaiterObserver& iObserver; - }; - -#endif // CPBK2ADAPTIVESEARCHGRIDWAITER_H - -// End of File