logsui/logsengine/inc/logscommondata.h
changeset 21 2f0af9ba7665
parent 17 90fe74753f71
equal deleted inserted replaced
18:acd4e87b24b4 21:2f0af9ba7665
    16 */
    16 */
    17 
    17 
    18 #ifndef LOGSCOMMONDATA_H
    18 #ifndef LOGSCOMMONDATA_H
    19 #define LOGSCOMMONDATA_H
    19 #define LOGSCOMMONDATA_H
    20 
    20 
       
    21 #include <QObject>
    21 #include <qmobilityglobal.h>
    22 #include <qmobilityglobal.h>
    22 #include "logsevent.h"
    23 #include "logsevent.h"
    23 #include "logsconfigurationparams.h"
    24 #include "logsconfigurationparams.h"
    24 
    25 
    25 QTM_BEGIN_NAMESPACE
    26 QTM_BEGIN_NAMESPACE
    31 class XQSettingsManager;
    32 class XQSettingsManager;
    32 
    33 
    33 /**
    34 /**
    34  * Commonly shared data.
    35  * Commonly shared data.
    35  */
    36  */
    36 class LogsCommonData 
    37 class LogsCommonData : public QObject
    37 { 
    38 { 
       
    39     Q_OBJECT
       
    40     
    38     private: 
    41     private: 
    39         explicit LogsCommonData();
    42         explicit LogsCommonData();
    40         virtual ~LogsCommonData();
    43         virtual ~LogsCommonData();
    41         
    44         
    42     public: 
    45     public: 
    90          */
    93          */
    91         int clearMissedCallsCounter();
    94         int clearMissedCallsCounter();
    92         
    95         
    93         bool getTelNumMatchLen(int& matchLen);
    96         bool getTelNumMatchLen(int& matchLen);
    94         
    97         
       
    98         bool isGui() const;
       
    99         
       
   100         const QString& highlightStart() const;
       
   101         const QString& highlightEnd() const;
       
   102         
       
   103         void refreshData();
       
   104         void compressData();
       
   105         
       
   106     signals:
       
   107     
       
   108         void commonDataChanged();
       
   109     
       
   110     private slots:
       
   111     
       
   112         void handleThemeChange();
    95         
   113         
    96     private:
   114     private:
    97         
   115         
    98         int getPredictiveSearchStatus();
   116         int getPredictiveSearchStatus();
       
   117         void updateHighlightColor();
    99         
   118         
   100     private:
   119     private:
   101         
   120         
   102         QContactManager* mContactManager;
   121         QContactManager* mContactManager;
   103         int mMaxReadSize;
   122         int mMaxReadSize;
   104         LogsEvent::LogsDirection mMaxReadSizeDir;
   123         LogsEvent::LogsDirection mMaxReadSizeDir;
   105         LogsConfigurationParams mConfiguration;
   124         LogsConfigurationParams mConfiguration;
   106         XQSettingsManager* mSettingsManager;
   125         XQSettingsManager* mSettingsManager;
   107         int mMatchLen;
   126         int mMatchLen;
   108         int mPredictiveSearchStatus;
   127         int mPredictiveSearchStatus;
       
   128         bool mIsInGuiProcess;
       
   129         QString mHighlightColorStart;
       
   130         QString mHighlightColorEnd;
       
   131         bool mCompressed;
       
   132         bool mPendingThemeChange;
   109         
   133         
   110     private:
   134     private:
   111         friend class UT_LogsCommonData;
   135         friend class UT_LogsCommonData;
   112         friend class UT_LogsModel;
   136         friend class UT_LogsModel;
   113         
   137         friend class UT_LogsMatchesModel;
   114 };
   138 };
   115 
   139 
   116 
   140 
   117 #endif // LOGSCOMMONDATA_H
   141 #endif // LOGSCOMMONDATA_H
       
   142