mmsharing/livecommsui/lcui/tsrc/ut_lcui/hbstubs/dialpad_stub.cpp
branchRCL_3
changeset 33 bc78a40cd63c
parent 32 73a1feb507fb
child 35 6c57ef9392d2
equal deleted inserted replaced
32:73a1feb507fb 33:bc78a40cd63c
     1 /*
       
     2 * Copyright (c) 2008-2009 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 #include <hblineedit.h>
       
    19 #include "dialpad.h"
       
    20 
       
    21 Dialpad::Dialpad()
       
    22 {
       
    23     mLineEdit = new HbLineEdit();
       
    24     setVisible(false);
       
    25     mIsCallButtonEnabled = true;
       
    26     mIsOpen = false;
       
    27 }
       
    28 
       
    29 Dialpad::Dialpad(const HbMainWindow& mainWindow)
       
    30 {
       
    31     Q_UNUSED(mainWindow);
       
    32     mLineEdit = new HbLineEdit();
       
    33     setVisible(false);
       
    34     mIsCallButtonEnabled = true;
       
    35     mIsOpen = false;    
       
    36 }
       
    37 
       
    38 Dialpad::~Dialpad()
       
    39 {
       
    40     delete mLineEdit;
       
    41 }
       
    42 
       
    43 HbLineEdit& Dialpad::editor() const
       
    44 {
       
    45     return *mLineEdit;
       
    46 }
       
    47 
       
    48 void Dialpad::setCallButtonEnabled(bool enabled)
       
    49 {
       
    50     mIsCallButtonEnabled = enabled;
       
    51 }
       
    52 
       
    53 void Dialpad::setTapOutsideDismiss( bool enable )
       
    54 {
       
    55     mIsTabOutsideDismissEnabled = enable ;
       
    56 }