diff -r 4a5361db8937 -r 7119b73b84d6 recents_plat/logs_engine_api/inc/logsmodel.h --- a/recents_plat/logs_engine_api/inc/logsmodel.h Tue May 04 12:39:37 2010 +0300 +++ b/recents_plat/logs_engine_api/inc/logsmodel.h Fri May 14 15:52:41 2010 +0300 @@ -24,6 +24,7 @@ class LogsEvent; class LogsDbConnector; class LogsMatchesModel; +class LogsConfigurationParams; /** * Model for log events. @@ -104,25 +105,13 @@ * @return 0 if compressed */ LOGSENGINE_EXPORT int compressData(); - + /** - * 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 + * Configuration. + * @param configuration parameters + * @return 0 if configured succesfully */ - LOGSENGINE_EXPORT 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 - */ - LOGSENGINE_EXPORT int setPredictiveSearch(bool enabled); + LOGSENGINE_EXPORT int updateConfiguration(LogsConfigurationParams& params); public: // From QAbstractItemModel @@ -160,6 +149,7 @@ void dataAdded(QList addedIndexes); void dataUpdated(QList updatedIndexes); void dataRemoved(QList removedIndexes); + void resetModel(); private: @@ -170,6 +160,7 @@ */ QList< QList > findSequentialIndexes(const QList& indexes); QString getCallerId(const LogsEvent& event) const; + QString SqueezedString(QString basestring, QString secondarystring, qreal maxwidth) const; void initIcons(); bool matchEventWithClearType(const LogsEvent& event, LogsModel::ClearType clearType);