videocollection/tsrc/stubs/src/videohintwidget.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 03 May 2010 12:32:50 +0300
changeset 17 69946d1824c4
parent 15 cf5481c2bc0b
child 44 518105d52e45
permissions -rw-r--r--
Revision: 201015 Kit: 201018

/*
* 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