app/inc/mpmainwindow.h
changeset 58 ed94e1e8390e
parent 54 c5b304f4d89b
equal deleted inserted replaced
54:c5b304f4d89b 58:ed94e1e8390e
    20 #define MPMAINVIEW_H
    20 #define MPMAINVIEW_H
    21 
    21 
    22 // System includes
    22 // System includes
    23 #include <hbmainwindow.h>
    23 #include <hbmainwindow.h>
    24 #include <mpxviewframeworkqt.h>
    24 #include <mpxviewframeworkqt.h>
       
    25 #include <afactivities_global.h>
    25 
    26 
    26 #include "mpcommondefs.h"
    27 #include "mpcommondefs.h"
    27 
    28 
    28 // Forward declarations
    29 // Forward declarations
    29 class MpxViewPlugin;
    30 class MpxViewPlugin;
    30 class MusicServices;
    31 class MusicServices;
    31 class MpGlobalPopupHandler;
    32 class MpGlobalPopupHandler;
    32 class HbActivityManager;
    33 class HbActivityManager;
    33 class MpMediaController;
    34 class MpMediaController;
       
    35 class AfActivityStorage;
       
    36 class AfActivation;
    34 
    37 
    35 // Class declaration
    38 // Class declaration
    36 class MpMainWindow: public MpxViewFramework
    39 class MpMainWindow: public MpxViewFramework
    37 {
    40 {
    38     Q_OBJECT
    41     Q_OBJECT
    54     };
    57     };
    55 
    58 
    56     MpMainWindow();
    59     MpMainWindow();
    57     ~MpMainWindow();
    60     ~MpMainWindow();
    58 
    61 
    59     void initialize( ActivityMode mode );
    62     void initialize();
    60 
    63 
    61 signals:
    64 signals:
    62     // For automation testability
    65     // For automation testability
    63     void applicationReady();
    66     void applicationReady();
    64 
    67 
    65 public slots:
    68 public slots:
    66     void handleCommand( int commandCode );
    69     void handleCommand( int commandCode );
    67     void handleLibraryUpdated();
    70     void handleLibraryUpdated();
    68 
    71 
    69     void switchView( Qt::Orientation orientation );
    72     void switchView( Qt::Orientation orientation );
    70     void initializeServiceView( TUid hostUid );
    73     void initializeServiceView( quint32 clientSecureId );
    71     void handleActivity();
    74     void loadActivityData( Af::ActivationReason reason, const QString &name, QVariantHash parameter );
    72     void saveActivity();
    75     void saveActivity();
    73     void handleRestorePathFailed();
    76     void handleRestorePathFailed();
    74 
    77 
    75 private:
    78 private:
    76     void activateView(ViewType);
    79     void activateView(ViewType);
    90     MpxViewPlugin         *mCurrentViewPlugin;    // Own
    93     MpxViewPlugin         *mCurrentViewPlugin;    // Own
    91     ViewType              mVerticalViewType;
    94     ViewType              mVerticalViewType;
    92     ViewType              mPreviousVerticalViewType;
    95     ViewType              mPreviousVerticalViewType;
    93     MusicServices         *mMusicServices;         // Own
    96     MusicServices         *mMusicServices;         // Own
    94     MpGlobalPopupHandler  *mPopupHandler;          // Own
    97     MpGlobalPopupHandler  *mPopupHandler;          // Own
    95     bool                   mUserExit;
    98     bool                  mUserExit;
    96     HbActivityManager     *mActivityManager;       // Not Own
       
    97     MpMediaController     *mMpMediaController;     // Own
    99     MpMediaController     *mMpMediaController;     // Own
    98 
   100     AfActivityStorage     *mActivityStorage;       // Own
    99 };
   101 };
   100 
   102 
   101 #endif // MPMAINVIEW_H
   103 #endif // MPMAINVIEW_H
       
   104