voiceui/voiceuivoicerecognition/inc/vuiclistquerydialog.h
branchRCL_3
changeset 19 e36f3802f733
parent 0 bf1d17376201
equal deleted inserted replaced
18:cad71a31b7fc 19:e36f3802f733
       
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef VUICLISTQUERYDIALOG_H
       
    20 #define VUICLISTQUERYDIALOG_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <aknlistquerydialog.h>
       
    24 
       
    25 // CLASS DECLARATION
       
    26 /**
       
    27 * 
       
    28 *
       
    29 */
       
    30 NONSHARABLE_CLASS( CListQueryDialog ) : public CAknListQueryDialog,
       
    31 										public MEikScrollBarObserver
       
    32 {
       
    33     public:     // Constructors and destructor
       
    34 
       
    35         /**
       
    36         * Symbian two-phased constructor.
       
    37         */
       
    38         static CListQueryDialog* NewL( TInt *aIndex,
       
    39                                        CListQueryDialog** aSelf,
       
    40                                        MEikCommandObserver* aObserver = NULL,
       
    41                                        TInt aMenuTitleResourceId = NULL );
       
    42 
       
    43         /**
       
    44         * Destructor.
       
    45         */
       
    46         virtual ~CListQueryDialog();
       
    47                                 
       
    48     public:  // New functions
       
    49     
       
    50         /**
       
    51         * Checks if menu is currently visible
       
    52         * @return ETrue if menu is visible
       
    53         */
       
    54         TBool IsMenuVisible();
       
    55         
       
    56         /**
       
    57         * Sets optional menu commands hidden or visible
       
    58         * @param aHidden ETrue if commands should be hidden else EFalse
       
    59         */
       
    60         void SetCommandVisibility( TBool aHidden );
       
    61     
       
    62     protected:  // Functions from base classes
       
    63     
       
    64         /**
       
    65         * From CAknListQueryDialog
       
    66         * @see CAknListQueryDialog for more information.
       
    67         */
       
    68         void PostLayoutDynInitL();
       
    69         
       
    70         /**
       
    71         * From CAknListQueryDialog
       
    72         * @see CAknListQueryDialog for more information.
       
    73         */
       
    74         TBool OkToExitL( TInt aButtonId );
       
    75         
       
    76         /**
       
    77         * From CAknListQueryDialog
       
    78         * @see CAknListQueryDialog for more information.
       
    79         */
       
    80         void ProcessCommandL( TInt aCommandId );
       
    81         
       
    82         /**
       
    83         * From CAknListQueryDialog
       
    84         * @see CAknListQueryDialog for more information.
       
    85         */
       
    86         void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
       
    87         
       
    88         /**
       
    89         * From CAknListQueryDialog
       
    90         * @see CAknListQueryDialog for more information.
       
    91         */
       
    92         void HandleListBoxEventL( CEikListBox* aListBox, TListBoxEvent aEventType );
       
    93         
       
    94         /**
       
    95         * From MEikScrollBarObserver
       
    96         * @see MEikScrollBarObserver for more information.
       
    97         */
       
    98         void HandleScrollEventL( CEikScrollBar* aScrollBar, TEikScrollEvent aEventType );
       
    99                          
       
   100     private:  // New functions
       
   101         
       
   102         /**
       
   103         * C++ default constructor.
       
   104         */
       
   105         CListQueryDialog( MEikCommandObserver* aObserver,
       
   106                           TInt aMenuTitleResourceId,
       
   107                           TInt *aIndex,
       
   108                           CListQueryDialog** aSelf );
       
   109         
       
   110         /**
       
   111         * Symbian OS 2nd phase constructor.
       
   112         */
       
   113         virtual void ConstructL();
       
   114         
       
   115     private:    // Data
       
   116         
       
   117         // State of optionally visible menu commands
       
   118         TBool                   iCommandsHidden;
       
   119         
       
   120         // Menu command observer
       
   121         MEikCommandObserver*    iObserver;
       
   122         
       
   123         // Options menu resource id
       
   124         TInt                    iMenuResourceId;
       
   125         
       
   126         // Address of self pointer
       
   127         CListQueryDialog**      iSelf;
       
   128 };
       
   129 
       
   130 #endif  // VUICLISTQUERYDIALOG_H
       
   131 
       
   132 // End of File