logsui/logsengine/tsrc/stubs/logscntfinder_stub.cpp
changeset 8 6c9acdc6adc0
parent 0 4a5361db8937
child 9 68f3171a5819
--- a/logsui/logsengine/tsrc/stubs/logscntfinder_stub.cpp	Fri Jun 11 13:38:41 2010 +0300
+++ b/logsui/logsengine/tsrc/stubs/logscntfinder_stub.cpp	Thu Jun 24 14:44:14 2010 +0300
@@ -24,6 +24,8 @@
 #include <QContactName.h>
 #include <QContactPhoneNumber.h>
 
+QString testHighlights;
+
 // -----------------------------------------------------------------------------
 // LogsCntEntry::richText()
 // -----------------------------------------------------------------------------
@@ -42,6 +44,15 @@
 }
 
 // -----------------------------------------------------------------------------
+// LogsCntEntry::highlights()
+// -----------------------------------------------------------------------------
+//
+int LogsCntText::highlights() const 
+{
+    return testHighlights.length() ;
+}
+
+// -----------------------------------------------------------------------------
 // LogsCntEntry::LogsCntEntry()
 // -----------------------------------------------------------------------------
 //
@@ -204,6 +215,7 @@
 //
 void LogsCntEntry::setHighlights( const QString& pattern )
 {
+    testHighlights = pattern;
 }
 
 // -----------------------------------------------------------------------------