Nokia N97 SDK
Example Applications Guide

aknexquerybaselisteventhandler.h

00001 /*
00002 * ==============================================================================
00003 *  Name        : aknexquerybaselisteventhandler.h
00004 *  Part of     : Query example
00005 *  Interface   :
00006 *  Description :
00007 *  Version     :
00008 *
00009 *  Copyright (c) 2004 - 2006 Nokia Corporation.
00010 *  This material, including documentation and any related
00011 *  computer programs, is protected by copyright controlled by
00012 *  Nokia Corporation.
00013 * ==============================================================================
00014 */
00015 
00016 #ifndef __AKNEXQUERYBASELISTEVENTHANDLER_H__
00017 #define __AKNEXQUERYBASELISTEVENTHANDLER_H__
00018 
00019 // INCLUDES
00020 #include <e32base.h>
00021 #include <eiklbo.h> // For MEikListBoxObserver
00022 
00023 // FORWARD DECLARATIONS
00024 class CAknExQueryContainer;
00025 
00026 // CLASS DECLARATION
00027 
00028 /**
00029 * CAknExQueryBaseListEventHandler class.
00030 */
00031 class CAknExQueryBaseListEventHandler :
00032     public CBase,
00033     public MEikListBoxObserver
00034     {
00035     public: // Constructors and destructor
00036 
00037         /**
00038         * CAknExQueryBaseListEventHandler
00039         * Constructor.
00040         * @param aContainer Pointer to Container class object.
00041         */
00042         CAknExQueryBaseListEventHandler( CAknExQueryContainer* aContainer );
00043 
00044         /**
00045         * ~CAknExQueryBaseListEventHandler
00046         * Destructor.
00047         */
00048         virtual ~CAknExQueryBaseListEventHandler();
00049 
00050     public: // New function
00051 
00052         /**
00053         * HandleSelectedListItemL
00054         * Handles events that list item selected.
00055         * Pure virtual function.
00056         * @param aCommand Selected list item index
00057         */
00058         virtual void HandleSelectedListItemL( TInt aCommand ) = NULL;
00059 
00060     public: // From MEikListBoxObserver
00061 
00062         /**
00063         * HandleListBoxEventL
00064         * From MEikListBoxObserver, Handle listbox event
00065         * Handles the list box events.
00066         * When list item is selected, HandleSelectedListItemL() is called.
00067         * @param aListBox Pointer to ListBox object.
00068         * @param aEventType
00069         */
00070         void HandleListBoxEventL( 
00071             CEikListBox* aListBox,
00072             TListBoxEvent aEventType );
00073 
00074     protected: //data
00075         /**
00076         * iContainer
00077         * Does not own
00078         */
00079         CAknExQueryContainer* iContainer;
00080 
00081     };
00082 
00083 #endif // __AKNEXQUERYBASELISTEVENTHANDLER_H__
00084 
00085 // End of File

© Nokia 2009

Back to top