13 * |
13 * |
14 * Description: Implementation of VideoServiceUriFetch |
14 * Description: Implementation of VideoServiceUriFetch |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: 4 % |
18 // Version : %version: 5 % |
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" |
106 { |
106 { |
107 MPX_DEBUG(_L("VideoServiceBrowse::getBrowseCategory() ret %d"), mSortRole); |
107 MPX_DEBUG(_L("VideoServiceBrowse::getBrowseCategory() ret %d"), mSortRole); |
108 return mSortRole; |
108 return mSortRole; |
109 } |
109 } |
110 |
110 |
111 // ------------------------------------------------------------------------------------------------- |
|
112 // browseVideos() |
|
113 // ------------------------------------------------------------------------------------------------- |
|
114 // |
|
115 void VideoServiceBrowse::browseVideos(const QString &title, |
|
116 int category, |
|
117 int sortRole) |
|
118 { |
|
119 MPX_ENTER_EXIT(_L("VideoServiceBrowse::browseVideos()")); |
|
120 |
|
121 // set application title |
|
122 QString appTitle(title); |
|
123 if (appTitle.isEmpty()) |
|
124 { |
|
125 appTitle = hbTrId("txt_videos_title_videos"); |
|
126 } |
|
127 |
|
128 mTitle = appTitle; |
|
129 mCategory = category; |
|
130 mSortRole = sortRole; |
|
131 |
|
132 // store async request id |
|
133 mRequestIndex = setCurrentRequestAsync(); |
|
134 |
|
135 // start service |
|
136 mServiceApp->setCurrentService(VideoServices::EBrowse); |
|
137 emit mServiceApp->titleReady(appTitle); |
|
138 emit mServiceApp->activated(MpxHbVideoCommon::ActivateCollectionView); |
|
139 |
|
140 MPX_DEBUG(_L("VideoServiceBrowse::browseVideos() : mRequestIndex = %d"), mRequestIndex ); |
|
141 } |
|
142 |
|
143 // ---------------------------------------------------------------------------- |
111 // ---------------------------------------------------------------------------- |
144 // isActive() |
112 // isActive() |
145 // ---------------------------------------------------------------------------- |
113 // ---------------------------------------------------------------------------- |
146 // |
114 // |
147 bool VideoServiceBrowse::isActive() |
115 bool VideoServiceBrowse::isActive() |