logsui/logsengine/src/logsabstractmodel.cpp
changeset 17 90fe74753f71
parent 15 76d2cf7a585e
child 21 2f0af9ba7665
equal deleted inserted replaced
15:76d2cf7a585e 17:90fe74753f71
    26 #include <hbicon.h>
    26 #include <hbicon.h>
    27 #include <QStringBuilder>
    27 #include <QStringBuilder>
    28 #include <hbextendedlocale.h>
    28 #include <hbextendedlocale.h>
    29 #include <hbstringutil.h>
    29 #include <hbstringutil.h>
    30 #include "logsconfigurationparams.h"
    30 #include "logsconfigurationparams.h"
       
    31 #include "logscommondata.h"
    31 
    32 
    32 Q_DECLARE_METATYPE(LogsEvent *)
    33 Q_DECLARE_METATYPE(LogsEvent *)
    33 Q_DECLARE_METATYPE(LogsCall *)
    34 Q_DECLARE_METATYPE(LogsCall *)
    34 Q_DECLARE_METATYPE(LogsMessage *)
    35 Q_DECLARE_METATYPE(LogsMessage *)
    35 Q_DECLARE_METATYPE(LogsContact *)
    36 Q_DECLARE_METATYPE(LogsContact *)
    77 int LogsAbstractModel::predictiveSearchStatus()
    78 int LogsAbstractModel::predictiveSearchStatus()
    78 {
    79 {
    79     if ( !mDbConnector ){
    80     if ( !mDbConnector ){
    80         return -1;
    81         return -1;
    81     }
    82     }
    82     return mDbConnector->predictiveSearchStatus();
    83     return LogsCommonData::getInstance().predictiveSearchStatus();
    83 }
    84 }
    84 
    85 
    85 // -----------------------------------------------------------------------------
    86 // -----------------------------------------------------------------------------
    86 //
    87 //
    87 // -----------------------------------------------------------------------------
    88 // -----------------------------------------------------------------------------
   208 
   209 
   209 // -----------------------------------------------------------------------------
   210 // -----------------------------------------------------------------------------
   210 //
   211 //
   211 // -----------------------------------------------------------------------------
   212 // -----------------------------------------------------------------------------
   212 //
   213 //
   213 int LogsAbstractModel::doSetPredictiveSearch(bool enabled){
   214 int LogsAbstractModel::doSetPredictiveSearch(bool enabled)
   214     if ( !mDbConnector ){
   215 {
   215         return -1;
   216     return LogsCommonData::getInstance().setPredictiveSearch(enabled);
   216     }
       
   217     return mDbConnector->setPredictiveSearch(enabled);
       
   218 }
   217 }
   219 
   218 
   220 // -----------------------------------------------------------------------------
   219 // -----------------------------------------------------------------------------
   221 //
   220 //
   222 // -----------------------------------------------------------------------------
   221 // -----------------------------------------------------------------------------