phoneapp/phoneuivoipextension/src/tphonetouchpanewrapper.cpp
changeset 0 5f000ab63145
child 21 92ab7f8d0eab
child 61 41a7f70b3818
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     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: Implementation of TPhTouchPaneWrapper class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include "tphonetouchpanewrapper.h"   
       
    21 
       
    22 
       
    23 // ================= MEMBER FUNCTIONS =======================
       
    24 
       
    25 // -----------------------------------------------------------------------------
       
    26 // TPhTouchPaneWrapper::TPhTouchPaneWrapper
       
    27 // C++ default constructor can NOT contain any code, that
       
    28 // might leave.
       
    29 // -----------------------------------------------------------------------------
       
    30 //
       
    31 TPhTouchPaneWrapper::TPhTouchPaneWrapper( 
       
    32         MBubbleTouchPaneInterface& aTouchPane ) :
       
    33         iTouchPane( aTouchPane )    
       
    34     {
       
    35     }
       
    36 
       
    37 // ---------------------------------------------------------
       
    38 // TPhTouchPaneWrapper::TPhTouchPaneWrapper
       
    39 // (other items were commented in a header).
       
    40 // ---------------------------------------------------------
       
    41 //
       
    42 TInt TPhTouchPaneWrapper::NumberOfButtonsInPane() const
       
    43    	{
       
    44    	return iTouchPane.NumberOfButtonsInPane();
       
    45    	}
       
    46 
       
    47 // ---------------------------------------------------------
       
    48 // TPhTouchPaneWrapper::ButtonCommandId
       
    49 // (other items were commented in a header).
       
    50 // ---------------------------------------------------------
       
    51 //
       
    52 TInt TPhTouchPaneWrapper::ButtonCommandId( 
       
    53         TInt aButtonIndex ) const
       
    54     {
       
    55    	return iTouchPane.ButtonCommandId( aButtonIndex );
       
    56    	}
       
    57 
       
    58 // ---------------------------------------------------------
       
    59 // TPhTouchPaneWrapper::SetButtonDimmed
       
    60 // (other items were commented in a header).
       
    61 // ---------------------------------------------------------
       
    62 //
       
    63 void TPhTouchPaneWrapper::SetButtonDimmed( TInt aCommand, TBool aDimmed )
       
    64    {
       
    65    iTouchPane.SetButtonDimmed( aCommand, aDimmed );   
       
    66    }
       
    67 
       
    68 
       
    69 
       
    70 //  End of File