diff -r 000000000000 -r e686773b3f54 phonebookui/Phonebook2/ServerApplication/inc/CPbk2KeyEventDealer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phonebookui/Phonebook2/ServerApplication/inc/CPbk2KeyEventDealer.h Tue Feb 02 10:12:17 2010 +0200 @@ -0,0 +1,71 @@ +/* +* Copyright (c) 2005-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: Phonebook 2 key event dealer. +* +*/ + + +#ifndef CPBK2KEYEVENTDEALER_H +#define CPBK2KEYEVENTDEALER_H + +// INCLUDES +#include + +// FORWARD DECLARATIONS +class MPbk2KeyEventHandler; + +// CLASS DECLARATION + +/** + * Phonebook 2 key event dealer. + * Responsible for listening key events and dealing them + * to a key event handler. Listens the key events with + * higher priority than standard dialogs. + */ +class CPbk2KeyEventDealer : public CCoeControl + { + public: // Construction and destruction + + /** + * Creates a new instance of this class. + * + * @param aKeyEventHandler Handler for the key events. + * @return A new instance of this class. + */ + static CPbk2KeyEventDealer* NewL( + MPbk2KeyEventHandler& aKeyEventHandler ); + + /** + * Destructor. + */ + ~CPbk2KeyEventDealer(); + + private: // From CCoeControl + TKeyResponse OfferKeyEventL( + const TKeyEvent& aKeyEvent, + TEventCode aType ); + + private: // Implementation + CPbk2KeyEventDealer( + MPbk2KeyEventHandler& aKeyEventHandler ); + void ConstructL(); + + private: // Data + /// Ref: Key event handler + MPbk2KeyEventHandler& iKeyEventHandler; + }; + +#endif // CPBK2KEYEVENTDEALER_H + +// End of File