X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fbufferinfo.h;h=63ba6a52c9639562b05d74f339c8ac0d3284c5d2;hp=fd37329dac3e775716c760d707c29db3e7715107;hb=3456106b07bfc3000e50df9322ddefd4f872e0fb;hpb=850f5ae9b96c609f70cdb565bb19054131487714 diff --git a/src/common/bufferinfo.h b/src/common/bufferinfo.h index fd37329d..63ba6a52 100644 --- a/src/common/bufferinfo.h +++ b/src/common/bufferinfo.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * + * Copyright (C) 2005-09 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -17,10 +17,9 @@ * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#ifndef _BUFFERINFO_H_ -#define _BUFFERINFO_H_ +#ifndef BUFFERINFO_H +#define BUFFERINFO_H -#include #include "types.h" class QString; @@ -50,13 +49,14 @@ public: static BufferInfo fakeStatusBuffer(NetworkId networkId); inline bool isValid() const { return _bufferId != 0; } - inline BufferId bufferId() const { return _bufferId; } - inline NetworkId networkId() const { return _netid; } - inline Type type() const { return _type; } - inline uint groupId() const { return _groupId; } - QString bufferName() const; - + inline const BufferId &bufferId() const { return _bufferId; } + inline void setBufferId(BufferId id) { _bufferId = id; } + inline const NetworkId &networkId() const { return _netid; } + inline const Type &type() const { return _type; } + inline const uint &groupId() const { return _groupId; } void setGroupId(uint gid) { _groupId = gid; } + + QString bufferName() const; inline bool operator==(const BufferInfo &other) const { return _bufferId == other._bufferId; }