textinput/peninputhwrtrui/inc/truiinfomessageview.h
changeset 40 2cb9bae34d17
parent 31 f1bdd6b078d1
child 49 37f5d84451bd
equal deleted inserted replaced
31:f1bdd6b078d1 40:2cb9bae34d17
     1 /*
       
     2 * Copyright (c) 2007 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:  CTruiInfoMessageView class of TrainingUI
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_TRUIINFOMESSAGEVIEW_H
       
    20 #define C_TRUIINFOMESSAGEVIEW_H
       
    21 
       
    22 #include <aknview.h>
       
    23 
       
    24 class CTruiInfoMessageContainer;
       
    25 
       
    26 // UID of view
       
    27 const TUid KTruiInfoMessageViewId = {5};
       
    28 
       
    29 /**
       
    30  *  CTruiInfoMessageView view class.
       
    31  *
       
    32  *  @code
       
    33  *    CTruiInfoMessageView* view = CTruiInfoMessageView::NewLC(); 
       
    34  *    AddViewL( view );
       
    35  *    CleanupStack::Pop();
       
    36  *  @endcode
       
    37  *
       
    38  */
       
    39 class CTruiInfoMessageView : public CAknView
       
    40     {
       
    41 public:
       
    42     /** 
       
    43      * Two phase construction.
       
    44      * 
       
    45      * @return Pointer to CTruiInfoMessageView's instance
       
    46      */    
       
    47     static CTruiInfoMessageView* NewL();
       
    48     
       
    49     /** 
       
    50      * Two phase construction.
       
    51      * 
       
    52      * @return Pointer to CTruiInfoMessageView's instance
       
    53      */
       
    54     static CTruiInfoMessageView* NewLC();    
       
    55 
       
    56     /**
       
    57     * Destructor.
       
    58     */    
       
    59     virtual ~CTruiInfoMessageView();
       
    60 
       
    61 // from base class CAknView
       
    62 
       
    63     /**
       
    64     * From CAknView
       
    65     * Returns views id.
       
    66     *
       
    67     * @return id for this view.
       
    68     */
       
    69     TUid Id() const;
       
    70     
       
    71     /**
       
    72      * From CAknView 
       
    73      * Command handling function. 
       
    74      *
       
    75      * @param aCommand ID of the command to respond to. 
       
    76      */    
       
    77     void HandleCommandL( TInt aCommand );    
       
    78     
       
    79 private:
       
    80 
       
    81     CTruiInfoMessageView();
       
    82     
       
    83     void ConstructL();
       
    84     
       
    85     /**
       
    86     * From CAknView
       
    87     * Called by the framework when view is activated.
       
    88     *
       
    89     * @param aPrevViewId This is not used now.
       
    90     * @param aCustomMessage This is not used now.
       
    91     * @param aCustomMessage This is not used now.
       
    92     */
       
    93     void DoActivateL( const TVwsViewId& aPrevViewId,
       
    94                       TUid aCustomMessageId,
       
    95                       const TDesC8& aCustomMessage );
       
    96 
       
    97     /**
       
    98     * From CAknView
       
    99     * Called by the framework when view is deactivated.
       
   100     *
       
   101     */
       
   102     void DoDeactivate();
       
   103     
       
   104 private: // data
       
   105     
       
   106     CTruiInfoMessageContainer* iContainer;    
       
   107     };
       
   108 
       
   109 #endif // C_TRUIINFOMESSAGEVIEW_H
       
   110