fep/aknfep/src/AknFepUiInputStateChineseBase.cpp
branchRCL_3
changeset 50 5a1685599b76
parent 0 eb1f2e154e89
child 56 8152b1f1763a
--- a/fep/aknfep/src/AknFepUiInputStateChineseBase.cpp	Tue Sep 14 21:59:06 2010 +0300
+++ b/fep/aknfep/src/AknFepUiInputStateChineseBase.cpp	Wed Sep 15 12:34:44 2010 +0300
@@ -53,7 +53,9 @@
 TAknFepInputStateChineseBase::
 TAknFepInputStateChineseBase(MAknFepUIManagerStateInterface* aOwner,
                                 MAknFepUICtrlContainerChinese* aUIContainer)
-    :TAknFepInputStateBase(aOwner)
+    :TAknFepInputStateBase(aOwner),
+     iPlugin( NULL, NULL, ENull ),
+     iStrokePlugin( NULL, NULL, ENull )
     {
     iUIContainer = aUIContainer;
 
@@ -83,6 +85,10 @@
 void TAknFepInputStateChineseBase::operator=(const TAknFepInputStateChineseBase& aState)
     {
     Mem::Copy(this, &aState, sizeof(TAknFepInputStateChineseBase));
+    if( UIContainer())
+    	{
+		UIContainer()->SetFepUiStateCtrl( this );
+    	}
     }
 
 // ---------------------------------------------------------------------------
@@ -119,4 +125,29 @@
 			break;
 		}    	
  	}
+
+// ---------------------------------------------------------------------------
+// TAknFepInputStateChineseBase::SetPlugin
+// Set plugin to state machine
+// ---------------------------------------------------------------------------
+//
+void TAknFepInputStateChineseBase::SetPlugin( 
+            TAknFepInputMiniQwertySogouPinyinPhrasePlugin aPlugin )
+    {
+    iPlugin = aPlugin;
+    iPlugin.Enable( ETrue );
+    }
+
+// ---------------------------------------------------------------------------
+// TAknFepInputStateChineseBase::SetStrokePlugin
+// Set plugin to state machine
+// ---------------------------------------------------------------------------
+//
+void TAknFepInputStateChineseBase::SetStrokePlugin( 
+            TAknFepInputMiniQwertySogouStrokePhrasePlugin aPlugin )
+    {
+    iStrokePlugin = aPlugin;
+    iStrokePlugin.Enable( ETrue );
+    }
+
 // End of file