25 #include <mpxcollectionuihelper.h> |
25 #include <mpxcollectionuihelper.h> |
26 #include <mpxcollectionuihelperobserver.h> |
26 #include <mpxcollectionuihelperobserver.h> |
27 #include <mpxattribute.h> |
27 #include <mpxattribute.h> |
28 #include <AknQueryDialog.h> |
28 #include <AknQueryDialog.h> |
29 #include <DRMHelper.h> |
29 #include <DRMHelper.h> |
30 |
30 #include <mpxplaybackobserver.h> |
31 // CONSTANTS |
31 // CONSTANTS |
32 const TInt KMPXMetadataTextFieldMaxLen = 255; |
32 const TInt KMPXMetadataTextFieldMaxLen = 255; |
33 |
33 |
34 // FORWARD DECLARATIONS |
34 // FORWARD DECLARATIONS |
35 class CAknTitlePane; |
35 class CAknTitlePane; |
76 * Provides factory to create concrete document object. |
77 * Provides factory to create concrete document object. |
77 */ |
78 */ |
78 NONSHARABLE_CLASS( CMPXMetadataEditorDialog ) : public CAknForm, |
79 NONSHARABLE_CLASS( CMPXMetadataEditorDialog ) : public CAknForm, |
79 public MMPXCollectionObserver, |
80 public MMPXCollectionObserver, |
80 public MMPXCollectionFindObserver, |
81 public MMPXCollectionFindObserver, |
|
82 public MMPXPlaybackCallback, |
81 public MMPXCHelperObserver |
83 public MMPXCHelperObserver |
82 { |
84 { |
83 public: |
85 public: |
84 // File Details headings |
86 // File Details headings |
85 enum TMPXSongsFileDetailsHeadings |
87 enum TMPXSongsFileDetailsHeadings |
575 * From CEikDialog, PostLayoutDynInitL. |
577 * From CEikDialog, PostLayoutDynInitL. |
576 * Initialises the dialog's controls after the dialog has been sized |
578 * Initialises the dialog's controls after the dialog has been sized |
577 * but before it has been activated. |
579 * but before it has been activated. |
578 */ |
580 */ |
579 void PostLayoutDynInitL(); |
581 void PostLayoutDynInitL(); |
|
582 |
|
583 private: // from base class MMPXPlaybackCallback |
|
584 |
|
585 /** |
|
586 * From MMPXPlaybackCallback |
|
587 * Handle playback property |
|
588 * |
|
589 * @param aProperty the property |
|
590 * @param aValue the value of the property |
|
591 * @param aError error code |
|
592 */ |
|
593 void HandlePropertyL( TMPXPlaybackProperty aProperty, TInt aValue, TInt aError ); |
|
594 |
|
595 /** |
|
596 * From MMPXPlaybackCallback |
|
597 * Method is called continously until aComplete=ETrue, signifying that |
|
598 * it is done and there will be no more callbacks |
|
599 * Only new items are passed each time |
|
600 * |
|
601 * @param aPlayer UID of the subplayer |
|
602 * @param aSubPlayers a list of sub players |
|
603 * @param aComplete ETrue no more sub players. EFalse more subplayer |
|
604 * expected |
|
605 * @param aError error code |
|
606 */ |
|
607 void HandleSubPlayerNamesL( |
|
608 TUid aPlayer, |
|
609 const MDesCArray* aSubPlayers, |
|
610 TBool aComplete, |
|
611 TInt aError ); |
|
612 |
|
613 /** |
|
614 * From MMPXPlaybackCallback |
|
615 * Handle media properties |
|
616 * |
|
617 * @param aMedia media |
|
618 * @param aError error code |
|
619 */ |
|
620 void HandleMediaL( const CMPXMedia& aMedia, TInt aError ); |
580 |
621 |
581 private: |
622 private: |
582 enum TMPXMetadataEditorCurrentMediaLOp |
623 enum TMPXMetadataEditorCurrentMediaLOp |
583 { |
624 { |
584 EMPXMetadataEditorIdle = 0, |
625 EMPXMetadataEditorIdle = 0, |