contentstorage/caclient/stub/src/canotifiers.cpp
changeset 66 32469d7d46ff
parent 60 f62f87b200ec
child 73 4bc7b118b3df
equal deleted inserted replaced
61:8e5041d13c84 66:32469d7d46ff
    53             }
    53             }
    54         }
    54         }
    55     }
    55     }
    56 }
    56 }
    57 
    57 
       
    58 void CaNotifiers::NotifyTouched(int id)
       
    59 {
       
    60     for (NotifierHash::const_iterator i = mNotifiers.constBegin();
       
    61             i != mNotifiers.constEnd();
       
    62             ++i) {
       
    63         const CaNotifierFilter *filter = i.key().first;
       
    64         if (filter->getIds().isEmpty() || filter->getIds().contains(id)) {
       
    65             if (i.key().second == CaNotifierPrivate::EntryTouchedNotifierType) {
       
    66                 i.value()->entryTouched(id);
       
    67             }
       
    68         }
       
    69     }
       
    70 }
       
    71 
    58 void CaNotifiers::Notify(const CaEntry &targetEntry,
    72 void CaNotifiers::Notify(const CaEntry &targetEntry,
    59                          ChangeType changeType,
    73                          ChangeType changeType,
    60                          QList<int> &parentIds)
    74                          QList<int> &parentIds)
    61 {
    75 {
    62     for (NotifierHash::const_iterator i = mNotifiers.constBegin();
    76     for (NotifierHash::const_iterator i = mNotifiers.constBegin();