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 |
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 |