videocollection/tsrc/stubs/src/videohintwidget.cpp
author hgs
Thu, 08 Jul 2010 13:05:19 +0300
changeset 44 518105d52e45
parent 36 8aed59de29f9
permissions -rw-r--r--
201027
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
34
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:   Videolist content widget implementation
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
#include "videohintwidget.h"
36
hgs
parents: 34
diff changeset
    19
#include "videohintwidgetdata.h"
hgs
parents: 34
diff changeset
    20
hgs
parents: 34
diff changeset
    21
int VideoHintWidgetData::mSettedHintLevel = -1;
hgs
parents: 34
diff changeset
    22
bool VideoHintWidgetData::mSettedButtonShowLevel = false;
34
hgs
parents:
diff changeset
    23
hgs
parents:
diff changeset
    24
VideoHintWidget::VideoHintWidget(VideoCollectionUiLoader *uiLoader,
hgs
parents:
diff changeset
    25
    QGraphicsItem *parent):
hgs
parents:
diff changeset
    26
    HbWidget(parent),
hgs
parents:
diff changeset
    27
    mUiLoader(uiLoader),
hgs
parents:
diff changeset
    28
    mCurrentLevel(AllVideos)
hgs
parents:
diff changeset
    29
{
hgs
parents:
diff changeset
    30
    // NOP
hgs
parents:
diff changeset
    31
}
hgs
parents:
diff changeset
    32
hgs
parents:
diff changeset
    33
VideoHintWidget::~VideoHintWidget()
hgs
parents:
diff changeset
    34
{
hgs
parents:
diff changeset
    35
    // nop
hgs
parents:
diff changeset
    36
}
hgs
parents:
diff changeset
    37
44
hgs
parents: 36
diff changeset
    38
void VideoHintWidget::initialize()
34
hgs
parents:
diff changeset
    39
{
hgs
parents:
diff changeset
    40
    // not stubbed
44
hgs
parents: 36
diff changeset
    41
    return;
34
hgs
parents:
diff changeset
    42
}
hgs
parents:
diff changeset
    43
hgs
parents:
diff changeset
    44
void VideoHintWidget::setLevel(HintLevel level)
hgs
parents:
diff changeset
    45
{
36
hgs
parents: 34
diff changeset
    46
    VideoHintWidgetData::mSettedHintLevel = (int)level; 
34
hgs
parents:
diff changeset
    47
}
hgs
parents:
diff changeset
    48
hgs
parents:
diff changeset
    49
void VideoHintWidget::setButtonShown(bool shown)
hgs
parents:
diff changeset
    50
{
36
hgs
parents: 34
diff changeset
    51
    VideoHintWidgetData::mSettedButtonShowLevel = shown;
34
hgs
parents:
diff changeset
    52
}
hgs
parents:
diff changeset
    53
hgs
parents:
diff changeset
    54
void VideoHintWidget::orientationChangedSlot(Qt::Orientation targetOrientation)
hgs
parents:
diff changeset
    55
{
hgs
parents:
diff changeset
    56
    Q_UNUSED(targetOrientation);
hgs
parents:
diff changeset
    57
    // not stubbed
hgs
parents:
diff changeset
    58
}
hgs
parents:
diff changeset
    59
hgs
parents:
diff changeset
    60
void VideoHintWidget::activate()
hgs
parents:
diff changeset
    61
{
36
hgs
parents: 34
diff changeset
    62
    setVisible(true);
34
hgs
parents:
diff changeset
    63
}
hgs
parents:
diff changeset
    64
hgs
parents:
diff changeset
    65
void VideoHintWidget::deactivate()
hgs
parents:
diff changeset
    66
{
36
hgs
parents: 34
diff changeset
    67
    setVisible(false);
34
hgs
parents:
diff changeset
    68
}
hgs
parents:
diff changeset
    69
hgs
parents:
diff changeset
    70
void VideoHintWidget::updateUiComponents()
hgs
parents:
diff changeset
    71
{
hgs
parents:
diff changeset
    72
    // not stubbed
hgs
parents:
diff changeset
    73
}
hgs
parents:
diff changeset
    74
hgs
parents:
diff changeset
    75
// end of file