63
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 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: VideoListToolbar class source code
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
66
|
18 |
// Version : %version: 2 %
|
63
|
19 |
|
|
20 |
// INCLUDE FILES
|
|
21 |
#include <qactiongroup.h>
|
|
22 |
#include <hbaction.h>
|
|
23 |
|
|
24 |
#include "videolisttoolbar.h"
|
|
25 |
#include "videolisttoolbardata.h"
|
|
26 |
#include "videolistview.h"
|
|
27 |
#include "videocollectionuiloader.h"
|
|
28 |
#include "videocollectioncommon.h"
|
|
29 |
#include "videocollectionviewutils.h"
|
|
30 |
|
|
31 |
int VideoListToolbarData::mViewStateChangedCount(0);
|
|
32 |
VideoCollectionCommon::TCollectionLevels VideoListToolbarData::mViewStateChangedLevel(
|
|
33 |
VideoCollectionCommon::ELevelInvalid);
|
|
34 |
bool VideoListToolbarData::mViewStateChangedNoVideos(false);
|
|
35 |
bool VideoListToolbarData::mViewStateChangedModelReady(false);
|
|
36 |
|
|
37 |
// ---------------------------------------------------------------------------
|
|
38 |
// Constructor
|
|
39 |
// ---------------------------------------------------------------------------
|
|
40 |
//
|
|
41 |
VideoListToolbar::VideoListToolbar(VideoCollectionUiLoader* uiLoader, VideoListView* parent)
|
|
42 |
: QObject(parent)
|
|
43 |
, mUiUtils(VideoCollectionViewUtils::instance())
|
|
44 |
{
|
|
45 |
Q_UNUSED(uiLoader);
|
|
46 |
}
|
|
47 |
|
|
48 |
// ---------------------------------------------------------------------------
|
|
49 |
// Destructor
|
|
50 |
// ---------------------------------------------------------------------------
|
|
51 |
//
|
|
52 |
VideoListToolbar::~VideoListToolbar()
|
|
53 |
{
|
|
54 |
}
|
|
55 |
|
|
56 |
// ---------------------------------------------------------------------------
|
|
57 |
// initialize()
|
|
58 |
// ---------------------------------------------------------------------------
|
|
59 |
//
|
|
60 |
void VideoListToolbar::initialize()
|
|
61 |
{
|
|
62 |
}
|
|
63 |
|
|
64 |
// ---------------------------------------------------------------------------
|
|
65 |
// viewStateChanged()
|
|
66 |
// ---------------------------------------------------------------------------
|
|
67 |
//
|
|
68 |
void VideoListToolbar::viewStateChanged(
|
|
69 |
VideoCollectionCommon::TCollectionLevels currentLevel,
|
|
70 |
bool noVideos, bool modelReady)
|
|
71 |
{
|
|
72 |
VideoListToolbarData::mViewStateChangedCount++;
|
|
73 |
VideoListToolbarData::mViewStateChangedLevel = currentLevel;
|
|
74 |
VideoListToolbarData::mViewStateChangedNoVideos = noVideos;
|
|
75 |
VideoListToolbarData::mViewStateChangedModelReady = modelReady;
|
|
76 |
}
|
|
77 |
|
|
78 |
// ---------------------------------------------------------------------------
|
|
79 |
// createToolbarActions()
|
|
80 |
// Creates toolbar actions and toolbar icons
|
|
81 |
// ---------------------------------------------------------------------------
|
|
82 |
//
|
|
83 |
void VideoListToolbar::createToolbarActions()
|
|
84 |
{
|
|
85 |
}
|
|
86 |
|
|
87 |
// ---------------------------------------------------------------------------
|
|
88 |
// createOperatorServicesToolbar()
|
|
89 |
// ---------------------------------------------------------------------------
|
|
90 |
//
|
|
91 |
void VideoListToolbar::createOperatorServicesToolbarActions()
|
|
92 |
{
|
|
93 |
}
|
|
94 |
|
|
95 |
// ---------------------------------------------------------------------------
|
|
96 |
// loadOperatorService()
|
|
97 |
// ---------------------------------------------------------------------------
|
|
98 |
//
|
|
99 |
void VideoListToolbar::loadOperatorService(int titleKey, int iconKey, int uriKey, int uidKey)
|
|
100 |
{
|
|
101 |
Q_UNUSED(titleKey);
|
|
102 |
Q_UNUSED(iconKey);
|
|
103 |
Q_UNUSED(uriKey);
|
|
104 |
Q_UNUSED(uidKey);
|
|
105 |
}
|
|
106 |
|
|
107 |
// -------------------------------------------------------------------------------------------------
|
|
108 |
// addVideosToCollectionSlot()
|
|
109 |
// -------------------------------------------------------------------------------------------------
|
|
110 |
//
|
|
111 |
void VideoListToolbar::addVideosToCollectionSlot()
|
|
112 |
{
|
|
113 |
}
|
|
114 |
|
|
115 |
// -------------------------------------------------------------------------------------------------
|
|
116 |
// removeVideosFromCollectionSlot()
|
|
117 |
// -------------------------------------------------------------------------------------------------
|
|
118 |
//
|
|
119 |
void VideoListToolbar::removeVideosFromCollectionSlot()
|
|
120 |
{
|
|
121 |
}
|
|
122 |
|
|
123 |
// ---------------------------------------------------------------------------
|
|
124 |
// createAction()
|
|
125 |
// ---------------------------------------------------------------------------
|
|
126 |
//
|
|
127 |
HbAction* VideoListToolbar::createAction(QString icon,
|
|
128 |
QActionGroup* actionGroup, const char *slot)
|
|
129 |
{
|
|
130 |
Q_UNUSED(icon);
|
|
131 |
Q_UNUSED(actionGroup);
|
|
132 |
Q_UNUSED(slot);
|
|
133 |
|
|
134 |
return 0;
|
|
135 |
}
|
|
136 |
|
|
137 |
// End of file
|