--- a/logsui/logsengine/inc/logscommondata.h Mon Aug 23 18:14:51 2010 +0300
+++ b/logsui/logsengine/inc/logscommondata.h Fri Sep 03 14:26:05 2010 +0300
@@ -28,6 +28,8 @@
QTM_USE_NAMESPACE
+class XQSettingsManager;
+
/**
* Commonly shared data.
*/
@@ -61,17 +63,50 @@
int updateConfiguration(const LogsConfigurationParams& params);
LogsConfigurationParams& currentConfiguration();
- void setTelNumMatchLen(int matchLen);
int telNumMatchLen() const;
+ /**
+ * Returns cenrep key status of predictive search feature.
+ * @return 0 - feature is permanently off and can't be turned on,
+ * 1 - feature is on
+ * 2 - feature is temporarily off and can be turned on
+ * negative value indicates some error in fetching the key
+ */
+ int predictiveSearchStatus();
+
+ /**
+ * Allows to modify cenrep key value of predictive search features.
+ * However, this function can't be used if feature is set permanently off
+ * (see predictiveSearchStatus())
+ * @param enabled, specify whether cenrep key will be set to 1 or 2
+ * @ return 0 if cenrep key value modified succesfully,
+ * -1 in case of some error
+ */
+ int setPredictiveSearch(bool enabled);
+
+ /**
+ * Clear missed calls counter.
+ * @return 0 if clearing was success
+ */
+ int clearMissedCallsCounter();
+
+ bool getTelNumMatchLen(int& matchLen);
+
+
+ private:
+
+ int getPredictiveSearchStatus();
+
private:
QContactManager* mContactManager;
int mMaxReadSize;
LogsEvent::LogsDirection mMaxReadSizeDir;
LogsConfigurationParams mConfiguration;
+ XQSettingsManager* mSettingsManager;
int mMatchLen;
-
+ int mPredictiveSearchStatus;
+
private:
friend class UT_LogsCommonData;
friend class UT_LogsModel;