bluetoothengine/bthid/bthidkbdsettings/inc/bthidsettingcontainer.h
branchRCL_3
changeset 56 9386f31cc85b
equal deleted inserted replaced
55:613943a21004 56:9386f31cc85b
       
     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:  Declares setting container class.
       
    15  *
       
    16 */
       
    17 
       
    18 #ifndef BTHIDSETTINGCONTAINER_H
       
    19 #define BTHIDSETTINGCONTAINER_H
       
    20 
       
    21 /**
       
    22  *  CBTHidSettingContainer  
       
    23  *  container control class.
       
    24  */
       
    25 class CBTHidSettingContainer : public CCoeControl, public MCoeControlObserver
       
    26     {
       
    27 public:
       
    28     // Constructors and destructor
       
    29 
       
    30     /**
       
    31      * EPOC default constructor.
       
    32      * @param aRect Frame rectangle for container.
       
    33      */
       
    34     void ConstructL(const TRect& aRect);
       
    35 
       
    36     /**
       
    37      * Constructs common parts of the container.
       
    38      * @param aRect control's rect.
       
    39      */
       
    40     void BaseConstructL(const TRect& aRect);
       
    41 
       
    42     /**
       
    43      * Destructor.
       
    44      */
       
    45     ~CBTHidSettingContainer();
       
    46 
       
    47 private:
       
    48     // Functions from base classes
       
    49 
       
    50     /**
       
    51      * From CCoeControl,Draw.
       
    52      */
       
    53     void Draw(const TRect& aRect) const;
       
    54 
       
    55     /**
       
    56      * From CCoeControl
       
    57      */
       
    58     void HandleResourceChange(TInt aType);
       
    59 
       
    60     /**
       
    61      * From CoeControl,SizeChanged.
       
    62      */
       
    63     void SizeChanged();
       
    64 
       
    65     /**
       
    66      * From CoeControl,CountComponentControls.
       
    67      */
       
    68     TInt CountComponentControls() const;
       
    69 
       
    70     /**
       
    71      * From CCoeControl,ComponentControl.
       
    72      */
       
    73     CCoeControl* ComponentControl(TInt aIndex) const;
       
    74 
       
    75     /**
       
    76      * From MCoeControlObserver
       
    77      */
       
    78     void HandleControlEventL(CCoeControl* aControl, TCoeEvent aEventType);
       
    79 
       
    80     /**
       
    81      * Pass skin information if needed.
       
    82      */
       
    83     TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
       
    84 
       
    85     /**
       
    86      * From CCoeControl
       
    87      */
       
    88     void GetHelpContext(TCoeHelpContext& aContext) const;
       
    89 
       
    90 private:
       
    91     //data
       
    92     CAknsBasicBackgroundControlContext* iBackGround; //for skins support
       
    93 
       
    94 
       
    95     };
       
    96 
       
    97 #endif // BTHIDSETTINGCONTAINER_H
       
    98 // End of File