|
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 |
|
18 // Version : %version: % |
|
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 |
|
63 public slots: |
|
64 |
|
65 /** |
|
66 * Browse video |
|
67 * |
|
68 * @param title, Title of the embedded Videos application |
|
69 * @param category, Category which type of videos are browsed |
|
70 * @return None |
|
71 */ |
|
72 void browseVideos( const QString &title, int category ); |
|
73 |
|
74 private: |
|
75 /** request index of the service */ |
|
76 int mRequestIndex; |
|
77 |
|
78 /** reference to VideoServices instance */ |
|
79 VideoServices *mServiceApp; |
|
80 |
|
81 /** current browsing category */ |
|
82 int mCategory; |
|
83 |
|
84 /** title of the service client, if not set "Videos" is used */ |
|
85 QString mTitle; |
|
86 }; |
|
87 |
|
88 #endif//VIDEOSERVICEBROWSE_H |