videocollection/tsrc/stubs/src/videohintwidget.cpp
author hgs
Fri, 16 Apr 2010 18:13:14 +0300
changeset 36 8aed59de29f9
parent 34 bbb98528c666
child 44 518105d52e45
permissions -rw-r--r--
201015

/*
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:   Videolist content widget implementation
*
*/

#include "videohintwidget.h"
#include "videohintwidgetdata.h"

int VideoHintWidgetData::mSettedHintLevel = -1;
bool VideoHintWidgetData::mSettedButtonShowLevel = false;

VideoHintWidget::VideoHintWidget(VideoCollectionUiLoader *uiLoader,
    QGraphicsItem *parent):
    HbWidget(parent),
    mUiLoader(uiLoader),
    mServiceIcon(0),
    mAddVideosIcon(0),
    mCurrentLevel(AllVideos)
{
    // NOP
}

VideoHintWidget::~VideoHintWidget()
{
    // nop
}

int VideoHintWidget::initialize()
{
    // not stubbed
    return 0;
}

void VideoHintWidget::setLevel(HintLevel level)
{
    VideoHintWidgetData::mSettedHintLevel = (int)level; 
}

void VideoHintWidget::setButtonShown(bool shown)
{
    VideoHintWidgetData::mSettedButtonShowLevel = shown;
}

void VideoHintWidget::orientationChangedSlot(Qt::Orientation targetOrientation)
{
    Q_UNUSED(targetOrientation);
    // not stubbed
}

void VideoHintWidget::activate()
{
    setVisible(true);
}

void VideoHintWidget::deactivate()
{
    setVisible(false);
}

void VideoHintWidget::updateUiComponents()
{
    // not stubbed
}

// end of file