X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fbuffersyncer.cpp;h=f05d16376d867d6ae620712143d1c76f44154fc7;hp=c6fa1e79ac8717720e727c389f890f4eabaa0479;hb=86831c8857f0a729580cee547e10c9621d50c780;hpb=3c2914faeb01f3bc32e29f40179ae88040fbcf59 diff --git a/src/common/buffersyncer.cpp b/src/common/buffersyncer.cpp index c6fa1e79..f05d1637 100644 --- a/src/common/buffersyncer.cpp +++ b/src/common/buffersyncer.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel IRC Team * + * Copyright (C) 2005-09 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -25,6 +25,11 @@ BufferSyncer::BufferSyncer(QObject *parent) { } +BufferSyncer::BufferSyncer(const QHash &lastSeenMsg, QObject *parent) + : SyncableObject(parent), + _lastSeenMsg(lastSeenMsg) +{ +} MsgId BufferSyncer::lastSeenMsg(BufferId buffer) const { if(_lastSeenMsg.contains(buffer))