X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fbufferinfo.h;h=0953a10f03716346d2b58dc15262cf3650731395;hp=f5a9f380aa10fb0aae2673bb7bdab6999007e567;hb=cf0e5a5e8d6b27cd377b594a4342a7b493f815b0;hpb=da1ad61b4d3f7b21d34a3a22e8408eb593d2b0a8 diff --git a/src/common/bufferinfo.h b/src/common/bufferinfo.h index f5a9f380..0953a10f 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 * @@ -50,13 +50,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; }