mmsharing/mmshui/inc/musuireceivecontainer.h
branchRCL_3
changeset 33 bc78a40cd63c
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 MUSUIRECEIVECONTAINER_H
       
    21 #define MUSUIRECEIVECONTAINER_H
       
    22 
       
    23 #include "musuiviewcontainer.h"
       
    24 
       
    25 class MAknsControlContext;
       
    26 class CMusUiGeneralView;
       
    27 class CMusUiInvitationQuery;
       
    28 class MMusUiInvitationQueryObserver;
       
    29 class CMusUiReceiveView;
       
    30 
       
    31 /**
       
    32  *
       
    33  *
       
    34  */
       
    35 class CMusUiReceiveContainer :	public CMusUiViewContainer
       
    36     {
       
    37 
       
    38 public:  // constructors and destructor
       
    39 
       
    40     /**
       
    41      * Public constructor.
       
    42      */
       
    43     static CMusUiReceiveContainer* NewL( CMusUiReceiveView& aView,
       
    44                                   TRect aRect );
       
    45 
       
    46     /**
       
    47      * Destructor.
       
    48      */
       
    49     ~CMusUiReceiveContainer();
       
    50 
       
    51 
       
    52 private: // hidden constructors
       
    53 
       
    54     /**
       
    55      * C++ Constructor
       
    56      */
       
    57     CMusUiReceiveContainer( CMusUiReceiveView& aView );
       
    58 
       
    59     /**
       
    60      * Symbian second-phase constructor.
       
    61      *
       
    62      * @param aView         Parent view of container.
       
    63      * @param aRect         Frame rectangle for container.
       
    64      * @param aInputParams  Packaged data.
       
    65      */
       
    66     void ConstructL( const TRect& aRect );
       
    67 
       
    68 protected: // data
       
    69 
       
    70     /**
       
    71     * ETrue if operator specific functionality is needed 
       
    72     */
       
    73     TBool iOperatorSpecificFunctionality;    
       
    74 
       
    75 public:	// new functions
       
    76 
       
    77     /**
       
    78      * Shows an invitation query.
       
    79      */
       
    80     void ShowInvitationQueryL( const TDesC& aContact,
       
    81                                MMusUiInvitationQueryObserver& aObserver );
       
    82 
       
    83     /**
       
    84      * 
       
    85      */
       
    86     void DismissInvitationQuery( TBool aDelete );
       
    87     
       
    88     /**
       
    89      * Return pointer to view class. User needs to type cast to
       
    90      * appropriate concrete view class.
       
    91      *
       
    92      * @return handle to view
       
    93      */
       
    94     CMusUiGeneralView* MusUiView() const;
       
    95  
       
    96 
       
    97     void SetFullScreen( TBool aFullScreen, TRect aRect );
       
    98     
       
    99     void UpdatePointerCapture();
       
   100 
       
   101 
       
   102 private: // from base class CCoeControl
       
   103 
       
   104    /**
       
   105     * 
       
   106     */
       
   107     virtual void SizeChanged();
       
   108     
       
   109     /**
       
   110      * Returns the number of control contained by this class.
       
   111      *
       
   112      * @return           Number of controls contained
       
   113      */
       
   114     virtual TInt CountComponentControls() const;
       
   115 
       
   116     /**
       
   117      * Returns handle to control pointed by aIndex.
       
   118      *
       
   119      * @param aIndex     Wanted control's index [0..n]
       
   120      * @return           Handle to wanted control
       
   121      */
       
   122     virtual CCoeControl* ComponentControl( TInt aIndex ) const;
       
   123 
       
   124     /**
       
   125      * Gets called by the application framework when drawing is
       
   126      * needed.
       
   127      *
       
   128      * @param aRect The rectangle that needs to be drawn.
       
   129      */
       
   130     virtual void Draw( const TRect& aRect ) const;
       
   131 
       
   132     /**
       
   133      * Handles key events.
       
   134      *
       
   135      * @param aEvent  The event that occured.
       
   136      * @param aType   Type of key event: EEventKey, EEventKeyUp, or
       
   137      *                EEventKeyDown.
       
   138      * @return  The container's response to event: either
       
   139      *          EKeyWasNotConsumed or EKeyWasConsumed.
       
   140      */
       
   141     virtual TKeyResponse OfferKeyEventL( const TKeyEvent& aEvent, 
       
   142                                          TEventCode aType );
       
   143 
       
   144     /**
       
   145      * Handles pointer events. Will return from full screen mode as a response
       
   146      * to whatever pointer event.
       
   147      *
       
   148      * @param aEvent  The event that occured.
       
   149      */
       
   150     virtual void HandlePointerEventL( const TPointerEvent& aPointerEvent );
       
   151 
       
   152 
       
   153 private: // data
       
   154 
       
   155     /**  A dialog for invitation query (accept/reject). Own.*/
       
   156     CMusUiInvitationQuery* iInvitationQuery;
       
   157 
       
   158     /**  Background skin control context. */
       
   159     MAknsControlContext* iBackGround;
       
   160     
       
   161     /**  Handle to the view that owns of this container.  Not own. */
       
   162     CMusUiGeneralView& iView;
       
   163     
       
   164     TBool iFullScreen;
       
   165     
       
   166     };
       
   167 
       
   168 
       
   169 #endif // MUSUIRECEIVECONTAINER_H
       
   170 
       
   171 // end of file