Exemple #1
0
void BufferSyncer::initSetLastSeenMsg(const QVariantList &list) {
  _lastSeenMsg.clear();
  Q_ASSERT(list.count() % 2 == 0);
  for(int i = 0; i < list.count(); i += 2) {
    setLastSeenMsg(list[i].value<BufferId>(), list[i+1].value<MsgId>());
  }
}
void CoreBufferSyncer::requestSetLastSeenMsg(BufferId buffer, const MsgId &msgId)
{
    if (setLastSeenMsg(buffer, msgId))
        dirtyLastSeenBuffers << buffer;
}