36
|
1 |
/*
|
|
2 |
* Copyright (c) 2010 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: VideoServiceBrowse class definition
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
37
|
18 |
// Version : %version: 3 %
|
36
|
19 |
|
|
20 |
#ifndef VIDEOSERVICEBROWSE_H
|
|
21 |
#define VIDEOSERVICEBROWSE_H
|
|
22 |
|
|
23 |
//INCLUDES
|
|
24 |
#include <xqserviceprovider.h>
|
|
25 |
|
|
26 |
// FORWARD DECLARATIONS
|
|
27 |
class VideoServices;
|
|
28 |
|
|
29 |
class VideoServiceBrowse : public XQServiceProvider
|
|
30 |
{
|
|
31 |
Q_OBJECT
|
|
32 |
|
|
33 |
public:
|
|
34 |
VideoServiceBrowse( VideoServices *parent = 0 );
|
|
35 |
~VideoServiceBrowse();
|
|
36 |
|
|
37 |
public:
|
|
38 |
|
|
39 |
/**
|
|
40 |
* Complete pending service request
|
|
41 |
*
|
|
42 |
* @param None
|
|
43 |
* @return None
|
|
44 |
*/
|
|
45 |
void complete();
|
|
46 |
|
|
47 |
/**
|
|
48 |
* Get current browsing category
|
|
49 |
*
|
|
50 |
* @param None
|
|
51 |
* @return VideoServices::TVideoCategory
|
|
52 |
*/
|
|
53 |
int getBrowseCategory() const;
|
|
54 |
|
|
55 |
/**
|
|
56 |
* Return context title of videos application
|
|
57 |
*
|
|
58 |
* @param None
|
|
59 |
* @return QString
|
|
60 |
*/
|
|
61 |
QString contextTitle() const;
|
|
62 |
|
37
|
63 |
/**
|
|
64 |
* Return sort role.
|
|
65 |
*
|
|
66 |
* @param None.
|
|
67 |
* @return int.
|
|
68 |
*/
|
|
69 |
int sortRole() const;
|
|
70 |
|
36
|
71 |
public slots:
|
|
72 |
|
|
73 |
/**
|
|
74 |
* Browse video
|
|
75 |
*
|
|
76 |
* @param title, Title of the embedded Videos application
|
|
77 |
* @param category, Category which type of videos are browsed
|
37
|
78 |
* @param sort, Sort type.
|
36
|
79 |
* @return None
|
|
80 |
*/
|
37
|
81 |
void browseVideos(const QString &title, int category, int sortRole);
|
36
|
82 |
|
|
83 |
private:
|
|
84 |
/** request index of the service */
|
|
85 |
int mRequestIndex;
|
|
86 |
|
|
87 |
/** reference to VideoServices instance */
|
|
88 |
VideoServices *mServiceApp;
|
|
89 |
|
|
90 |
/** current browsing category */
|
|
91 |
int mCategory;
|
|
92 |
|
|
93 |
/** title of the service client, if not set "Videos" is used */
|
|
94 |
QString mTitle;
|
37
|
95 |
|
|
96 |
/** sorting role */
|
|
97 |
int mSortRole;
|
36
|
98 |
};
|
|
99 |
|
|
100 |
#endif//VIDEOSERVICEBROWSE_H
|