--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/fep/aknfep/inc/AknFepZhuyinAnalyser.h Tue Feb 02 01:02:04 2010 +0200
@@ -0,0 +1,93 @@
+/*
+* Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0""
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Pen input related enums
+*
+*/
+
+
+
+
+
+
+
+
+
+
+
+#ifndef C_AKNFEPZHUYINANALYSER_H
+#define C_AKNFEPZHUYINANALYSER_H
+
+
+#include <e32base.h>
+
+class TSpellBand;
+class CZhuyinAnalyserDbFeed;
+
+/**
+ * Composition no chars ui state
+ * It provides key event handling and internal event handling in composition no chars state
+ *
+ * @lib peninputvkbcn.lib
+ * @since S60 v3.2
+ */
+class CAknFepZhuyinAnalyser : public CBase
+ {
+public:
+
+ /**
+ * Two-phased constructor.
+ *
+ * @since S60 v3.2
+ * @param aDb The database file for pinyin or spell
+ * @return The pointer point to CAknFepVkbPinyinAnalyser type object
+ */
+ static CAknFepZhuyinAnalyser* NewL( CZhuyinAnalyserDbFeed* aDb );
+
+ /**
+ * Destructor.
+ *
+ * @since S60 v3.2
+ */
+ virtual ~CAknFepZhuyinAnalyser();
+
+ /**
+ * Process key event
+ *
+ * @since S60 v3.2
+ * @param aData Carry information of key pressed
+ * @return ETrue means event was responsed, otherwise EFalse
+ */
+
+
+ TBool AnalyzeL(const TDesC& aInputString);
+
+ HBufC* LastAnalysisResult();
+
+private:
+ CAknFepZhuyinAnalyser();
+ void ConstructL( CZhuyinAnalyserDbFeed* aDb );
+ TBool DetailAnalyseL(const TDesC& aInputString);
+ TBool FindSpell(const TDesC& aSpell, TInt& aSameLength);
+ TInt Compare(const TDesC& aFirst, const TDesC& aSecond, TInt& aSameLength);
+
+private:
+ TSpellBand* iParagraph;
+ TPtrC* iSpellLibrary;
+ HBufC* iLastResult;
+ RArray<TInt> iSeperators;
+ CZhuyinAnalyserDbFeed* iDb;
+ TBool iAnalysisFlag;
+ };
+
+#endif // C_AKNFEPZHUYINANALYSER_H