phoneuis/dialer/tsrc/public/basic/T_VideoDtmfDialer/inc/T_VideoDtmfDialerAppView.h
changeset 21 92ab7f8d0eab
parent 4 c84cf270c54f
child 22 6bb1b21d2484
equal deleted inserted replaced
4:c84cf270c54f 21:92ab7f8d0eab
     1 /*
       
     2 * Copyright (c) 2002 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:  Definition of CT_VideoDtmfDialerAppView class. 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef T_VIDEODTMFDIALER_APPVIEW_H
       
    19 #define T_VIDEODTMFDIALER_APPVIEW_H
       
    20 
       
    21 
       
    22 #include <coecntrl.h>
       
    23 #include <coeview.h>
       
    24 
       
    25 class MNumberEntry;
       
    26 
       
    27 class CT_VideoDtmfDialerAppView : public CCoeControl, public MCoeView
       
    28     {
       
    29 public:
       
    30 
       
    31     static CT_VideoDtmfDialerAppView* NewL(const TRect& aRect);
       
    32 
       
    33     static CT_VideoDtmfDialerAppView* NewLC(const TRect& aRect );
       
    34 
       
    35      ~CT_VideoDtmfDialerAppView();
       
    36 
       
    37     void SetControl( CCoeControl* aControl, TBool aDrawNow = EFalse );
       
    38     CCoeControl* Control() const;
       
    39     void SetNumberEntry( MNumberEntry* aNumberEntry );
       
    40     
       
    41 public:  // from CCoeControl
       
    42     void Draw(const TRect& aRect) const;
       
    43 
       
    44     void SizeChanged();
       
    45 
       
    46     TInt CountComponentControls() const;
       
    47 
       
    48     CCoeControl* ComponentControl( TInt aIndex ) const;
       
    49     
       
    50     TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
       
    51 
       
    52 	TVwsViewId ViewId() const;
       
    53 
       
    54 	void ViewActivatedL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId,const TDesC8& aCustomMessage);
       
    55 
       
    56 	void ViewDeactivated();
       
    57 
       
    58     void ActivateL();
       
    59 
       
    60 
       
    61 private:
       
    62 
       
    63     void ConstructL(const TRect& aRect);
       
    64 
       
    65     CT_VideoDtmfDialerAppView();
       
    66 
       
    67 public:
       
    68     void UpdateControlRect();
       
    69     
       
    70 private:
       
    71     
       
    72     CCoeControl* iControl;
       
    73     CCoeControl* iPrevControl;
       
    74     
       
    75     // Not own. Forwards key events for number entry control.
       
    76     MNumberEntry* iNumberEntry;
       
    77     };
       
    78 
       
    79 
       
    80 #endif // T_VIDEODTMFDIALER_APPVIEW_H