fep/aknfep/inc/AknFepVietnameseToneManager.h
branchRCL_3
changeset 18 c8fb4cf7b3ae
parent 0 eb1f2e154e89
equal deleted inserted replaced
14:e6a39382bb9c 18:c8fb4cf7b3ae
   129     
   129     
   130     /**
   130     /**
   131      * Judge if the current state is looping or not
   131      * Judge if the current state is looping or not
   132      */
   132      */
   133     inline TText GetDeletedVowel() const;
   133     inline TText GetDeletedVowel() const;
       
   134     
       
   135     /**
       
   136      * Start key looping 
       
   137      * 
       
   138      * @param aKey current looping key
       
   139      * 
       
   140      */    
       
   141     void StartKeyLooping(TInt aKey);
       
   142     
       
   143     /**
       
   144      * stop key looping, counterpart to StartKeyLooping
       
   145      */
       
   146     void StopKeyLooping();
       
   147 
       
   148     /**
       
   149      * Get current mark index in key looping
       
   150      * 
       
   151      */      
       
   152     TInt ToneMarkIndex() const;
       
   153     
       
   154     /**
       
   155      * Get tone mark vowel in current key looping
       
   156      * 
       
   157      * @param aText return the tone mark vowel
       
   158      * 
       
   159      */     
       
   160     TBool GetLoopingToneMarkVowel( TText& aText ) const;
       
   161     
       
   162     /**
       
   163      * Judge if the current state is key looping or not
       
   164      * 
       
   165      * @param aKey current looping key
       
   166      * 
       
   167      */    
       
   168     inline TBool IsKeyLooping(TInt aKey) const;
       
   169     
       
   170     /**
       
   171      * Judge if the current state is key looping or not
       
   172      */      
       
   173     inline TBool IsLoopingCombined() const;
       
   174     
       
   175     /**
       
   176      * Set whether tone mark is combined in previous looping
       
   177      * 
       
   178      * @param aCombined tone mark is combined
       
   179      * 
       
   180      */ 
       
   181     inline void SetLoopingCombined(TBool aCombined);
   134 
   182 
   135 private:    // Data
   183 private:    // Data
   136     MAknFepManagerUIInterface* iFepMan;     // not own
   184     MAknFepManagerUIInterface* iFepMan;     // not own
   137     TInt iToneIndex;                        // Index of tone mark list
   185     TInt iToneIndex;                        // Index of tone mark list
   138     TInt iVowelIndex;                       // Index of vowel list
   186     TInt iVowelIndex;                       // Index of vowel list
   139     TBool iIsLooping;                       // Judge if input is in looping state
   187     TBool iIsLooping;                       // Judge if input is in looping state
   140     TText iPrevVowel;                       // Prev Vowel, used for undo the backdeletion
   188     TText iPrevVowel;                       // Prev Vowel, used for undo the backdeletion
       
   189     
       
   190     TBool iIsKeyLooping;                    // Judge if input is in loop state, 
       
   191                                             // iIsLooping is only used for star key
       
   192     TInt iLoopingKey;                       // Current looping key
       
   193     TBool iIsLoopingCombined;               // Judge if tone mark is combined in previous looping 
   141     };
   194     };
   142 
   195 
   143 // Inline function implementation
   196 // Inline function implementation
   144 inline TBool CAknFepVietnameseToneManager::IsLooping() const
   197 inline TBool CAknFepVietnameseToneManager::IsLooping() const
   145     {
   198     {
   167 inline TText CAknFepVietnameseToneManager::GetDeletedVowel() const
   220 inline TText CAknFepVietnameseToneManager::GetDeletedVowel() const
   168     {
   221     {
   169     return iPrevVowel;
   222     return iPrevVowel;
   170     }
   223     }
   171 
   224 
       
   225 inline TBool CAknFepVietnameseToneManager::IsKeyLooping(TInt aKey) const
       
   226     {
       
   227     return iIsKeyLooping && (iLoopingKey == aKey) ;
       
   228     }
       
   229 
       
   230 inline TBool CAknFepVietnameseToneManager::IsLoopingCombined() const
       
   231     {
       
   232     return iIsLoopingCombined ;
       
   233     }
       
   234 
       
   235 inline void CAknFepVietnameseToneManager::SetLoopingCombined(TBool aCombined)
       
   236     {
       
   237     iIsLoopingCombined = aCombined ;
       
   238     }
       
   239 
   172 #endif // __AKN_FEP_VIETNAMESE_TONE_MANAGER__
   240 #endif // __AKN_FEP_VIETNAMESE_TONE_MANAGER__
   173 
   241 
   174 // End of file
   242 // End of file