videocollection/tsrc/stubs/src/videolistview.cpp
changeset 34 bbb98528c666
child 35 3738fe97f027
equal deleted inserted replaced
33:48e74db5d516 34:bbb98528c666
       
     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:   Videolist view class source code
       
    15 *
       
    16 */
       
    17 
       
    18 #include "videolistview.h"
       
    19 #include "videocollectionviewutils.h"
       
    20 #include "videocollectionwrapper.h"
       
    21 
       
    22 #include "videolistviewdata.h"
       
    23 
       
    24 int VideoListViewData::mActivateViewCount = 0;
       
    25 int VideoListViewData::mBackCount = 0;
       
    26 int VideoListViewData::mDeactivateViewCount = 0;
       
    27 int VideoListViewData::mInitializeViewCount = 0;
       
    28 
       
    29 VideoListView::VideoListView(VideoCollectionUiLoader *uiLoader, QGraphicsItem *parent) :
       
    30 HbView(parent),
       
    31 mUiUtils(VideoCollectionViewUtils::instance()),
       
    32 mWrapper(VideoCollectionWrapper::instance()),
       
    33 mUiLoader(uiLoader),
       
    34 mIsService(false),
       
    35 mModelReady(false),
       
    36 mVideoServices(0),
       
    37 mCurrentList(0),
       
    38 mToolbarViewsActionGroup(0),
       
    39 mToolbarCollectionActionGroup(0)
       
    40 {
       
    41     // not stubbed
       
    42 }
       
    43 
       
    44 VideoListView::~VideoListView()
       
    45 {
       
    46     VideoListViewData::reset();
       
    47     
       
    48     // disconnect signals
       
    49     disconnect();
       
    50 }
       
    51 
       
    52 int VideoListView::initializeView()
       
    53 {
       
    54     // not stubbed
       
    55     VideoListViewData::mInitializeViewCount++;
       
    56     return 0;
       
    57 }
       
    58 
       
    59 void VideoListView::titleReadySlot(const QString& title)
       
    60 {
       
    61     Q_UNUSED(title);
       
    62     // not stubbed
       
    63 }
       
    64 
       
    65 int VideoListView::activateView()
       
    66 {
       
    67     VideoListViewData::mActivateViewCount++;
       
    68     return 0;
       
    69 }
       
    70 
       
    71 void VideoListView::modelReadySlot()
       
    72 {
       
    73     // not stubbed
       
    74 }
       
    75 
       
    76 void VideoListView::layoutChangedSlot()
       
    77 {
       
    78     // not stubbed
       
    79 }
       
    80 
       
    81 void VideoListView::deactivateView()
       
    82 {
       
    83     VideoListViewData::mDeactivateViewCount++;
       
    84 }
       
    85 
       
    86 void VideoListView::back()
       
    87 {
       
    88     VideoListViewData::mBackCount++;
       
    89 }
       
    90 
       
    91 void VideoListView::cleanup()
       
    92 {
       
    93     // not stubbed
       
    94 }
       
    95 
       
    96 int VideoListView::createToolbar()
       
    97 {
       
    98     // not stubbed
       
    99     return 0;
       
   100 }
       
   101 
       
   102 HbAction* VideoListView::createAction(QString icon,
       
   103     QActionGroup* actionGroup,
       
   104     const char *slot)
       
   105 {
       
   106     Q_UNUSED(icon);
       
   107     Q_UNUSED(actionGroup);
       
   108     Q_UNUSED(slot);
       
   109     // not stubbed
       
   110     return 0;
       
   111 }
       
   112 
       
   113 void VideoListView::showHint(bool show)
       
   114 {
       
   115     Q_UNUSED(show);
       
   116     // not stubbed
       
   117 }
       
   118 
       
   119 void VideoListView::setHintLevel(VideoHintWidget::HintLevel level)
       
   120 {
       
   121     Q_UNUSED(level);
       
   122     // not stubbed
       
   123 }
       
   124 
       
   125 void VideoListView::updateSubLabel()
       
   126 {
       
   127     // not stubbed
       
   128 }
       
   129 
       
   130 void VideoListView::showAction(bool show, const QString &name)
       
   131 {
       
   132     Q_UNUSED(show);
       
   133     Q_UNUSED(name);
       
   134     // not stubbed
       
   135 }
       
   136 
       
   137 bool VideoListView::isActionChecked(const QString &name)
       
   138 {
       
   139     Q_UNUSED(name);
       
   140     // not stubbed
       
   141     return true;
       
   142 }
       
   143 
       
   144 void VideoListView::setActionChecked(bool setChecked, const QString &name)
       
   145 {
       
   146     Q_UNUSED(setChecked);
       
   147     Q_UNUSED(name);
       
   148     // not stubbed
       
   149 }
       
   150 
       
   151 void VideoListView::openAllVideosViewSlot()
       
   152 {
       
   153     // not stubbed
       
   154 }
       
   155 
       
   156 void VideoListView::openCollectionViewSlot()
       
   157 {
       
   158     // not stubbed
       
   159 }
       
   160 
       
   161 void VideoListView::openNewAlbumSlot(const QModelIndex &parent,
       
   162     int start,
       
   163     int end)
       
   164 {
       
   165     Q_UNUSED(parent);
       
   166     Q_UNUSED(start);
       
   167     Q_UNUSED(end);
       
   168     // not stubbed
       
   169 }
       
   170 
       
   171 void VideoListView::openServicesViewSlot()
       
   172 {
       
   173     // not stubbed
       
   174 }
       
   175 
       
   176 void VideoListView::startSorting()
       
   177 {
       
   178     // not stubbed
       
   179 }
       
   180 
       
   181 void VideoListView::aboutToChangeOrientationSlot()
       
   182 {
       
   183     // not stubbed
       
   184 }
       
   185 
       
   186 void VideoListView::orientationChangedSlot(Qt::Orientation orientation)
       
   187 {
       
   188     Q_UNUSED(orientation);
       
   189     // not stubbed
       
   190 }
       
   191 
       
   192 void VideoListView::deleteItemsSlot()
       
   193 {
       
   194     // not stubbed
       
   195 }
       
   196 
       
   197 void VideoListView::createCollectionSlot()
       
   198 {
       
   199     // not stubbed
       
   200 }
       
   201 
       
   202 void VideoListView::addVideosToCollectionSlot()
       
   203 {
       
   204     // not stubbed
       
   205 }
       
   206 
       
   207 void VideoListView::aboutToShowMainMenuSlot()
       
   208 {
       
   209     // not stubbed
       
   210 }
       
   211 
       
   212 void VideoListView::handleAsyncStatusSlot(int statusCode, QVariant &additional)
       
   213 {
       
   214     Q_UNUSED(statusCode);
       
   215     Q_UNUSED(additional);
       
   216     // not stubbed
       
   217 }
       
   218 
       
   219 void VideoListView::collectionOpenedSlot(bool collectionOpened,
       
   220     const QString& collection,
       
   221     const QModelIndex &index)
       
   222 {
       
   223     Q_UNUSED(collectionOpened);
       
   224     Q_UNUSED(collection);
       
   225     Q_UNUSED(index);
       
   226     // not stubbed
       
   227 }
       
   228 
       
   229 void VideoListView::openSortByMenuSlot()
       
   230 {
       
   231     // not stubbed
       
   232 }
       
   233 
       
   234 void VideoListView::widgetReadySlot(QGraphicsWidget *widget, const QString &name)
       
   235 {
       
   236     Q_UNUSED(widget);
       
   237     Q_UNUSED(name);
       
   238     // not stubbed
       
   239 }
       
   240 
       
   241 void VideoListView::objectReadySlot(QObject *object, const QString &name)
       
   242 {
       
   243     Q_UNUSED(object);
       
   244     Q_UNUSED(name);
       
   245     // not stubbed
       
   246 }
       
   247 
       
   248 void VideoListView::debugNotImplementedYet()
       
   249 {
       
   250     // not stubbed
       
   251 }
       
   252 
       
   253 // end of file