logsui/logsapp/tsrc/ut_logsapp/logsengine_stub/logsevent.cpp
changeset 16 c5af8598d22c
parent 6 41c0a814d878
equal deleted inserted replaced
14:f27aebe284bb 16:c5af8598d22c
    41     mIsRead(false),
    41     mIsRead(false),
    42     mIsALS(false),
    42     mIsALS(false),
    43     mDuration(0),
    43     mDuration(0),
    44     mIndex(0),
    44     mIndex(0),
    45     mIsInView(false),
    45     mIsInView(false),
       
    46     mContactMatched(false),
       
    47     mIsPrivate(false),
    46     mEventState(EventAdded)
    48     mEventState(EventAdded)
    47 {
    49 {
    48 }
    50 }
    49 
    51 
    50 // ----------------------------------------------------------------------------
    52 // ----------------------------------------------------------------------------
    71     mIsALS = event.mIsALS;
    73     mIsALS = event.mIsALS;
    72     mDuration = event.mDuration;
    74     mDuration = event.mDuration;
    73     
    75     
    74     mIndex = event.mIndex;
    76     mIndex = event.mIndex;
    75     mIsInView = event.mIsInView;
    77     mIsInView = event.mIsInView;
       
    78     mContactMatched = event.mContactMatched;
    76     mEventState = event.mEventState;
    79     mEventState = event.mEventState;
    77 }
    80 }
    78 
    81 
    79 // ----------------------------------------------------------------------------
    82 // ----------------------------------------------------------------------------
    80 // LogsEvent::~LogsEvent
    83 // LogsEvent::~LogsEvent
   176     if ( mEventState == EventNotUpdated && mRemoteParty != remoteParty ){
   179     if ( mEventState == EventNotUpdated && mRemoteParty != remoteParty ){
   177         LOGS_QDEBUG( "logs [ENG] <-> LogsEvent::setRemoteParty, event updated")
   180         LOGS_QDEBUG( "logs [ENG] <-> LogsEvent::setRemoteParty, event updated")
   178         mEventState = LogsEvent::EventUpdated;
   181         mEventState = LogsEvent::EventUpdated;
   179     }
   182     }
   180     mRemoteParty = remoteParty;
   183     mRemoteParty = remoteParty;
       
   184 }
       
   185 
       
   186 bool LogsEvent::isRemotePartyPrivate() const
       
   187 {
       
   188    return mIsPrivate;
       
   189 }
       
   190 
       
   191 // ----------------------------------------------------------------------------
       
   192 // LogsEvent::setContactMatched
       
   193 // ----------------------------------------------------------------------------
       
   194 //
       
   195 void LogsEvent::setContactMatched( bool value )
       
   196 {
       
   197     mContactMatched = value;
       
   198 }
       
   199 
       
   200 // ----------------------------------------------------------------------------
       
   201 // LogsEvent::contactMatched
       
   202 // ----------------------------------------------------------------------------
       
   203 //
       
   204 bool LogsEvent::contactMatched()
       
   205 {
       
   206    return mContactMatched;
   181 }
   207 }
   182 
   208 
   183 // ----------------------------------------------------------------------------
   209 // ----------------------------------------------------------------------------
   184 // LogsEvent::validate
   210 // LogsEvent::validate
   185 // ----------------------------------------------------------------------------
   211 // ----------------------------------------------------------------------------