X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fbufferinfo.h;h=e20ce9b3eeb9268f25d3b41953c648fcb4fe1e01;hb=2c8434f74c68194d56f2084f637419123e61d18b;hp=c816a8b2c54397ae6af736201dd6e12d4b98736a;hpb=76db8cdfbeffaaba359c8e80cf2146da9e9e7f8a;p=quassel.git diff --git a/src/common/bufferinfo.h b/src/common/bufferinfo.h index c816a8b2..e20ce9b3 100644 --- a/src/common/bufferinfo.h +++ b/src/common/bufferinfo.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2013 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 * @@ -18,15 +18,16 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef BUFFERINFO_H -#define BUFFERINFO_H +#pragma once + +#include "common-export.h" #include "types.h" class QString; class QDataStream; -class BufferInfo +class COMMON_EXPORT BufferInfo { public: enum Type { @@ -59,14 +60,15 @@ public: void setGroupId(uint gid) { _groupId = gid; } QString bufferName() const; + bool acceptsRegularMessages() const; inline bool operator==(const BufferInfo &other) const { return _bufferId == other._bufferId; } private: BufferId _bufferId; NetworkId _netid; - Type _type; - uint _groupId; + Type _type{InvalidBuffer}; + uint _groupId{0}; QString _bufferName; friend uint qHash(const BufferInfo &); @@ -83,5 +85,3 @@ Q_DECLARE_METATYPE(BufferInfo) Q_DECLARE_OPERATORS_FOR_FLAGS(BufferInfo::ActivityLevel) uint qHash(const BufferInfo &); - -#endif