fep/aknfep/src/AknFepUiInputStateChineseBase.cpp
changeset 36 a7632c26d895
parent 35 0f326f2e628e
child 42 b3eaa440ab06
equal deleted inserted replaced
35:0f326f2e628e 36:a7632c26d895
     1 /*
       
     2 * Copyright (c) 2003 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:            Provides the TAknFepUiInputStateChineseBase methods.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 
       
    27 
       
    28 
       
    29 // INCLUDE FILES
       
    30 #include <avkon.rsg>
       
    31 
       
    32 #include "AknFepUiInputStateChineseBase.h"
       
    33 #include "AknFepUIManagerStateInterface.h"   //MAknFepUIManagerStateInterface
       
    34 #include "AknFepManagerUIInterface.h"        //MAknFepManagerUIInterface
       
    35 #include <PtiDefs.h>                //keys
       
    36 #include "AknFepGlobalEnums.h"
       
    37 #include "AknFepPanic.h"
       
    38 
       
    39 // CONSTANTS
       
    40 
       
    41 /**
       
    42 *  TAknFepUiInputStateChineseBase class.
       
    43 * 
       
    44 */
       
    45 
       
    46 //============================ MEMBER FUNCTIONS ==============================
       
    47 
       
    48 // ---------------------------------------------------------------------------
       
    49 // TAknFepInputStateChineseBase::TAknFepInputStateChineseBase
       
    50 // Constractor
       
    51 // ---------------------------------------------------------------------------
       
    52 //
       
    53 TAknFepInputStateChineseBase::
       
    54 TAknFepInputStateChineseBase(MAknFepUIManagerStateInterface* aOwner,
       
    55                                 MAknFepUICtrlContainerChinese* aUIContainer)
       
    56     :TAknFepInputStateBase(aOwner)
       
    57     {
       
    58     iUIContainer = aUIContainer;
       
    59 
       
    60     /* UI is not activated at this point yet.
       
    61     if (aOwner)
       
    62         {
       
    63         aOwner->FepMan()->SendUIActivatedNotification();
       
    64         }
       
    65         */
       
    66     }
       
    67 
       
    68 // ---------------------------------------------------------------------------
       
    69 // TAknFepInputStateChineseBase::operator=
       
    70 // 
       
    71 // ---------------------------------------------------------------------------
       
    72 //
       
    73 void TAknFepInputStateChineseBase::operator=(const TAknFepInputStateBase& aState)
       
    74     {
       
    75     Mem::Copy(this, &aState, sizeof(TAknFepInputStateBase));
       
    76     }
       
    77 
       
    78 // ---------------------------------------------------------------------------
       
    79 // TAknFepInputStateChineseBase::operator=
       
    80 // 
       
    81 // ---------------------------------------------------------------------------
       
    82 //
       
    83 void TAknFepInputStateChineseBase::operator=(const TAknFepInputStateChineseBase& aState)
       
    84     {
       
    85     Mem::Copy(this, &aState, sizeof(TAknFepInputStateChineseBase));
       
    86     }
       
    87 
       
    88 // ---------------------------------------------------------------------------
       
    89 // TAknFepInputStateChineseBase::UIContainer()
       
    90 // Getting UI container object
       
    91 // @return Japanese UI container object
       
    92 // ---------------------------------------------------------------------------
       
    93 //
       
    94 
       
    95 MAknFepUICtrlContainerChinese* TAknFepInputStateChineseBase::UIContainer()
       
    96     {
       
    97     return static_cast<MAknFepUICtrlContainerChinese*>(iUIContainer);
       
    98     }
       
    99 
       
   100 
       
   101 // ---------------------------------------------------------------------------
       
   102 // TAknFepInputStateChineseBase::HandleCommandL
       
   103 // Handling Command
       
   104 // ---------------------------------------------------------------------------
       
   105 //
       
   106 void TAknFepInputStateChineseBase::HandleCommandL(TInt aCommandId)
       
   107 	{	
       
   108 	switch (aCommandId)
       
   109 	    {
       
   110 		// Handle the event frome command.
       
   111 		case EAknSoftkeyCancel:
       
   112 	//	case (TUint16)EAknSoftkeyCancel: //the Cancle in soft CBA
       
   113 			iOwner->FepMan()->TryCloseUiL();
       
   114 			break;  
       
   115 		case EAknSoftkeySelect:
       
   116 		//case (TUint16)EAknSoftkeySelect: //the Selected in soft CBA
       
   117 			break;
       
   118 		default:
       
   119 			break;
       
   120 		}    	
       
   121  	}
       
   122 // End of file