eventsui/eventsmgmtui/inc/evtmgmtuicmdhdlr.h
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     1 /*
       
     2 * Copyright (c) 2008 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:  Interface class that provides the command handling functionality.
       
    15 *                The class implementing it should be prepared to handle all commands
       
    16 *                except those internal to the calling UI
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef M_EVTMGMTUICMDHDLR_H_
       
    22 #define M_EVTMGMTUICMDHDLR_H_
       
    23 
       
    24 // System Include 
       
    25 #include <e32base.h>
       
    26 
       
    27 // Class Definition
       
    28 
       
    29 /**
       
    30  *  Interface class that provides the command handling functionality.
       
    31  */
       
    32 class MEvtMgmtUiCmdHdlr
       
    33     {
       
    34     public:
       
    35         /**
       
    36          * Enumeration for Command Handler commands
       
    37          */
       
    38          enum TEvtMgmtUiCmd
       
    39             {
       
    40             /**
       
    41              * List box item selection
       
    42              */
       
    43             EListBoxItemSelected,
       
    44             
       
    45             /**
       
    46              * List box item Focused
       
    47              */
       
    48             EListBoxItemFocused,
       
    49             
       
    50             /**
       
    51              * Screen size changed
       
    52              */
       
    53             EScreenSizeChanged,
       
    54             
       
    55             /**
       
    56              * Item two-taps event
       
    57              */
       
    58             EListBoxItemDoubleClicked,
       
    59             
       
    60             /*
       
    61              *  when c key is pressed
       
    62              */
       
    63             EListBoxItemDeleted,
       
    64             
       
    65             /*
       
    66              *  when Listbox Filter count changed
       
    67              */
       
    68             EListBoxFilterCountChanged
       
    69             };
       
    70     public:
       
    71         /**
       
    72          * Command handling function
       
    73          *
       
    74          * @param aCommand Command that needs to be handled
       
    75          */
       
    76          virtual void HandleCmdL( TEvtMgmtUiCmd aCommand )   = 0;
       
    77          
       
    78     };
       
    79 
       
    80 #endif // M_EVTMGMTUICMDHDLR_H_
       
    81