mmsharing/mmshui/inc/musuireceiveview.h
branchRCL_3
changeset 33 bc78a40cd63c
parent 0 f0cf47e981f9
child 18 0da2e08216b6
equal deleted inserted replaced
32:73a1feb507fb 33:bc78a40cd63c
       
     1 /*
       
     2 * Copyright (c) 2005 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:  The MUS application's UI class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef MUSUIRECEIVEVIEW_H
       
    21 #define MUSUIRECEIVEVIEW_H
       
    22 
       
    23 
       
    24 #include "musuigeneralview.h"     // Base view class
       
    25 #include "musuinavimediadecorator.h"
       
    26 #include "musuireceiveobserver.h"
       
    27 #include "musuidefinitions.h"
       
    28 
       
    29 #include <aknview.h>
       
    30 
       
    31 
       
    32 class CMusUiReceiveContainer;
       
    33 class CMusUiReceiveController;
       
    34 class CMusUiActivityManager;
       
    35 class CMusUiBackgroundViewContainer;
       
    36 
       
    37 
       
    38 /**
       
    39  *  The MUS application's live sharing view.
       
    40  *
       
    41  */
       
    42 class CMusUiReceiveView : public CMusUiGeneralView,
       
    43                           public MMusUiReceiveObserver
       
    44     {
       
    45     
       
    46 public: // constructors and destructor
       
    47 
       
    48     /**
       
    49     * EPOC 2nd phase constructor.
       
    50     */
       
    51 	void ConstructL();
       
    52 
       
    53     /**
       
    54      * Destructor.
       
    55      */
       
    56     virtual ~CMusUiReceiveView();
       
    57 
       
    58 
       
    59 public: // from base class CAknView
       
    60 
       
    61     /**
       
    62     * From CAknView returns Uid of View
       
    63     * @return TUid uid of the view
       
    64     */
       
    65     virtual TUid Id() const;
       
    66 
       
    67     // From MEikMenuObserver, Called by framework before constructing menupane
       
    68     virtual void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );
       
    69 
       
    70 public: // from CMusUiGeneralView
       
    71 
       
    72     virtual void HandleToolbarCommandL( TInt aCommand );
       
    73     
       
    74     virtual void SetInitialFocusedItemL();
       
    75     
       
    76     virtual void SetToolbarVisibility( TBool aVisible );
       
    77     
       
    78     virtual void DoHandleForegroundEventL( TBool aForeground );    
       
    79 
       
    80 public: // from base class MAknToolbarObserver
       
    81 
       
    82     virtual void DynInitToolbarL( TInt aResourceId, CAknToolbar* aToolbar );
       
    83     
       
    84 
       
    85 public: // from MMusUiReceiveObserver
       
    86 
       
    87     virtual void ShowInvitationQueryL( const TDesC& aQuery );
       
    88 
       
    89     virtual void DismissInvitationQuery( TBool aDelete );
       
    90     
       
    91     virtual void SetFullScreenL( TBool aFullScreen );
       
    92 
       
    93 
       
    94 public: // new functions
       
    95 
       
    96     void RefreshView();
       
    97     
       
    98 
       
    99 protected: // from MusUiGeneralView
       
   100 
       
   101     virtual CMusUiEventController* EventController() const;
       
   102     
       
   103     virtual CMusUiViewContainer& SharingContainer() const;
       
   104      
       
   105 
       
   106 private:
       
   107 
       
   108     /**
       
   109      * Gets called by the framework when it's activating this view.
       
   110      *
       
   111      * @param aPrevViewId Previous view id
       
   112      * @param aCustomMessageId Custom message's id
       
   113      * @param aCustomMessage Custom message
       
   114      */
       
   115     void DoActivateL( const TVwsViewId& aPrevViewId,
       
   116                       TUid aCustomMessageId,
       
   117                       const TDesC8& aCustomMessage );
       
   118 
       
   119     /**
       
   120      * Gets called by the framework when it's deactivating this view.
       
   121      */
       
   122     void DoDeactivate();
       
   123 
       
   124 
       
   125 private: // data
       
   126 
       
   127     /**  Container for all controls in this view.  Owns. */
       
   128     CMusUiReceiveContainer* iContainer;
       
   129     
       
   130     CMusUiReceiveController* iController;
       
   131     
       
   132     HBufC* iAddress;
       
   133     
       
   134     TRect iOriginalRect;
       
   135 
       
   136     };
       
   137 
       
   138 #endif // MUSUIRECEIVEVIEW_H
       
   139 
       
   140 // end of file