videoplayback/videoplaybackview/tsrc/testvolumecontrol/stub/src/hbvolumesliderpopup.cpp
author hgs
Tue, 05 Oct 2010 09:26:49 +0300
changeset 66 adb51f74b890
permissions -rw-r--r--
201039
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
66
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description:  Implementation of HbVolumeSliderPopup
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
// Version : %version:   1 %
hgs
parents:
diff changeset
    19
hgs
parents:
diff changeset
    20
hgs
parents:
diff changeset
    21
hgs
parents:
diff changeset
    22
#include "mpxvideo_debug.h"
hgs
parents:
diff changeset
    23
#include "hbvolumesliderpopup.h"
hgs
parents:
diff changeset
    24
hgs
parents:
diff changeset
    25
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    26
// HbVolumeSliderPopup::HbVolumeSliderPopup
hgs
parents:
diff changeset
    27
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    28
//
hgs
parents:
diff changeset
    29
HbVolumeSliderPopup::HbVolumeSliderPopup()
hgs
parents:
diff changeset
    30
{
hgs
parents:
diff changeset
    31
    MPX_ENTER_EXIT(_L("HbVolumeSliderPopup::HbVolumeSliderPopup()"));
hgs
parents:
diff changeset
    32
}
hgs
parents:
diff changeset
    33
hgs
parents:
diff changeset
    34
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    35
// HbVolumeSliderPopup::~HbVolumeSliderPopup
hgs
parents:
diff changeset
    36
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    37
//
hgs
parents:
diff changeset
    38
HbVolumeSliderPopup::~HbVolumeSliderPopup()
hgs
parents:
diff changeset
    39
{
hgs
parents:
diff changeset
    40
    MPX_DEBUG(_L("HbVolumeSliderPopup::HbVolumeSliderPopup") );
hgs
parents:
diff changeset
    41
}
hgs
parents:
diff changeset
    42
hgs
parents:
diff changeset
    43
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    44
// HbVolumeSliderPopup::setEnabled
hgs
parents:
diff changeset
    45
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    46
//
hgs
parents:
diff changeset
    47
void HbVolumeSliderPopup::setEnabled( bool enabled )
hgs
parents:
diff changeset
    48
{
hgs
parents:
diff changeset
    49
    MPX_DEBUG(_L("HbVolumeSliderPopup::setEnabled %d"), enabled );
hgs
parents:
diff changeset
    50
hgs
parents:
diff changeset
    51
    mEnabled = enabled;
hgs
parents:
diff changeset
    52
}
hgs
parents:
diff changeset
    53
hgs
parents:
diff changeset
    54
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    55
// HbVolumeSliderPopup::isEnabled
hgs
parents:
diff changeset
    56
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    57
//
hgs
parents:
diff changeset
    58
bool HbVolumeSliderPopup::isEnabled()
hgs
parents:
diff changeset
    59
{
hgs
parents:
diff changeset
    60
    MPX_DEBUG(_L("HbVolumeSliderPopup::isEnabled %d"), mEnabled );
hgs
parents:
diff changeset
    61
hgs
parents:
diff changeset
    62
    return mEnabled;
hgs
parents:
diff changeset
    63
}
hgs
parents:
diff changeset
    64
hgs
parents:
diff changeset
    65
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    66
// HbVolumeSliderPopup::setVisible
hgs
parents:
diff changeset
    67
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    68
//
hgs
parents:
diff changeset
    69
void HbVolumeSliderPopup::setVisible( bool visible )
hgs
parents:
diff changeset
    70
{
hgs
parents:
diff changeset
    71
    MPX_DEBUG(_L("HbVolumeSliderPopup::setVisible %d"), visible );
hgs
parents:
diff changeset
    72
hgs
parents:
diff changeset
    73
    mVisible = visible;
hgs
parents:
diff changeset
    74
}
hgs
parents:
diff changeset
    75
hgs
parents:
diff changeset
    76
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    77
// HbVolumeSliderPopup::isVisible
hgs
parents:
diff changeset
    78
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    79
//
hgs
parents:
diff changeset
    80
bool HbVolumeSliderPopup::isVisible()
hgs
parents:
diff changeset
    81
{
hgs
parents:
diff changeset
    82
    MPX_DEBUG(_L("HbVolumeSliderPopup::isVisible %d"), mVisible );
hgs
parents:
diff changeset
    83
hgs
parents:
diff changeset
    84
    return mVisible;
hgs
parents:
diff changeset
    85
}
hgs
parents:
diff changeset
    86
hgs
parents:
diff changeset
    87
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    88
// HbVolumeSliderPopup::setValue
hgs
parents:
diff changeset
    89
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    90
//
hgs
parents:
diff changeset
    91
void HbVolumeSliderPopup::setValue( int value )
hgs
parents:
diff changeset
    92
{
hgs
parents:
diff changeset
    93
    MPX_DEBUG(_L("HbVolumeSliderPopup::setValue %d"), value );
hgs
parents:
diff changeset
    94
hgs
parents:
diff changeset
    95
    mValue = value;
hgs
parents:
diff changeset
    96
}
hgs
parents:
diff changeset
    97
hgs
parents:
diff changeset
    98
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
    99
// HbVolumeSliderPopup::setTimeout
hgs
parents:
diff changeset
   100
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
   101
//
hgs
parents:
diff changeset
   102
void HbVolumeSliderPopup::setTimeout( int timeout )
hgs
parents:
diff changeset
   103
{
hgs
parents:
diff changeset
   104
    MPX_DEBUG(_L("HbVolumeSliderPopup::setTimeout %d"), timeout );
hgs
parents:
diff changeset
   105
hgs
parents:
diff changeset
   106
    mTimeOut = timeout;
hgs
parents:
diff changeset
   107
}
hgs
parents:
diff changeset
   108
hgs
parents:
diff changeset
   109
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
   110
// HbVolumeSliderPopup::setTickPosition
hgs
parents:
diff changeset
   111
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
   112
//
hgs
parents:
diff changeset
   113
void HbVolumeSliderPopup::setTickPosition( Hb::SliderTickPositions position )
hgs
parents:
diff changeset
   114
{
hgs
parents:
diff changeset
   115
    MPX_DEBUG(_L("HbVolumeSliderPopup::setTickPosition"));
hgs
parents:
diff changeset
   116
hgs
parents:
diff changeset
   117
    mPosition = position;
hgs
parents:
diff changeset
   118
}
hgs
parents:
diff changeset
   119
hgs
parents:
diff changeset
   120
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
   121
// HbVolumeSliderPopup::setRange
hgs
parents:
diff changeset
   122
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
   123
//
hgs
parents:
diff changeset
   124
void HbVolumeSliderPopup::setRange( int min, int max )
hgs
parents:
diff changeset
   125
{
hgs
parents:
diff changeset
   126
    MPX_DEBUG(_L("HbVolumeSliderPopup::setRange"));
hgs
parents:
diff changeset
   127
hgs
parents:
diff changeset
   128
    mMin = min;
hgs
parents:
diff changeset
   129
    mMax = max;
hgs
parents:
diff changeset
   130
}
hgs
parents:
diff changeset
   131
hgs
parents:
diff changeset
   132
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
   133
// HbVolumeSliderPopup::value
hgs
parents:
diff changeset
   134
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
   135
//
hgs
parents:
diff changeset
   136
int HbVolumeSliderPopup::value()
hgs
parents:
diff changeset
   137
{
hgs
parents:
diff changeset
   138
    MPX_DEBUG(_L("HbVolumeSliderPopup::value"));
hgs
parents:
diff changeset
   139
hgs
parents:
diff changeset
   140
    return mValue;
hgs
parents:
diff changeset
   141
}
hgs
parents:
diff changeset
   142
hgs
parents:
diff changeset
   143
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
   144
// HbVolumeSliderPopup::setSingleStep
hgs
parents:
diff changeset
   145
// -------------------------------------------------------------------------------------------------
hgs
parents:
diff changeset
   146
//
hgs
parents:
diff changeset
   147
void HbVolumeSliderPopup::setSingleStep( int steps )
hgs
parents:
diff changeset
   148
{
hgs
parents:
diff changeset
   149
    MPX_DEBUG(_L("HbVolumeSliderPopup::setSingleStep"));
hgs
parents:
diff changeset
   150
hgs
parents:
diff changeset
   151
    mSteps = steps;
hgs
parents:
diff changeset
   152
}
hgs
parents:
diff changeset
   153
hgs
parents:
diff changeset
   154
// End of file