mmsharing/mmshui/inc/musuilivesharingviewcontainer.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 MUSUILIVESHARINGVIEWCONTAINER_H
       
    21 #define MUSUILIVESHARINGVIEWCONTAINER_H
       
    22 
       
    23 #include "musuisendviewcontainer.h"
       
    24 #include "musuilevelindicatorobserver.h"
       
    25 
       
    26 
       
    27 /**
       
    28  *
       
    29  *
       
    30  *
       
    31  * @lib musui.exe
       
    32  */
       
    33 class CMusUiLiveSharingViewContainer :	public CMusUiSendViewContainer
       
    34     {
       
    35 
       
    36 public:  // constructors and destructor
       
    37 
       
    38     /**
       
    39      * Symbian second-phase constructor.
       
    40      *
       
    41      * @param aView         Parent view of container.
       
    42      * @param aRect         Frame rectangle for container.
       
    43      * @param aInputParams  Packaged data.
       
    44      */
       
    45     void ConstructL( CMusUiGeneralView* aView, 
       
    46                      const TRect& aRect );
       
    47 
       
    48     /**
       
    49      * Destructor.
       
    50      */
       
    51     ~CMusUiLiveSharingViewContainer();
       
    52 
       
    53 
       
    54 public:	// new functions
       
    55 
       
    56     void SetZoomValues( TInt aMinZoom, TInt aMaxZoom );
       
    57     
       
    58     void SetBrightnessValues( TInt aMinBrightness, TInt aMaxBrightness );
       
    59     
       
    60     void SetZoomL( TInt aZoomLevel );
       
    61     
       
    62     void SetBrightnessL( TInt aBrightnessLevel );
       
    63     
       
    64     void SetZoomVisible( TBool aVisible );
       
    65 
       
    66     void SetBrightnessVisible( TBool aVisible );
       
    67     
       
    68     TMusUiIndicatorType GetIndicatorType();
       
    69 
       
    70 
       
    71 private: // from base class CCoeControl
       
    72     
       
    73     /**
       
    74      * Returns the number of control contained by this class.
       
    75      *
       
    76      * @return           Number of controls contained
       
    77      */
       
    78     TInt CountComponentControls() const;
       
    79 
       
    80     /**
       
    81      * Returns handle to control pointed by aIndex.
       
    82      *
       
    83      * @param aIndex     Wanted control's index [0..n]
       
    84      * @return           Handle to wanted control
       
    85      */
       
    86     CCoeControl* ComponentControl( TInt aIndex ) const;
       
    87 
       
    88     /**
       
    89      * Handles key events.
       
    90      *
       
    91      * @param aEvent  The event that occured.
       
    92      * @param aType   Type of key event: EEventKey, EEventKeyUp, or
       
    93      *                EEventKeyDown.
       
    94      * @return  The container's response to event: either
       
    95      *          EKeyWasNotConsumed or EKeyWasConsumed.
       
    96      */
       
    97     TKeyResponse OfferKeyEventL( const TKeyEvent& aEvent, TEventCode aType );
       
    98 
       
    99     /**
       
   100      * Handles pointer events. 
       
   101      *
       
   102      * @param aEvent  The event that occured.
       
   103      */
       
   104     virtual void HandlePointerEventL( const TPointerEvent& aPointerEvent );
       
   105     
       
   106 protected: // data
       
   107 
       
   108     /**
       
   109     * ETrue if operator specific functionality is needed 
       
   110     */
       
   111     TBool iOperatorSpecificFunctionality;
       
   112     
       
   113 private: // data
       
   114 	
       
   115     };
       
   116 
       
   117 
       
   118 #endif // MUSUILIVESHARINGVIEWCONTAINER_H
       
   119 
       
   120 // end of file