utilities/mpmediacontroller/tsrc/unittest_mpvolumeslider/stub/src/hbvolumesliderpopup.cpp
changeset 48 af3740e3753f
equal deleted inserted replaced
42:79c49924ae23 48:af3740e3753f
       
     1 /*
       
     2 * Copyright (c) 2006 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: hbvolumesliderpopup stub for testing mpvolumeslider
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "stub/inc/hbvolumesliderpopup.h"
       
    20 
       
    21 /*
       
    22  * Stub function
       
    23  */
       
    24 HbVolumeSliderPopup::HbVolumeSliderPopup( QObject *parent )
       
    25     : QObject( parent ),
       
    26       mValue( 0 ),
       
    27       mMinRange( 0 ),
       
    28       mMaxRange( 0 ),
       
    29       mSingleStep( 0 ),
       
    30       mVisible( false ),
       
    31       mSliderTickPosition( Hb::SliderTicksAbsolute )
       
    32 {
       
    33 }
       
    34 
       
    35 /*
       
    36  * Stub function
       
    37  */
       
    38 HbVolumeSliderPopup::~HbVolumeSliderPopup()
       
    39 {
       
    40 }
       
    41 
       
    42 /*
       
    43  * Stub function
       
    44  */
       
    45 int HbVolumeSliderPopup::value() const
       
    46 {
       
    47     return mValue;
       
    48 }
       
    49 
       
    50 /*
       
    51  * Stub function
       
    52  */
       
    53 bool HbVolumeSliderPopup::isVisible() const
       
    54 {
       
    55     return mVisible;
       
    56 }
       
    57 
       
    58 /*
       
    59  * Stub function
       
    60  */
       
    61 void HbVolumeSliderPopup::setVisible(bool visible)
       
    62 {
       
    63     mVisible = visible;
       
    64 }
       
    65 
       
    66 /*
       
    67  * Stub function
       
    68  */
       
    69 void HbVolumeSliderPopup::setRange(int min, int max)
       
    70 {
       
    71     mMinRange = min;
       
    72     mMaxRange = max;
       
    73 }
       
    74 
       
    75 /*
       
    76  * Stub function
       
    77  */
       
    78 void HbVolumeSliderPopup::setSingleStep(int step)
       
    79 {
       
    80     mSingleStep = step;
       
    81 }
       
    82 
       
    83 /*
       
    84  * Stub function
       
    85  */
       
    86 void HbVolumeSliderPopup::setTickPosition(Hb::SliderTickPositions position)
       
    87 {
       
    88     mSliderTickPosition = position;
       
    89 }
       
    90 
       
    91 /*
       
    92  * Stub function
       
    93  */
       
    94 void HbVolumeSliderPopup::setValue(int value)
       
    95 {
       
    96     mValue = value;
       
    97 }
       
    98 
       
    99 //end of file