diff -r 000000000000 -r 164170e6151a securitydialogs/lockapp/inc/lockappecsnote.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/securitydialogs/lockapp/inc/lockappecsnote.h Tue Jan 26 15:20:08 2010 +0200 @@ -0,0 +1,85 @@ +/* +* Copyright (c) 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: Emergency number dialog + * +*/ + + +#ifndef __LOCKAPPECSNOTE_H__ +#define __LOCKAPPECSNOTE_H__ + +// INCLUDES +#include + +/** + * CLockAppEcsNote class is derived from Avkon note implementation; + * shows emergency numbers on a dialog once the user has dialed + * the numbers. + * + * @lib lockapp + * @since 5.0 + * @author Joona Petrell + * @author Tamas Koteles + */ +class CLockAppEcsNote : public CAknNoteDialog + { + public: + + /** + * C++ constructor. + */ + CLockAppEcsNote( ); + + /** + * Destructor. + */ + ~CLockAppEcsNote( ); + + public: + + /** + * Constructs sleeping note + */ + void ConstructSleepingNoteL( TInt aResourceId ); + + /** + * Shows sleeping note + */ + TInt ShowNote( ); + + /** + * Hides sleeping note + */ + void SleepNote( ); + + /** + * Consume key events + */ + TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ); + + /** + * API to set the emergency number to be displayed + * + * aMatchedNumber text to display (e.g. "112" ) + */ + void SetEmergencyNumber( const TDesC& aMatchedNumber ); + + public: + + TBool iNoteOnScreen; + + }; + +#endif // __LOCKAPPECSNOTE_H__ +// End of File