fep/aknfep/inc/AknFepVietnameseToneManager.h
branchRCL_3
changeset 11 c8fb4cf7b3ae
parent 0 eb1f2e154e89
--- a/fep/aknfep/inc/AknFepVietnameseToneManager.h	Tue Apr 27 16:59:43 2010 +0300
+++ b/fep/aknfep/inc/AknFepVietnameseToneManager.h	Tue May 11 16:31:42 2010 +0300
@@ -131,6 +131,54 @@
      * Judge if the current state is looping or not
      */
     inline TText GetDeletedVowel() const;
+    
+    /**
+     * Start key looping 
+     * 
+     * @param aKey current looping key
+     * 
+     */    
+    void StartKeyLooping(TInt aKey);
+    
+    /**
+     * stop key looping, counterpart to StartKeyLooping
+     */
+    void StopKeyLooping();
+
+    /**
+     * Get current mark index in key looping
+     * 
+     */      
+    TInt ToneMarkIndex() const;
+    
+    /**
+     * Get tone mark vowel in current key looping
+     * 
+     * @param aText return the tone mark vowel
+     * 
+     */     
+    TBool GetLoopingToneMarkVowel( TText& aText ) const;
+    
+    /**
+     * Judge if the current state is key looping or not
+     * 
+     * @param aKey current looping key
+     * 
+     */    
+    inline TBool IsKeyLooping(TInt aKey) const;
+    
+    /**
+     * Judge if the current state is key looping or not
+     */      
+    inline TBool IsLoopingCombined() const;
+    
+    /**
+     * Set whether tone mark is combined in previous looping
+     * 
+     * @param aCombined tone mark is combined
+     * 
+     */ 
+    inline void SetLoopingCombined(TBool aCombined);
 
 private:    // Data
     MAknFepManagerUIInterface* iFepMan;     // not own
@@ -138,6 +186,11 @@
     TInt iVowelIndex;                       // Index of vowel list
     TBool iIsLooping;                       // Judge if input is in looping state
     TText iPrevVowel;                       // Prev Vowel, used for undo the backdeletion
+    
+    TBool iIsKeyLooping;                    // Judge if input is in loop state, 
+                                            // iIsLooping is only used for star key
+    TInt iLoopingKey;                       // Current looping key
+    TBool iIsLoopingCombined;               // Judge if tone mark is combined in previous looping 
     };
 
 // Inline function implementation
@@ -169,6 +222,21 @@
     return iPrevVowel;
     }
 
+inline TBool CAknFepVietnameseToneManager::IsKeyLooping(TInt aKey) const
+    {
+    return iIsKeyLooping && (iLoopingKey == aKey) ;
+    }
+
+inline TBool CAknFepVietnameseToneManager::IsLoopingCombined() const
+    {
+    return iIsLoopingCombined ;
+    }
+
+inline void CAknFepVietnameseToneManager::SetLoopingCombined(TBool aCombined)
+    {
+    iIsLoopingCombined = aCombined ;
+    }
+
 #endif // __AKN_FEP_VIETNAMESE_TONE_MANAGER__
 
 // End of file