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