mpxplugins/viewplugins/views/collectionviewhg/inc/mpxcollectionviewhgimp.h
branchRCL_3
changeset 14 943ff5625028
parent 11 13afc0e517bd
child 15 171e07ac910f
equal deleted inserted replaced
11:13afc0e517bd 14:943ff5625028
    34 #include "mpxcbahandler.h"
    34 #include "mpxcbahandler.h"
    35 
    35 
    36 #include "mpxcollectionviewhg.h"
    36 #include "mpxcollectionviewhg.h"
    37 #include "mpxplaybackframeworkdefs.h" // TMPXPlaybackPlayerType
    37 #include "mpxplaybackframeworkdefs.h" // TMPXPlaybackPlayerType
    38 #include "mpxwaitnotedefs.h"
    38 #include "mpxwaitnotedefs.h"
       
    39 #include "mpxselectedalbumhandler.h"
    39 
    40 
    40 // FORWARD DECLARATIONS
    41 // FORWARD DECLARATIONS
    41 class CAiwGenericParamList;
    42 class CAiwGenericParamList;
    42 class CAiwServiceHandler;
    43 class CAiwServiceHandler;
    43 class CAknNaviLabel;
    44 class CAknNaviLabel;
    81                                              public MMPXCollectionHelperObserver,
    82                                              public MMPXCollectionHelperObserver,
    82                                              public MMPXCHelperObserver,
    83                                              public MMPXCHelperObserver,
    83                                              public MMPXViewActivationObserver,
    84                                              public MMPXViewActivationObserver,
    84                                              public MCoeViewDeactivationObserver,
    85                                              public MCoeViewDeactivationObserver,
    85                                              public MCoeViewActivationObserver,
    86                                              public MCoeViewActivationObserver,
    86                                              public MMpxCbaHandler
    87                                              public MMpxCbaHandler,
       
    88                                              public MMPXSelectedAlbumHandler
    87     {
    89     {
    88 public:
    90 public:
    89 
    91 
    90     /**
    92     /**
    91      * Two-phased constructor.
    93      * Two-phased constructor.
   112      * Launch music shop application.
   114      * Launch music shop application.
   113      *
   115      *
   114      * @ since 3.1
   116      * @ since 3.1
   115      */
   117      */
   116     void LaunchMusicShopL();
   118     void LaunchMusicShopL();
       
   119 
       
   120     /**
       
   121      *  Saves selected album.
       
   122      *
       
   123      *  @param aMedia Album to be stored
       
   124      */
       
   125      void SaveSelectedAlbum (CMPXMedia &aMedia);
       
   126 
       
   127      /**
       
   128      *  Restores selected album.
       
   129      *
       
   130      *  @return media of restored album
       
   131      */
       
   132      const CMPXMedia* RestoreSelectedAlbum ();
   117 
   133 
   118 
   134 
   119 private:
   135 private:
   120 
   136 
   121     /**
   137     /**
   159      * Displays error notes.
   175      * Displays error notes.
   160      *
   176      *
   161      * @param aError Error code to be handled.
   177      * @param aError Error code to be handled.
   162      */
   178      */
   163     void HandleError( TInt aError );
   179     void HandleError( TInt aError );
   164 
       
   165     /**
       
   166      * Updates the navi pane
       
   167      */
       
   168     void UpdateNaviPaneL();
       
   169 
   180 
   170     /**
   181     /**
   171      * Updates the title pane
   182      * Updates the title pane
   172      */
   183      */
   173     void UpdateTitlePaneL();
   184     void UpdateTitlePaneL();
   840  	void HandleBacksteppingActivation();
   851  	void HandleBacksteppingActivation();
   841 
   852 
   842  	void ChangeCbaVisibility( TBool aVisible );
   853  	void ChangeCbaVisibility( TBool aVisible );
   843 
   854 
   844  	void UpdateCba();
   855  	void UpdateCba();
   845  	
   856 
       
   857 	TBool NowPlayingOptionVisibilityL();
   846     void HandleInitMusicMenuPaneL(CEikMenuPane* aMenuPane );
   858     void HandleInitMusicMenuPaneL(CEikMenuPane* aMenuPane );
       
   859     void DynInitMenuPaneAlbumL(TInt aResourceId, CEikMenuPane* aMenuPane );
       
   860     void DynInitMenuPanePlaylistL(TInt aResourceId, CEikMenuPane* aMenuPane );
       
   861     void DynInitMenuPaneGenreL(TInt aResourceId, CEikMenuPane* aMenuPane );
       
   862     void DynInitMenuPaneSongsL(TInt aResourceId, CEikMenuPane* aMenuPane );
       
   863     void DynInitMenuPanePlaylistSongsL(TInt aResourceId, CEikMenuPane* aMenuPane );
   847 
   864 
   848     void OpenAllSongsL();
   865     void OpenAllSongsL();
   849     void OpenArtistAlbumsL();
   866     void OpenArtistAlbumsL();
   850     void OpenPlaylistsL();
   867     void OpenPlaylistsL();
   851     void OpenGenreL();
   868     void OpenGenreL();
   852     void OpenPodcastsL();
   869     void OpenPodcastsL();
   853 
   870 
   854     static TInt IADCheckTimerCallBack(TAny* aHgViewObject); //directly called
       
   855     void StartCheckingforIADUpdates(); //indirectly called
       
   856 
   871 
   857 private:    // Data
   872 private:    // Data
   858 
   873 
   859     MMPXCollectionUtility*      iCollectionUtility;
   874     MMPXCollectionUtility*      iCollectionUtility;
   860     CMPXCollectionViewHgContainer* iContainer;
   875     CMPXCollectionViewHgContainer* iContainer;
   904     TInt                        iCurrentHighlightedIndex;
   919     TInt                        iCurrentHighlightedIndex;
   905 
   920 
   906     TInt                        iCachedCommand; // for incremental open
   921     TInt                        iCachedCommand; // for incremental open
   907     CListBoxView::CSelectionIndexArray* iCachedSelectionIndex;
   922     CListBoxView::CSelectionIndexArray* iCachedSelectionIndex;
   908 
   923 
   909     CAknNavigationDecorator*        iNaviDecorator;
       
   910     CAknNaviLabel*                  iNaviLabel;
       
   911     CAknNavigationControlContainer* iNaviPane;
       
   912 
       
   913     CEikButtonGroupContainer*       iCurrentCba;
   924     CEikButtonGroupContainer*       iCurrentCba;
   914 
   925 
   915     CAknQueryDialog*            iConfirmationDlg;
   926     CAknQueryDialog*            iConfirmationDlg;
   916 
   927 
   917     const CArrayFix<TInt>*      iSelectionIndexCache; // not owned
   928     const CArrayFix<TInt>*      iSelectionIndexCache; // not owned
   978     CUpnpCopyCommand* iUpnpCopyCommand;
   989     CUpnpCopyCommand* iUpnpCopyCommand;
   979 
   990 
   980     TBool iOpeningNote; // Waitnote is opening
   991     TBool iOpeningNote; // Waitnote is opening
   981 	TBool iMarkedAll;
   992 	TBool iMarkedAll;
   982 	TBool iFirstIncrementalBatch;
   993 	TBool iFirstIncrementalBatch;
   983 
   994     CMPXMedia *iStoredAlbum; // owned
   984     CPeriodic* iTimer;
       
   985     };
   995     };
   986 
   996 
   987 #endif  // C_CMPXCOLLECTIONVIEWHGIMP_H
   997 #endif  // C_CMPXCOLLECTIONVIEWHGIMP_H
   988 
   998 
   989 // End of File
   999 // End of File