/***************************************************************************
- * Copyright (C) 2005-2012 by the Quassel Project *
+ * Copyright (C) 2005-2018 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
#include <QDataStream>
#include <QDebug>
#include <QByteArray>
+#include <utility>
#include "bufferinfo.h"
BufferInfo::BufferInfo()
: _bufferId(0),
_netid(0),
- _type(InvalidBuffer),
- _groupId(0),
_bufferName(QString())
{
}
_netid(networkid),
_type(type),
_groupId(gid),
- _bufferName(buf)
+ _bufferName(std::move(buf))
{
}
}
+bool BufferInfo::acceptsRegularMessages() const
+{
+ if(_type == StatusBuffer || _type == InvalidBuffer)
+ return false;
+ return true;
+}
+
+
QDebug operator<<(QDebug dbg, const BufferInfo &b)
{
dbg.nospace() << "(bufId: " << b.bufferId() << ", netId: " << b.networkId() << ", groupId: " << b.groupId() << ", buf: " << b.bufferName() << ")";