videocollection/tsrc/stubs/src/videolistwidget.cpp
changeset 15 cf5481c2bc0b
child 17 69946d1824c4
equal deleted inserted replaced
2:dec420019252 15:cf5481c2bc0b
       
     1 /*
       
     2 * Copyright (c) 2008 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 "videolistwidget.h"
       
    19 #include "videolistwidgetdata.h"
       
    20 #include "videocollectioncommon.h"
       
    21 
       
    22 int VideoListWidgetData::mInitializeCount = 0;
       
    23 int VideoListWidgetData::mInitializeReturnValue = 0;
       
    24 int VideoListWidgetData::mActivateCount = 0;
       
    25 int VideoListWidgetData::mActivateReturnValue = 0;
       
    26 bool VideoListWidgetData::mActive = false;
       
    27 int VideoListWidgetData::mDeactivateCount = 0;
       
    28 
       
    29 VideoListWidget::VideoListWidget(VideoCollectionUiLoader* uiLoader, HbView *parent):
       
    30     HbListView(parent),
       
    31     mModel(0),
       
    32     mVideoServices(0),
       
    33     mCurrentLevel(VideoCollectionCommon::ELevelInvalid),
       
    34     mSignalsConnected(false),
       
    35     mIsService(false),
       
    36     mNavKeyBackAction(0),
       
    37     mNavKeyQuitAction(0),
       
    38     mContextMenu(0),
       
    39     mSelectionMode(HbAbstractItemView::NoSelection),
       
    40     mScrollPositionTimer(0),
       
    41     mUiLoader(uiLoader)
       
    42 {
       
    43     // nop
       
    44 }
       
    45 
       
    46 VideoListWidget::~VideoListWidget()
       
    47 {
       
    48     VideoListWidgetData::reset();
       
    49 }
       
    50 
       
    51 int VideoListWidget::initialize(VideoSortFilterProxyModel &model,
       
    52     VideoServices *videoServices)
       
    53 {
       
    54     Q_UNUSED(videoServices);
       
    55 
       
    56     VideoListWidgetData::mInitializeCount++;
       
    57     mModel = &model;
       
    58     
       
    59     return VideoListWidgetData::mInitializeReturnValue;
       
    60 }
       
    61 
       
    62 int VideoListWidget::activate()
       
    63 {
       
    64     return activate(mCurrentLevel);
       
    65 }
       
    66 
       
    67 int VideoListWidget::activate(VideoCollectionCommon::TCollectionLevels level)
       
    68 {
       
    69     VideoListWidgetData::mActive = true;
       
    70     VideoListWidgetData::mActivateCount++;
       
    71     mCurrentLevel = level;
       
    72     
       
    73     return VideoListWidgetData::mActivateReturnValue;
       
    74 }
       
    75 
       
    76 void VideoListWidget::deactivate()
       
    77 {
       
    78     VideoListWidgetData::mActive = false;
       
    79     VideoListWidgetData::mDeactivateCount++;
       
    80 }
       
    81 
       
    82 int VideoListWidget::connectSignals()
       
    83 {
       
    84     // not stubbed
       
    85 	return 0;
       
    86 }
       
    87 
       
    88 void VideoListWidget::disConnectSignals()
       
    89 {
       
    90     // not stubbed
       
    91 }
       
    92 
       
    93 void VideoListWidget::deleteItemSlot()
       
    94 {
       
    95     // not stubbed
       
    96 }
       
    97 
       
    98 void VideoListWidget::createContextMenu()
       
    99 {
       
   100     // not stubbed
       
   101 }
       
   102 
       
   103 void VideoListWidget::setContextMenu()
       
   104 {
       
   105     // not stubbed
       
   106 }
       
   107 
       
   108 VideoCollectionCommon::TCollectionLevels VideoListWidget::getLevel()
       
   109 {
       
   110     // not stubbed
       
   111     return VideoCollectionCommon::ELevelInvalid;
       
   112 }
       
   113 
       
   114 VideoSortFilterProxyModel& VideoListWidget::getModel()
       
   115 { 
       
   116     return *mModel;
       
   117 }
       
   118 
       
   119 void VideoListWidget::emitActivated (const QModelIndex &modelIndex)
       
   120 {
       
   121     Q_UNUSED(modelIndex);
       
   122     // not stubbed
       
   123 }
       
   124 
       
   125 void VideoListWidget::setSelectionMode(int mode)
       
   126 {
       
   127     Q_UNUSED(mode);
       
   128     // not stubbed
       
   129 }
       
   130 
       
   131 void VideoListWidget::longPressGesture (const QPointF &point)
       
   132 {
       
   133     Q_UNUSED(point);
       
   134     // not stubbed
       
   135 }
       
   136 
       
   137 void VideoListWidget::playItemSlot()
       
   138 {
       
   139     // not stubbed
       
   140 }
       
   141 
       
   142 void VideoListWidget::doDelayedsSlot()
       
   143 {
       
   144     // not stubbed    
       
   145 }
       
   146 
       
   147 void VideoListWidget::openDetailsSlot()
       
   148 {   
       
   149     // not stubbed
       
   150 }
       
   151 
       
   152 void VideoListWidget::renameSlot()
       
   153 {
       
   154     // not stubbed
       
   155 }
       
   156 
       
   157 void VideoListWidget::addToCollectionSlot()
       
   158 {
       
   159     // not stubbed
       
   160 }
       
   161 
       
   162 void VideoListWidget::removeCollectionSlot()
       
   163 {
       
   164     // not stubbed
       
   165 }
       
   166 
       
   167 void VideoListWidget::removeFromCollectionSlot()
       
   168 {
       
   169     // not stubbed
       
   170 }
       
   171 
       
   172 void VideoListWidget::playAllSlot()
       
   173 {
       
   174     // not stubbed
       
   175 }
       
   176 
       
   177 void VideoListWidget::back()
       
   178 {
       
   179     // not stubbed
       
   180 }
       
   181 
       
   182 void VideoListWidget::scrollingStartedSlot()
       
   183 {
       
   184     // not stubbed
       
   185 }
       
   186 
       
   187 void VideoListWidget::scrollingEndedSlot()
       
   188 {
       
   189     // not stubbed
       
   190 }
       
   191 
       
   192 void VideoListWidget::scrollPositionChangedSlot(const QPointF &newPosition)
       
   193 {
       
   194     Q_UNUSED(newPosition);
       
   195     // not stubbed
       
   196 }
       
   197 
       
   198 void VideoListWidget::scrollPositionTimerSlot()
       
   199 {
       
   200     // not stubbed
       
   201 }
       
   202 
       
   203 void VideoListWidget::fetchThumbnailsForVisibleItems()
       
   204 {
       
   205     // not stubbed
       
   206 }
       
   207 
       
   208 void VideoListWidget::debugNotImplementedYet()
       
   209 {
       
   210     // not stubbed
       
   211 }
       
   212 
       
   213 // end of file