videocollection/tsrc/stubs/src/videoservicebrowse.cpp
changeset 17 69946d1824c4
child 20 b9e04db066d4
equal deleted inserted replaced
15:cf5481c2bc0b 17:69946d1824c4
       
     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:  Implementation of VideoServiceBrowse Stub
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version: %
       
    19 
       
    20 #include <hbapplication.h>
       
    21 
       
    22 #include "videoservices.h"
       
    23 #include "videoservicebrowse.h"
       
    24 #include "mpxhbvideocommondefs.h"
       
    25 #include "videoservicebrowsedata.h"
       
    26 
       
    27 int VideoServiceBrowseData::mBrowseCategory = 0;
       
    28 
       
    29 /*!
       
    30     Constructor.
       
    31     \param parent, Pointer to the video services.
       
    32 */
       
    33 VideoServiceBrowse::VideoServiceBrowse(VideoServices* parent)
       
    34     : XQServiceProvider( "TestListView" )
       
    35     , mRequestIndex( 0 )
       
    36     , mServiceApp( parent )
       
    37 {
       
    38     // not stubbed
       
    39 }
       
    40 
       
    41 /*!
       
    42     Destructor.
       
    43 */
       
    44 VideoServiceBrowse::~VideoServiceBrowse()
       
    45 {
       
    46     // not stubbed
       
    47 }
       
    48 
       
    49 /*!
       
    50     Complete pending service request.
       
    51     \param None.
       
    52     \return None.
       
    53 */
       
    54 void VideoServiceBrowse::complete()
       
    55 {
       
    56     // not stubbed
       
    57 }
       
    58 
       
    59 /*!
       
    60     Get current browsing category.
       
    61     \param None.
       
    62     \return VideoServices::TVideoCategory.
       
    63 */
       
    64 int VideoServiceBrowse::getBrowseCategory() const
       
    65 {
       
    66     return VideoServiceBrowseData::mBrowseCategory;
       
    67 }
       
    68 
       
    69 /*!
       
    70     Return context title of videos application.
       
    71     \param None.
       
    72     \return QString.
       
    73 */
       
    74 QString VideoServiceBrowse::contextTitle() const
       
    75 {
       
    76     // not stubbed
       
    77     return QString();
       
    78 }
       
    79 
       
    80 /*!
       
    81     Browse videos.
       
    82     \param title, Title of the embedded Videos application.
       
    83     \param category, Category which type of videos are browsed.
       
    84     \return None.
       
    85 */
       
    86 void VideoServiceBrowse::browseVideos(const QString &title, int category)
       
    87 {
       
    88     // not stubbed
       
    89 }
       
    90 
       
    91 // End of file