wvuing/IMPSServiceSettingsUI/Src/CWVSettingsUICheckboxSettingPage.h
branchRCL_3
changeset 17 a941bc465d9f
parent 0 094583676ce7
equal deleted inserted replaced
16:6ca72c0fe49a 17:a941bc465d9f
       
     1 /*
       
     2 * Copyright (c) 2004 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:  Checkbox setting page
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __CWVSETTINGSUICHECKBOXSETTINGPAGE_H
       
    19 #define __CWVSETTINGSUICHECKBOXSETTINGPAGE_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <AknCheckBoxSettingPage.h>
       
    23 #include <AknSettingPage.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31 *  Checkbox setting page
       
    32 *
       
    33 *  @lib WVServiceSettingsUi.dll
       
    34 *  @since 2.6
       
    35 */
       
    36 NONSHARABLE_CLASS( CWVSettingsUICheckboxSettingPage ) :
       
    37         public CAknCheckBoxSettingPage, MAknSettingPageObserver
       
    38     {
       
    39 public: // New functions
       
    40     /**
       
    41     * Two-phased constructor.
       
    42     * @param aResourceId the resource of the setting page
       
    43     * @param aSelectionItemList the selection item list of the setting page,
       
    44     *        ownership is transferred
       
    45     */
       
    46     static CWVSettingsUICheckboxSettingPage* NewL( TInt aResourceId,
       
    47     CSelectionItemList* aSelectionItemList );
       
    48 
       
    49 protected: // constructor and destructor
       
    50 
       
    51     /**
       
    52     * C++ default constructor.
       
    53     * @param aResourceId the resource of the setting page
       
    54     * @param aSelectionItemList the selection item list of the setting page
       
    55     */
       
    56     CWVSettingsUICheckboxSettingPage( TInt aResourceId,
       
    57                                       CSelectionItemList* aSelectionItemList );
       
    58 
       
    59     /**
       
    60     * Destructor.
       
    61     */
       
    62     virtual ~CWVSettingsUICheckboxSettingPage();
       
    63 
       
    64 private: //Functions from base classes
       
    65 
       
    66     /*
       
    67     * From MAknSettingPageObserver
       
    68     * @see MAknSettingPageObserver
       
    69     */
       
    70     void HandleSettingPageEventL( CAknSettingPage* aSettingPage,
       
    71                                   TAknSettingPageEvent aEventType );
       
    72 
       
    73     /**
       
    74      * From CAknSettingPage.
       
    75      * @see CAknSettingPage
       
    76      */
       
    77     TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent,
       
    78                                  TEventCode aType );
       
    79 
       
    80     /**
       
    81      * From CAknSettingPage.
       
    82      * @see CAknSettingPage
       
    83      */
       
    84     void HandlePointerEventL( const TPointerEvent& aPointerEvent );
       
    85 
       
    86 private: // new functions
       
    87     /**
       
    88     * Sets the Cba to only "cancel" if no items are selected
       
    89     * @since 2.6
       
    90     */
       
    91     void SetCbaL();
       
    92 
       
    93 private:    // Data
       
    94     // selection item list, does NOT own
       
    95     CSelectionItemList* iSelectionItemList;
       
    96 
       
    97     };
       
    98 
       
    99 #endif      // __CWVSETTINGSUICHECKBOXSETTINGPAGE_H
       
   100 
       
   101 // End of File