53
|
1 |
/*
|
|
2 |
* Copyright (c) 2006 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: MPX podcast collection view implementation
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
#ifndef C_CMPXPODCASTCOLLECTIONVIEWIMP_H
|
|
21 |
#define C_CMPXPODCASTCOLLECTIONVIEWIMP_H
|
|
22 |
|
|
23 |
|
|
24 |
// INCLUDES
|
|
25 |
#include <eikspmod.h>
|
|
26 |
#include <eikclb.h>
|
|
27 |
#include <eikprogi.h>
|
|
28 |
#include <AknWaitDialog.h>
|
|
29 |
#include <mpxmediageneraldefs.h>
|
|
30 |
#include <mpxcollectionobserver.h>
|
|
31 |
#include <mpxplaybackobserver.h>
|
|
32 |
#include <mpxcollectionuihelper.h>
|
|
33 |
#include <mpxcollectionuihelperobserver.h>
|
|
34 |
#include <mpxcollectionhelper.h>
|
|
35 |
#include <mpxcollectionpath.h> // TMPXItemId
|
|
36 |
#include <mpxviewactivationobserver.h>
|
|
37 |
#include "mpxpodcastcollectionview.h"
|
|
38 |
|
|
39 |
#include "mpxplaybackframeworkdefs.h" // TMPXPlaybackPlayerType
|
|
40 |
|
|
41 |
// FORWARD DECLARATIONS
|
|
42 |
class CMPXPodcastCollectionViewContainer;
|
|
43 |
class MMPXCollectionUtility;
|
|
44 |
class CMPXCollectionPlaylist;
|
|
45 |
class MMPXPlaybackUtility;
|
|
46 |
class CMPXCommonUiHelper;
|
|
47 |
class MMPXViewUtility;
|
|
48 |
class CSendUi;
|
|
49 |
class CAknNavigationDecorator;
|
|
50 |
class CAknNaviLabel;
|
|
51 |
class CAknNavigationControlContainer;
|
|
52 |
class CEikButtonGroupContainer;
|
|
53 |
|
|
54 |
class MMPXPlayerManager;
|
|
55 |
class CAiwServiceHandler;
|
|
56 |
#ifdef UPNP_INCLUDED
|
|
57 |
class CUpnpCopyCommand;
|
|
58 |
#endif
|
|
59 |
// CLASS DECLARATION
|
|
60 |
|
|
61 |
/**
|
|
62 |
* MPX Podcast Collection view.
|
|
63 |
*
|
|
64 |
* @lib mpxpodcastcollectionview.lib
|
|
65 |
* @since S60 v3.0
|
|
66 |
*/
|
|
67 |
NONSHARABLE_CLASS( CMPXPodcastCollectionViewImp ) : public CMPXPodcastCollectionView,
|
|
68 |
public MMPXCollectionObserver,
|
|
69 |
public MMPXPlaybackObserver,
|
|
70 |
public MMPXPlaybackCallback,
|
|
71 |
public MEikListBoxObserver,
|
|
72 |
public MProgressDialogCallback,
|
|
73 |
public MMPXCollectionFindObserver,
|
|
74 |
public MMPXCHelperObserver,
|
|
75 |
public MMPXViewActivationObserver,
|
|
76 |
public MCoeViewDeactivationObserver,
|
|
77 |
public MCoeViewActivationObserver
|
|
78 |
{
|
|
79 |
public:
|
|
80 |
|
|
81 |
/**
|
|
82 |
* Two-phased constructor.
|
|
83 |
*
|
|
84 |
* @since 3.0
|
|
85 |
* @return Pointer to newly created object.
|
|
86 |
*/
|
|
87 |
static CMPXPodcastCollectionViewImp* NewL();
|
|
88 |
|
|
89 |
/**
|
|
90 |
* Two-phased constructor.
|
|
91 |
*
|
|
92 |
* @since 3.0
|
|
93 |
* @return Pointer to newly created object.
|
|
94 |
*/
|
|
95 |
static CMPXPodcastCollectionViewImp* NewLC();
|
|
96 |
|
|
97 |
/**
|
|
98 |
* Destructor.
|
|
99 |
*/
|
|
100 |
virtual ~CMPXPodcastCollectionViewImp();
|
|
101 |
|
|
102 |
/**
|
|
103 |
* Delete the selected items
|
|
104 |
*
|
|
105 |
* @ since 3.0
|
|
106 |
*/
|
|
107 |
void DeleteSelectedItemsL();
|
|
108 |
|
|
109 |
private:
|
|
110 |
|
|
111 |
/**
|
|
112 |
* C++ default constructor.
|
|
113 |
*/
|
|
114 |
CMPXPodcastCollectionViewImp();
|
|
115 |
|
|
116 |
/**
|
|
117 |
* By default Symbian 2nd phase constructor is private.
|
|
118 |
*/
|
|
119 |
void ConstructL();
|
|
120 |
|
|
121 |
/**
|
|
122 |
* Updates list box
|
|
123 |
*
|
|
124 |
* @param aEntries Podcast collection entries opened. Method may
|
|
125 |
* update the entries array by removing the playing item
|
|
126 |
* if currently within Never Played list view.
|
|
127 |
* @param aIndex focused entry
|
|
128 |
*/
|
|
129 |
void UpdateListBoxL(CMPXMedia& aEntries,
|
|
130 |
TInt aIndex );
|
|
131 |
|
|
132 |
/**
|
|
133 |
* Displays error notes.
|
|
134 |
*
|
|
135 |
* @param aError Error ID to be handled.
|
|
136 |
*/
|
|
137 |
void HandleErrorL( TInt aError );
|
|
138 |
|
|
139 |
/**
|
|
140 |
* Updates the navi pane
|
|
141 |
*/
|
|
142 |
void UpdateNaviPaneL();
|
|
143 |
|
|
144 |
/**
|
|
145 |
* Updates the title pane
|
|
146 |
*/
|
|
147 |
void UpdateTitlePaneL();
|
|
148 |
|
|
149 |
/**
|
|
150 |
* Updates the option menu
|
|
151 |
*
|
|
152 |
*/
|
|
153 |
void UpdateOptionMenuL();
|
|
154 |
|
|
155 |
/**
|
|
156 |
* Start either the delete wait note
|
|
157 |
*/
|
|
158 |
void StartDeleteWaitNoteL();
|
|
159 |
|
|
160 |
/**
|
|
161 |
* Updates the delete wait note text
|
|
162 |
*
|
|
163 |
* @param aDeleteText Text to be displayed on the delete wait note
|
|
164 |
*/
|
|
165 |
void UpdateProcessL(const TDesC& aDeleteNoteText);
|
|
166 |
|
|
167 |
/**
|
|
168 |
* Updates the copy to remote menu attachment
|
|
169 |
*
|
|
170 |
*/
|
|
171 |
void UpdateCopyToRemoteMenu(TInt aMenuPane);
|
|
172 |
|
|
173 |
/**
|
|
174 |
* Updates playback status/indicatior
|
|
175 |
* @param aStatusChangeFlag flag to indicate if a status change
|
|
176 |
* has indeed been detected
|
|
177 |
* Returns the current selection index if the paths match
|
|
178 |
*/
|
|
179 |
TInt UpdatePlaybackStatusL(TBool aStatusChangeFlag);
|
|
180 |
|
|
181 |
/**
|
|
182 |
* Change the button group
|
|
183 |
*
|
|
184 |
* @aResId resource ID
|
|
185 |
*/
|
|
186 |
void SetNewCbaL( TInt aResId );
|
|
187 |
|
|
188 |
/**
|
|
189 |
* Display collection details
|
|
190 |
*
|
|
191 |
* @param aMedia media object containing the library details
|
|
192 |
*/
|
|
193 |
void ShowCollectionDetailsL( const CMPXMedia& aMedia );
|
|
194 |
|
|
195 |
/**
|
|
196 |
* Handles Upnp menus from DynInitMenuPaneL()
|
|
197 |
*
|
|
198 |
* @param aResourceId the id of the resource being initialized
|
|
199 |
* @param aMenuPane the menu pane the resource belongs to
|
|
200 |
*/
|
|
201 |
void HandleDynInitUpnpL( TInt aResourceId, CEikMenuPane& aMenuPane );
|
|
202 |
|
|
203 |
/**
|
|
204 |
* Checks if UPnP AP is defined
|
|
205 |
*
|
|
206 |
* @return ETrue if visible, EFalse otherwise
|
|
207 |
*/
|
|
208 |
TBool IsUpnpVisibleL();
|
|
209 |
|
|
210 |
/**
|
|
211 |
* Displays the available players in the Play via submenu
|
|
212 |
*
|
|
213 |
* @param aMenuPane Menu pane to put the sub menu items
|
|
214 |
*/
|
|
215 |
void AddPlayersNamesToMenuL( CEikMenuPane& aMenuPane );
|
|
216 |
|
|
217 |
/**
|
|
218 |
* Adds one player type to the Play via submenu
|
|
219 |
*
|
|
220 |
* @param aMenuPane menu pane to add player name to
|
|
221 |
* @param aCommandId ID of the command
|
|
222 |
* @param aPlayerManager player manager
|
|
223 |
* @param aPlayerType type of the player
|
|
224 |
* @param aMenuText optional menu text
|
|
225 |
*/
|
|
226 |
void AddPlayerNameToMenuL( CEikMenuPane& aMenuPane,
|
|
227 |
TInt aCommandId,
|
|
228 |
MMPXPlayerManager& aPlayerManager,
|
|
229 |
TMPXPlaybackPlayerType& aPlayerType,
|
|
230 |
const TDesC& aMenuText = KNullDesC );
|
|
231 |
|
|
232 |
/**
|
|
233 |
* Retrieves the current player name and type
|
|
234 |
*/
|
|
235 |
void GetCurrentPlayerDetails();
|
|
236 |
|
|
237 |
/**
|
|
238 |
* Selects a new player for audio playback
|
|
239 |
*
|
|
240 |
* @param aCommand Command Id to identify which player to use
|
|
241 |
*/
|
|
242 |
void SelectNewPlayerL( TInt aCommand );
|
|
243 |
|
|
244 |
/**
|
|
245 |
* Copies selected file(s) to remote player
|
|
246 |
*/
|
|
247 |
void CopySelectedItemsToRemoteL();
|
|
248 |
|
|
249 |
/**
|
|
250 |
* Handle call back from collectionframework for Copy to Remote command
|
|
251 |
*
|
|
252 |
* @param aMedia media
|
|
253 |
* @param aComplete all selected medias have been found
|
|
254 |
*/
|
|
255 |
void DoHandleCopyToRemoteL(const CMPXMedia& aMedia,
|
|
256 |
TBool aComplete = ETrue );
|
|
257 |
|
|
258 |
|
|
259 |
/**
|
|
260 |
* checks if send option should be shown the option is selected
|
|
261 |
*
|
|
262 |
* @return ETrue if send command should be hided, EFalse if it should be shown
|
|
263 |
*/
|
|
264 |
TBool SendOptionVisibilityL();
|
|
265 |
|
|
266 |
/**
|
|
267 |
* Checks if file details option should be shown
|
|
268 |
*
|
|
269 |
* @return ETrue if the command should be hiden, EFalse if it should be shown
|
|
270 |
*/
|
|
271 |
TBool FileDetailsOptionVisibilityL();
|
|
272 |
|
|
273 |
/**
|
|
274 |
* Handle send command
|
|
275 |
*/
|
|
276 |
void DoSendL();
|
|
277 |
|
|
278 |
/**
|
|
279 |
* Handle call back from collectionframework for send command
|
|
280 |
*
|
|
281 |
* @param aMedia media
|
|
282 |
* @param aError error code
|
|
283 |
*/
|
|
284 |
void DoHandleSendL(const CMPXMedia& aMedia, TInt aError );
|
|
285 |
/**
|
|
286 |
* Prepares media object for selected items
|
|
287 |
*
|
|
288 |
* @param aMedia on return, populates the media object with a media array
|
|
289 |
* containing info for currently selected items used by playlist
|
|
290 |
* does not own this object
|
|
291 |
*
|
|
292 |
* @return error code
|
|
293 |
*/
|
|
294 |
TInt PrepareMediaForSelectedItemsL( CMPXMedia* aMedia );
|
|
295 |
|
|
296 |
/**
|
|
297 |
* Set/clears the flags for item in database
|
|
298 |
* @param aIndex index of the item in the list box
|
|
299 |
* @param aMedia media object containing at least the following attribute:
|
|
300 |
* TMPXAttribute( KMPXMediaIdGeneral,EMPXMediaGeneralCollectionId )
|
|
301 |
* @param aFlag flag to set/clear
|
|
302 |
* @param aSet ETrue to set the flag, EFalse to clear the flag
|
|
303 |
* @param aEnableInfoDialog ETrue to enable info dialog display, EFalse to disable
|
|
304 |
*/
|
|
305 |
void UpdateDatabaseFlagL( TInt aIndex,
|
|
306 |
const CMPXMedia& aMedia,
|
|
307 |
TUint aFlag,
|
|
308 |
TBool aSet,
|
|
309 |
TBool aEnableInfoDialog = ETrue );
|
|
310 |
|
|
311 |
/**
|
|
312 |
* Handle playback message
|
|
313 |
*
|
|
314 |
* @param aMessage playback message
|
|
315 |
*/
|
|
316 |
void DoHandlePlaybackMessageL( const CMPXMessage& aMessage );
|
|
317 |
|
|
318 |
/**
|
|
319 |
* Handle collection message
|
|
320 |
*
|
|
321 |
* @param aMessage collection message
|
|
322 |
*/
|
|
323 |
void DoHandleCollectionMessageL( const CMPXMessage& aMessage );
|
|
324 |
|
|
325 |
/**
|
|
326 |
* Updates a media to the collection
|
|
327 |
* @param aMedia media to update
|
|
328 |
* @param aSync synchronous operation or not
|
|
329 |
*/
|
|
330 |
void DoSetCollectionL( CMPXMedia* aMedia, TBool aSync );
|
|
331 |
|
|
332 |
#ifdef __ENABLE_MSK
|
|
333 |
/**
|
|
334 |
* Updates the middle softkey display to a label or icon depending on whether
|
|
335 |
* there are marked indices
|
|
336 |
* @param aMskId middle softkey command id
|
|
337 |
*/
|
|
338 |
void UpdateMiddleSoftKeyDisplayL( TInt aMskId );
|
|
339 |
#endif // __ENABLE_MSK
|
|
340 |
|
|
341 |
/**
|
|
342 |
* Changes the selected episode(s) status to Played /unplayed
|
|
343 |
* @param aPlayed played status to set (EFalse: unplayed)
|
|
344 |
*/
|
|
345 |
void SetPlayedStatusL( TBool aPlayed );
|
|
346 |
|
|
347 |
/**
|
|
348 |
* From MProgressDialogCallback
|
|
349 |
* Callback method
|
|
350 |
* Get's called when a dialog is dismissed.
|
|
351 |
*/
|
|
352 |
void DialogDismissedL( TInt aButtonId );
|
|
353 |
|
|
354 |
/**
|
|
355 |
* From MMPXCollectionObserver
|
|
356 |
* Handle collection message.
|
|
357 |
*
|
|
358 |
* @param aMessage Collection message
|
|
359 |
* @param aErr system error code.
|
|
360 |
*/
|
|
361 |
void HandleCollectionMessage(
|
|
362 |
CMPXMessage* aMessage, TInt aError );
|
|
363 |
|
|
364 |
/**
|
|
365 |
* From MMPXCollectionObserver
|
|
366 |
* Handles the collection entries being opened. Typically called
|
|
367 |
* when client has Open()'d a folder
|
|
368 |
*
|
|
369 |
* @param aEntries collection entries opened
|
|
370 |
* @param aIndex focused entry
|
|
371 |
* @param aComplete ETrue no more entries. EFalse more entries
|
|
372 |
* expected
|
|
373 |
* @param aError error code
|
|
374 |
*/
|
|
375 |
void HandleOpenL(const CMPXMedia& aEntries,
|
|
376 |
TInt aIndex,
|
|
377 |
TBool aComplete,
|
|
378 |
TInt aError );
|
|
379 |
|
|
380 |
/**
|
|
381 |
* From MMPXCollectionObserver
|
|
382 |
* Handles the collection entries being opened. Typically called
|
|
383 |
* when client has Open()'d an item. Client typically responds by
|
|
384 |
* 'playing' the item
|
|
385 |
*
|
|
386 |
* @param aPlaylist Podcast collection path to item
|
|
387 |
* @param aError error code
|
|
388 |
*/
|
|
389 |
void HandleOpenL(const CMPXCollectionPlaylist& aPlaylist,
|
|
390 |
TInt aError );
|
|
391 |
|
|
392 |
/**
|
|
393 |
*
|
|
394 |
* From MMPXCollectionObserver
|
|
395 |
* Handle media properties
|
|
396 |
*
|
|
397 |
* @param aMedia media
|
|
398 |
* @param aError error code
|
|
399 |
*/
|
|
400 |
void HandleCollectionMediaL(const CMPXMedia& aMedia,
|
|
401 |
TInt aError );
|
|
402 |
|
|
403 |
// from base class MMPXCHelperObserver
|
|
404 |
|
|
405 |
/**
|
|
406 |
* From MMPXCHelperObserver
|
|
407 |
* Handles the completion of any collection helper event.
|
|
408 |
*
|
|
409 |
* @param aOperation, operation completed
|
|
410 |
* @param aErr. the error code
|
|
411 |
* @param aArgument Argument returned from the operation
|
|
412 |
*/
|
|
413 |
void HandleOperationCompleteL( TCHelperOperation aOperation,
|
|
414 |
TInt aErr,
|
|
415 |
void* aArgument );
|
|
416 |
|
|
417 |
// from base class MMPXPlaybackObserver
|
|
418 |
|
|
419 |
/**
|
|
420 |
* From MMPXPlaybackObserver
|
|
421 |
* Handle playback message
|
|
422 |
*
|
|
423 |
* @since 3.0
|
|
424 |
* @param aMessage playback message
|
|
425 |
* @param aErr system error code.
|
|
426 |
*/
|
|
427 |
void HandlePlaybackMessage( CMPXMessage* aMessage, TInt aError );
|
|
428 |
|
|
429 |
// from base class MMPXPlaybackCallback
|
|
430 |
|
|
431 |
/**
|
|
432 |
* From MMPXPlaybackCallback
|
|
433 |
* Handle playback property
|
|
434 |
*
|
|
435 |
* @since 3.0
|
|
436 |
* @param aProperty the property
|
|
437 |
* @param aValue the value of the property
|
|
438 |
* @param aError error code
|
|
439 |
*/
|
|
440 |
void HandlePropertyL(TMPXPlaybackProperty aProperty,
|
|
441 |
TInt aValue,
|
|
442 |
TInt aError );
|
|
443 |
|
|
444 |
/**
|
|
445 |
* From MMPXPlaybackCallback
|
|
446 |
* Method is called continously until aComplete=ETrue, signifying that
|
|
447 |
* it is done and there will be no more callbacks
|
|
448 |
* Only new items are passed each time
|
|
449 |
*
|
|
450 |
* @since 3.0
|
|
451 |
* @param aPlayer UID of the subplayer
|
|
452 |
* @param aSubPlayers a list of sub players
|
|
453 |
* @param aComplete ETrue no more sub players. EFalse more subplayer
|
|
454 |
* expected
|
|
455 |
* @param aError error code
|
|
456 |
*/
|
|
457 |
void HandleSubPlayerNamesL(TUid aPlayer,
|
|
458 |
const MDesCArray* aSubPlayers,
|
|
459 |
TBool aComplete,
|
|
460 |
TInt aError );
|
|
461 |
|
|
462 |
/**
|
|
463 |
* From MMPXPlaybackCallback
|
|
464 |
* Handle media properties
|
|
465 |
*
|
|
466 |
* @since 3.0
|
|
467 |
* @param aMedia media
|
|
468 |
* @param aError error code
|
|
469 |
*/
|
|
470 |
void HandleMediaL(const CMPXMedia& aMedia,
|
|
471 |
TInt aError );
|
|
472 |
|
|
473 |
// from base class CAknView
|
|
474 |
|
|
475 |
/**
|
|
476 |
* From CAknView
|
|
477 |
* Returns views id.
|
|
478 |
*
|
|
479 |
* @since 3.0
|
|
480 |
* @return Views Uid
|
|
481 |
*/
|
|
482 |
TUid Id() const;
|
|
483 |
|
|
484 |
/**
|
|
485 |
* From CAknView
|
|
486 |
* Command handling function.
|
|
487 |
*
|
|
488 |
* @since 3.0
|
|
489 |
* @param aCommand Command which is handled
|
|
490 |
*/
|
|
491 |
void HandleCommandL( TInt aCommand );
|
|
492 |
|
|
493 |
/**
|
|
494 |
* From CAknView
|
|
495 |
* Handles a view activation.
|
|
496 |
*
|
|
497 |
* @param aPrevViewId Specifies the view previously active.
|
|
498 |
* @param aCustomMessageId Specifies the message type.
|
|
499 |
* @param aCustomMessage The activation message.
|
|
500 |
*/
|
|
501 |
void DoActivateL(const TVwsViewId& aPrevViewId,
|
|
502 |
TUid aCustomMessageId,
|
|
503 |
const TDesC8& aCustomMessage );
|
|
504 |
|
|
505 |
/**
|
|
506 |
* From CAknView
|
|
507 |
* View deactivation function.
|
|
508 |
*/
|
|
509 |
void DoDeactivate();
|
|
510 |
|
|
511 |
/**
|
|
512 |
* From CAknView
|
|
513 |
* Foreground event handling function.
|
|
514 |
*
|
|
515 |
* @param aForeground Indicates the required focus state of the control.
|
|
516 |
*/
|
|
517 |
void HandleForegroundEventL( TBool aForeground );
|
|
518 |
|
|
519 |
// from base class MEikMenuObserver
|
|
520 |
|
|
521 |
/**
|
|
522 |
* From MEikMenuObserver
|
|
523 |
* Dynamically initialises a menu pane.
|
|
524 |
*
|
|
525 |
* @param aResourceId The ID of the menu pane.
|
|
526 |
* @param aMenuPane The menu pane itself.
|
|
527 |
*/
|
|
528 |
void DynInitMenuPaneL(TInt aResourceId,
|
|
529 |
CEikMenuPane* aMenuPane );
|
|
530 |
|
|
531 |
// from MEikListBoxObserver
|
|
532 |
|
|
533 |
/**
|
|
534 |
* Handles listbox events.
|
|
535 |
*
|
|
536 |
* @param aListBox Listbox where the event occurred.
|
|
537 |
* @param aEventType Event type.
|
|
538 |
*/
|
|
539 |
void HandleListBoxEventL(CEikListBox* aListBox,
|
|
540 |
TListBoxEvent aEventType );
|
|
541 |
|
|
542 |
// from MEikCommandObserver
|
|
543 |
|
|
544 |
/**
|
|
545 |
* Processes user commands.
|
|
546 |
*
|
|
547 |
* @param aCommandId ID of the command to respond to.
|
|
548 |
*/
|
|
549 |
virtual void ProcessCommandL(TInt aCommandId);
|
|
550 |
|
|
551 |
// from MMPXCollectionFindObserver
|
|
552 |
|
|
553 |
/**
|
|
554 |
* Handle callback for "find" operation
|
|
555 |
* @param aEntries, CMPXMedia to be returned
|
|
556 |
* @param aComplete ETrue no more entries. EFalse more entries
|
|
557 |
* expected
|
|
558 |
* @param aError error code
|
|
559 |
*/
|
|
560 |
virtual void HandleFindAllL(const CMPXMedia& aResults,
|
|
561 |
TBool aComplete,TInt aError);
|
|
562 |
|
|
563 |
/**
|
|
564 |
* Launch Nokia Podcasting Application
|
|
565 |
*
|
|
566 |
*/
|
|
567 |
void LaunchPodcastAppL();
|
|
568 |
|
|
569 |
/**
|
|
570 |
* Launch Nokia Podcasting Application
|
|
571 |
*
|
|
572 |
*/
|
|
573 |
TInt CheckPodcastAppL();
|
|
574 |
|
|
575 |
/**
|
|
576 |
* Helper method that checks to see if the specified episode is
|
|
577 |
* currently playing.
|
|
578 |
*
|
|
579 |
* @param aItem id of item to check if currently playing
|
|
580 |
* @return ETrue if item currently playing else EFalse
|
|
581 |
*/
|
|
582 |
TBool IsCurrentlyPlayingL(const TMPXItemId& aItem);
|
|
583 |
|
|
584 |
// from MMPXViewActivationObserver
|
|
585 |
|
|
586 |
/**
|
|
587 |
* From MMPXViewActivationObserver
|
|
588 |
* Handle view activation.
|
|
589 |
*
|
|
590 |
* @param aCurrentViewType Current view type Uid.
|
|
591 |
* @param aPreviousViewType Previous view type Uid.
|
|
592 |
*/
|
|
593 |
void HandleViewActivation(
|
|
594 |
const TUid& aCurrentViewType,
|
|
595 |
const TUid& aPreviousViewType );
|
|
596 |
|
|
597 |
// from MCoeViewActivationObserver
|
|
598 |
|
|
599 |
/**
|
|
600 |
* From MCoeViewActivationObserver
|
|
601 |
* Handle view activation.
|
|
602 |
*
|
|
603 |
* @param aNewlyActivatedViewId newly activated view id.
|
|
604 |
* @param aViewIdToBeDeactivated deactivated view id.
|
|
605 |
*/
|
|
606 |
void HandleViewActivation(
|
|
607 |
const TVwsViewId& aNewlyActivatedViewId,
|
|
608 |
const TVwsViewId& aViewIdToBeDeactivated );
|
|
609 |
|
|
610 |
// from MCoeViewDeactivationObserver
|
|
611 |
/**
|
|
612 |
* Handles view deactivation notification from view server
|
|
613 |
*/
|
|
614 |
void HandleViewDeactivation(const TVwsViewId& aViewIdToBeDeactivated,
|
|
615 |
const TVwsViewId& aNewlyActivatedViewId);
|
|
616 |
|
|
617 |
/**
|
|
618 |
* Stores the current list box item index.
|
|
619 |
*/
|
|
620 |
void StoreListboxItemIndexL();
|
|
621 |
|
|
622 |
private: // Data
|
|
623 |
|
|
624 |
CMPXPodcastCollectionViewContainer* iContainer; // own
|
|
625 |
MMPXCollectionUtility* iCollectionUtility; // not own
|
|
626 |
MMPXPlaybackUtility* iPlaybackUtility;
|
|
627 |
MMPXViewUtility* iViewUtility;
|
|
628 |
CMPXCommonUiHelper* iCommonUiHelper;
|
|
629 |
MMPXCollectionUiHelper* iCollectionUiHelper;
|
|
630 |
CMPXMedia* iMediaToSet; // own
|
|
631 |
|
|
632 |
CSendUi* iSendUi;
|
|
633 |
HBufC* iTitle;
|
|
634 |
HBufC* iNumEpisode;
|
|
635 |
HBufC* iDuration;
|
|
636 |
HBufC* iOriginalTitle;
|
|
637 |
HBufC* iOriginalDuration;
|
|
638 |
CArrayFix<TInt>* iBottomIndex;
|
|
639 |
|
|
640 |
TBool iBackOneLevel;
|
|
641 |
TBool iPossibleJump;
|
|
642 |
TBool iChangeRTForAllProfiles;
|
|
643 |
TBool iIsWaitNoteCanceled;
|
|
644 |
TBool iIsDeleting;
|
|
645 |
TBool iHandlingKeyEvent;
|
|
646 |
TBool iExitOptionHidden;
|
|
647 |
TBool iIgnoreNextFocusChangedMessage;
|
|
648 |
|
|
649 |
// HandleOpen was called and listbox was updated, only EFalse
|
|
650 |
// when view is activated
|
|
651 |
TBool iHandleOpenProcessed;
|
|
652 |
|
|
653 |
TInt iCurrentMediaLOp; // current mediaL operation
|
|
654 |
TInt iCurrentFindAllLOp; // current FindAllL operation
|
|
655 |
TInt iLastDepth;
|
|
656 |
TInt iLastSelectedIndex;
|
|
657 |
TInt iCurrNotYetPlayedListIndex;
|
|
658 |
TInt iResourceOffset; // must be freed
|
|
659 |
#ifdef __ENABLE_MSK
|
|
660 |
TInt iCurrentMskId;
|
|
661 |
TBool iShowContextMenu;
|
|
662 |
#endif // __ENABLE_MSK
|
|
663 |
|
|
664 |
CAknNavigationDecorator* iNaviDecorator;
|
|
665 |
CAknNaviLabel* iNaviLabel;
|
|
666 |
CAknNavigationControlContainer* iNaviPane;
|
|
667 |
|
|
668 |
CEikButtonGroupContainer* iCba; // owned
|
|
669 |
|
|
670 |
RArray<TUid> iPlayersList;
|
|
671 |
CAiwServiceHandler* iServiceHandler;
|
|
672 |
TInt iErrorAttachCopyMenu;
|
|
673 |
TMPXPlaybackPlayerType iCurrentPlayerType;
|
|
674 |
TInt iCurrentlyAttachedCopyToMenuPane;
|
|
675 |
HBufC* iSubPlayerName;
|
|
676 |
TBool iUpnpFrameworkSupport;
|
|
677 |
|
|
678 |
TMPXItemId iSelectedItem;
|
|
679 |
// Wait note for delete
|
|
680 |
CAknWaitDialog* iWaitDialog;
|
|
681 |
#ifdef UPNP_INCLUDED
|
|
682 |
CUpnpCopyCommand* iUpnpCopyCommand;
|
|
683 |
#endif
|
|
684 |
TBool iGoToNowPlaying;
|
|
685 |
};
|
|
686 |
|
|
687 |
#endif // C_CMPXPODCASTCOLLECTIONVIEWIMP_H
|
|
688 |
|
|
689 |
// End of File
|