equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: Implementation of VideoServiceUriFetch |
14 * Description: Implementation of VideoServiceUriFetch |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: % |
18 // Version : %version: 3 % |
19 |
19 |
20 #include <hbapplication.h> |
20 #include <hbapplication.h> |
21 |
21 |
22 #include "videoservices.h" |
22 #include "videoservices.h" |
23 #include "videoservicebrowse.h" |
23 #include "videoservicebrowse.h" |
30 // |
30 // |
31 VideoServiceBrowse::VideoServiceBrowse( VideoServices* parent ) |
31 VideoServiceBrowse::VideoServiceBrowse( VideoServices* parent ) |
32 : XQServiceProvider( QLatin1String("com.nokia.Videos.IVideoBrowse"), parent ) |
32 : XQServiceProvider( QLatin1String("com.nokia.Videos.IVideoBrowse"), parent ) |
33 , mRequestIndex( 0 ) |
33 , mRequestIndex( 0 ) |
34 , mServiceApp( parent ) |
34 , mServiceApp( parent ) |
|
35 , mCategory( 0 ) |
|
36 , mTitle( "" ) |
|
37 , mSortRole( 0 ) |
35 { |
38 { |
36 MPX_ENTER_EXIT(_L("VideoServiceBrowse::VideoServiceBrowse()")); |
39 MPX_ENTER_EXIT(_L("VideoServiceBrowse::VideoServiceBrowse()")); |
37 |
40 |
38 publishAll(); |
41 publishAll(); |
39 } |
42 } |
93 MPX_DEBUG(_L("VideoServiceBrowse::contextTitle() ret %s"), mTitle.data() ); |
96 MPX_DEBUG(_L("VideoServiceBrowse::contextTitle() ret %s"), mTitle.data() ); |
94 return mTitle; |
97 return mTitle; |
95 } |
98 } |
96 |
99 |
97 // ------------------------------------------------------------------------------------------------- |
100 // ------------------------------------------------------------------------------------------------- |
|
101 // sortRole() |
|
102 // ------------------------------------------------------------------------------------------------- |
|
103 // |
|
104 int VideoServiceBrowse::sortRole() const |
|
105 { |
|
106 MPX_DEBUG(_L("VideoServiceBrowse::getBrowseCategory() ret %d"), mSortRole); |
|
107 return mSortRole; |
|
108 } |
|
109 |
|
110 // ------------------------------------------------------------------------------------------------- |
98 // browseVideos() |
111 // browseVideos() |
99 // ------------------------------------------------------------------------------------------------- |
112 // ------------------------------------------------------------------------------------------------- |
100 // |
113 // |
101 void VideoServiceBrowse::browseVideos(const QString &title, int category) |
114 void VideoServiceBrowse::browseVideos(const QString &title, |
|
115 int category, |
|
116 int sortRole) |
102 { |
117 { |
103 MPX_ENTER_EXIT(_L("VideoServiceBrowse::browseVideos()")); |
118 MPX_ENTER_EXIT(_L("VideoServiceBrowse::browseVideos()")); |
104 |
119 |
105 // set application title |
120 // set application title |
106 QString appTitle(title); |
121 QString appTitle(title); |
109 appTitle = hbTrId("txt_videos_title_videos"); |
124 appTitle = hbTrId("txt_videos_title_videos"); |
110 } |
125 } |
111 |
126 |
112 mTitle = appTitle; |
127 mTitle = appTitle; |
113 mCategory = category; |
128 mCategory = category; |
|
129 mSortRole = sortRole; |
114 |
130 |
115 // start service |
131 // start service |
116 mServiceApp->setCurrentService(VideoServices::EBrowse); |
132 mServiceApp->setCurrentService(VideoServices::EBrowse); |
117 emit mServiceApp->titleReady(appTitle); |
133 emit mServiceApp->titleReady(appTitle); |
118 emit mServiceApp->activated(MpxHbVideoCommon::ActivateCollectionView); |
134 emit mServiceApp->activated(MpxHbVideoCommon::ActivateCollectionView); |