|
1 /* |
|
2 * Copyright (c) 2010 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: Videolist content widget implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "videohintwidget.h" |
|
19 #include "videohintwidgetdata.h" |
|
20 |
|
21 int VideoHintWidgetData::mSettedHintLevel = -1; |
|
22 bool VideoHintWidgetData::mSettedButtonShowLevel = false; |
|
23 |
|
24 VideoHintWidget::VideoHintWidget(VideoCollectionUiLoader *uiLoader, |
|
25 QGraphicsItem *parent): |
|
26 HbWidget(parent), |
|
27 mUiLoader(uiLoader), |
|
28 mCurrentLevel(AllVideos) |
|
29 { |
|
30 // NOP |
|
31 } |
|
32 |
|
33 VideoHintWidget::~VideoHintWidget() |
|
34 { |
|
35 // nop |
|
36 } |
|
37 |
|
38 void VideoHintWidget::initialize() |
|
39 { |
|
40 // not stubbed |
|
41 return; |
|
42 } |
|
43 |
|
44 void VideoHintWidget::setLevel(HintLevel level) |
|
45 { |
|
46 VideoHintWidgetData::mSettedHintLevel = (int)level; |
|
47 } |
|
48 |
|
49 void VideoHintWidget::setButtonShown(bool shown) |
|
50 { |
|
51 VideoHintWidgetData::mSettedButtonShowLevel = shown; |
|
52 } |
|
53 |
|
54 void VideoHintWidget::orientationChangedSlot(Qt::Orientation targetOrientation) |
|
55 { |
|
56 Q_UNUSED(targetOrientation); |
|
57 // not stubbed |
|
58 } |
|
59 |
|
60 void VideoHintWidget::activate() |
|
61 { |
|
62 setVisible(true); |
|
63 } |
|
64 |
|
65 void VideoHintWidget::deactivate() |
|
66 { |
|
67 setVisible(false); |
|
68 } |
|
69 |
|
70 void VideoHintWidget::updateUiComponents() |
|
71 { |
|
72 // not stubbed |
|
73 } |
|
74 |
|
75 // end of file |