logsui/logsengine/tsrc/stubs/logscntfinder_stub.cpp
changeset 11 64a47b97e1e1
parent 0 4a5361db8937
child 9 68f3171a5819
equal deleted inserted replaced
10:b04270301d3b 11:64a47b97e1e1
    22 #include <QContactManager.h>
    22 #include <QContactManager.h>
    23 #include <QContact.h>
    23 #include <QContact.h>
    24 #include <QContactName.h>
    24 #include <QContactName.h>
    25 #include <QContactPhoneNumber.h>
    25 #include <QContactPhoneNumber.h>
    26 
    26 
       
    27 QString testHighlights;
       
    28 
    27 // -----------------------------------------------------------------------------
    29 // -----------------------------------------------------------------------------
    28 // LogsCntEntry::richText()
    30 // LogsCntEntry::richText()
    29 // -----------------------------------------------------------------------------
    31 // -----------------------------------------------------------------------------
    30 //
    32 //
    31 QString LogsCntText::richText( QString startTag, 
    33 QString LogsCntText::richText( QString startTag, 
    37         str.insert( 0, startTag );
    39         str.insert( 0, startTag );
    38     }
    40     }
    39 
    41 
    40     return str;
    42     return str;
    41     
    43     
       
    44 }
       
    45 
       
    46 // -----------------------------------------------------------------------------
       
    47 // LogsCntEntry::highlights()
       
    48 // -----------------------------------------------------------------------------
       
    49 //
       
    50 int LogsCntText::highlights() const 
       
    51 {
       
    52     return testHighlights.length() ;
    42 }
    53 }
    43 
    54 
    44 // -----------------------------------------------------------------------------
    55 // -----------------------------------------------------------------------------
    45 // LogsCntEntry::LogsCntEntry()
    56 // LogsCntEntry::LogsCntEntry()
    46 // -----------------------------------------------------------------------------
    57 // -----------------------------------------------------------------------------
   202 // LogsCntEntry::setHighlights()
   213 // LogsCntEntry::setHighlights()
   203 // -----------------------------------------------------------------------------
   214 // -----------------------------------------------------------------------------
   204 //
   215 //
   205 void LogsCntEntry::setHighlights( const QString& pattern )
   216 void LogsCntEntry::setHighlights( const QString& pattern )
   206 {
   217 {
       
   218     testHighlights = pattern;
   207 }
   219 }
   208 
   220 
   209 // -----------------------------------------------------------------------------
   221 // -----------------------------------------------------------------------------
   210 // LogsCntEntry::match()
   222 // LogsCntEntry::match()
   211 // -----------------------------------------------------------------------------
   223 // -----------------------------------------------------------------------------