fep/aknfep/UiPlugins/AknFepUiInterface/AvkonImpl/inc/AknFepPredictiveSettingData.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/fep/aknfep/UiPlugins/AknFepUiInterface/AvkonImpl/inc/AknFepPredictiveSettingData.h Tue Feb 02 01:02:04 2010 +0200
@@ -0,0 +1,185 @@
+/*
+* Copyright (c) 2009 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:
+*
+*/
+
+
+
+
+
+
+
+
+
+
+/*
+ * ============================================================================
+ * Name : CAknFepPredictiveSettingData from AknFepPredictiveSettingData.h
+ * ============================================================================
+ */
+
+#ifndef __AKN_FEP_PREDICTIVESETTING_DATA_H
+#define __AKN_FEP_PREDICTIVESETTING_DATA_H
+
+#include <e32base.h>
+
+/**
+ * Class: CAknFepPredictiveSettingData
+ *
+ * Discussion: An aggregate class containing data for all editing controls
+ * This class is used as a central respository for all data
+ * to be displayed and editted within this app.
+ */
+class CAknFepPredictiveSettingData : public CBase
+{
+public:
+ /**
+ * Function: NewL
+ *
+ * Discussion: Factory function used to create a new instance of
+ * CAknFepPredictiveSettingData
+ *
+ * Returns: A newly created instance of CAknFepPredictiveSettingData with all data
+ * items valid
+ */
+ static CAknFepPredictiveSettingData* NewL();
+
+ /**
+ * Function: NewLC
+ *
+ * Discussion: Factory function used to create a new instance of
+ * CAknFepPredictiveSettingData and leave a pointer to it on the cleanup
+ * stack
+ *
+ * Returns: A newly created instance of CAknFepPredictiveSettingData with all data
+ * items valid
+ */
+ static CAknFepPredictiveSettingData* NewLC();
+
+ /**
+ * Function: ~CAknFepPredictiveSettingData
+ *
+ * Discussion: Virtual destructor for CAknFepPredictiveSettingData. Ensures that all
+ * allocated memory is returned to the heap before deletion
+ * of object.
+ *
+ */
+ virtual ~CAknFepPredictiveSettingData();
+
+ /**
+ * Function: LoadL
+ *
+ * Discussion: Loads itself with parameters passed.
+ *
+ */
+ void LoadL(TInt aAutoWordCompl,
+ TInt aTypingCorrection,
+ TInt aNumberCandidates,
+ TInt aPrimaryCandidate,
+ TInt aPhysicalKeyboards,
+ TInt aAWCBitmask);
+
+ /**
+ * Function: SaveL
+ *
+ * Discussion: Saves itself.
+ *
+ */
+ void SaveL() const;
+
+ /**
+ * Function: AutoWordCompl
+ *
+ * Discussion: Trivial accessor function
+ *
+ * Returns: A reference to the iAutoWordCompl member
+ */
+ inline TInt& AutoWordCompl() {return iAutoWordCompl; }
+
+ /**
+ * Function: TypingCorrection
+ *
+ * Discussion: Trivial accessor function
+ *
+ * Returns: A reference to the iTypingCorrection member
+ */
+ inline TInt& TypingCorrection() { return iTypingCorrection; }
+
+
+ /**
+ * Function: NumberCandidates
+ *
+ * Discussion: Trivial accessor function
+ *
+ * Returns: A reference to the iNumberCandidates member
+ */
+ inline TInt& NumberCandidates() {return iNumberCandidates; }
+
+ /**
+ * Function: PrimaryCandidate
+ *
+ * Discussion: Trivial accessor function
+ *
+ * Returns: A reference to the iPrimaryCandidate member
+ */
+ inline TInt& PrimaryCandidate() {return iPrimaryCandidate; }
+
+ /**
+ * Function: PhysicalKeyboards
+ *
+ * Discussion: Trivial accessor function
+ *
+ * Returns: Value of iPhysicalKeyboards member
+ */
+ inline TInt PhysicalKeyboards() {return iPhysicalKeyboards; }
+
+ /**
+ * Function: AWCBitmask
+ *
+ * Discussion: Trivial accessor function
+ *
+ * Returns: Value of iPhysicalKeyboards member
+ */
+ inline TInt& AWCBitmask() {return iAWCBitmask; }
+private:
+ /**
+ * Function: CAknFepPredictiveSettingData
+ *
+ * Discussion: Hidden, first-stage non-leaving constructor.
+ *
+ */
+ CAknFepPredictiveSettingData();
+
+ /**
+ * Function: ConstructL
+ *
+ * Discussion: Hidden, second-stage possibly-leaving constructor.
+ *
+ */
+ void ConstructL();
+
+
+public:
+ TInt iAutoWordCompl; /* Data for AutoWordCompl field */
+ TInt iTypingCorrection; /* Data for TypingCorrection text field */
+ TInt iNumberCandidates; /* Data for NumberCandidates field */
+ TInt iPrimaryCandidate; /* Data for PrimaryCandidate field */
+ TInt iPhysicalKeyboards; /* Data for PhysicalKeyboards field */
+ TInt iAWCBitmask; /* AWC data in bitmask form */
+
+};
+
+#endif // __AKN_FEP_PREDICTIVESETTING_DATA_H
+