fep/aknfep/src/AknFepUiInputStateInitialJapaneseBase.cpp
changeset 0 eb1f2e154e89
equal deleted inserted replaced
-1:000000000000 0:eb1f2e154e89
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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 TAknFepUiInputStateInitialJapaneseBase methods.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 
       
    26 
       
    27 
       
    28 
       
    29 // INCLUDE FILES
       
    30 #include "AknFepUiInputStateInitialJapaneseBase.h"
       
    31 #include "AknFepUIManagerStateInterface.h"  // MAknFepUIManagerStateInterface
       
    32 #include "AknFepManagerUIInterface.h"       // MAknFepManagerUIInterface
       
    33 #include "AknFepGlobalEnums.h"
       
    34 
       
    35 #include <PtiDefs.h>                // keys
       
    36 #include <PtiEngine.h>
       
    37 
       
    38 
       
    39 // CONSTANTS
       
    40 
       
    41 /**
       
    42  *  AknFepUIInputStateInitialJapanesBase class.
       
    43  * 
       
    44  */
       
    45 //============================ MEMBER FUNCTIONS ==============================
       
    46 
       
    47 // ---------------------------------------------------------------------------
       
    48 // TAknFepUiInputStateInitialJapaneseBase::
       
    49 //                                    TAknFepUiInputStateInitialJapaneseBase
       
    50 // C++ default Constructor
       
    51 // ---------------------------------------------------------------------------
       
    52 //
       
    53 TAknFepUiInputStateInitialJapaneseBase::TAknFepUiInputStateInitialJapaneseBase(
       
    54                                 MAknFepUIManagerStateInterface* aOwner,
       
    55                                 MAknFepUICtrlContainerJapanese* aUIContainer)
       
    56     :TAknFepUiInputStateJapaneseBase(aOwner, aUIContainer)
       
    57     {
       
    58     iState = EInitial;
       
    59 
       
    60     }
       
    61 
       
    62 // ---------------------------------------------------------------------------
       
    63 // TAknFepUiInputStateInitialJapaneseBase::InitializeStateL
       
    64 // Initialize State
       
    65 // ---------------------------------------------------------------------------
       
    66 //
       
    67 void TAknFepUiInputStateInitialJapaneseBase::InitializeStateL()
       
    68     {
       
    69     MAknFepManagerUIInterface* fepMan = iOwner->FepMan();
       
    70     fepMan->SendUIDeActivatedNotification();
       
    71     TRAP_IGNORE(fepMan->UpdateCbaL(NULL));
       
    72     }
       
    73 
       
    74 // ---------------------------------------------------------------------------
       
    75 // TAknFepUiInputStateInitialJapaneseBase::HandleNumericShortKeyL
       
    76 // Handling numeric short keypress event
       
    77 // ---------------------------------------------------------------------------
       
    78 //
       
    79 TBool TAknFepUiInputStateInitialJapaneseBase::
       
    80     HandleNumericShortKeyL(TInt aKey)
       
    81     {
       
    82     TBool ret = EFalse;
       
    83     MAknFepManagerUIInterface* fepMan = iOwner->FepMan();
       
    84     if(aKey == EPtiKeyStar)
       
    85         { // Handling of launch special character table
       
    86         if (!fepMan->HashKeySelectionInUse())
       
    87             {
       
    88             if (fepMan->EditSubmenuInUse())
       
    89                 {
       
    90                 fepMan->LaunchSelectModeMenuL();
       
    91                 }
       
    92             else if (fepMan->IsAbleToLaunchSCT())
       
    93                 {
       
    94                 fepMan->LaunchSpecialCharacterTableL();
       
    95                 }
       
    96             }
       
    97         ret = ETrue;
       
    98         }
       
    99     else
       
   100         {
       
   101         fepMan->StartInlineEditL();
       
   102         iOwner->ChangeState(EEntry);
       
   103         }
       
   104     // All number keypress event must be handled by InputStateEntry.
       
   105     return ret;
       
   106     }
       
   107 
       
   108 // ---------------------------------------------------------------------------
       
   109 // TAknFepUiInputStateInitialJapaneseBase::HandleAuxKeyL
       
   110 // Handling OK and Backspace keypress event
       
   111 // ---------------------------------------------------------------------------
       
   112 //
       
   113 TBool TAknFepUiInputStateInitialJapaneseBase::
       
   114     HandleAuxKeyL(TInt /*aKey*/,TKeyPressLength /*aLength*/)
       
   115     {
       
   116     TBool ret = EFalse;
       
   117     return ret;
       
   118     }
       
   119 // End of file