videoplayerapp/videoplayerengine/inc/videoservicebrowse.h
author hgs
Fri, 30 Apr 2010 09:52:11 +0300
changeset 37 4eb2df7f7cbe
parent 36 8aed59de29f9
child 24 7d93ee07fb27
permissions -rw-r--r--
201017

/*
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:   VideoServiceBrowse class definition
*
*/

// Version : %version: 3 %

#ifndef VIDEOSERVICEBROWSE_H
#define VIDEOSERVICEBROWSE_H

//INCLUDES
#include <xqserviceprovider.h>

// FORWARD DECLARATIONS
class VideoServices; 

class VideoServiceBrowse : public XQServiceProvider
{
    Q_OBJECT
    
public:
    VideoServiceBrowse( VideoServices *parent = 0 );
    ~VideoServiceBrowse();
    
public:

    /**
     *  Complete pending service request
     *
     *  @param None
     *  @return None
     */
    void complete();

    /**
     *  Get current browsing category
     *
     *  @param None
     *  @return VideoServices::TVideoCategory
     */
    int getBrowseCategory() const;

    /**
     *  Return context title of videos application
     *
     *  @param None
     *  @return QString
     */
    QString contextTitle() const;
    
    /**
     * Return sort role.
     * 
     * @param None.
     * @return int.
     */
    int sortRole() const;
    
public slots:

    /**
     *  Browse video
     *
     *  @param title, Title of the embedded Videos application
     *  @param category, Category which type of videos are browsed
     *  @param sort, Sort type.
     *  @return None
     */
    void browseVideos(const QString &title, int category, int sortRole);

private:
    /** request index of the service */
    int mRequestIndex;
    
    /** reference to VideoServices instance */
    VideoServices *mServiceApp;
    
    /** current browsing category */
    int mCategory;
    
    /** title of the service client, if not set "Videos" is used */
    QString mTitle;
    
    /** sorting role */
    int mSortRole;
};

#endif//VIDEOSERVICEBROWSE_H