X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fbuffer.cpp;h=3e6e33963f788b5d18ea85e34a5f7876bb559ac2;hp=1fb07971aeeab45b593a615c377fd0caca87743c;hb=a76b7bf7206e939b1503910825a3225119c89e8b;hpb=902c95728306e5ba115de84800fc8d5d239c9d62 diff --git a/src/client/buffer.cpp b/src/client/buffer.cpp index 1fb07971..3e6e3396 100644 --- a/src/client/buffer.cpp +++ b/src/client/buffer.cpp @@ -17,6 +17,8 @@ * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ +#include + #include "buffer.h" #include "client.h" @@ -29,11 +31,11 @@ Buffer::Buffer(BufferInfo bufferid, QObject *parent) _active(false) { if(bufferid.buffer().isEmpty()) - _type = ServerBuffer; + _type = StatusType; else if(isChannelName(bufferid.buffer())) - _type = ChannelBuffer; + _type = ChannelType; else - _type = QueryBuffer; + _type = QueryType; /* QSettings s; @@ -53,7 +55,6 @@ Buffer::~Buffer() { s.endGroup(); */ //delete state; - emit bufferDestroyed(this); } Buffer::Type Buffer::bufferType() const { @@ -73,6 +74,10 @@ void Buffer::updateBufferInfo(BufferInfo bufferid) { _bufferInfo = bufferid; } +uint Buffer::uid() const { + return bufferInfo().uid(); +} + uint Buffer::networkId() const { return bufferInfo().networkId(); } @@ -86,7 +91,7 @@ QString Buffer::bufferName() const { } QString Buffer::displayName() const { - if(bufferType() == ServerBuffer) + if(bufferType() == StatusType) return tr("Status Buffer"); else return bufferName(); @@ -112,7 +117,7 @@ QString Buffer::ownNick() const { } bool Buffer::isStatusBuffer() const { - return bufferType() == ServerBuffer; + return bufferType() == StatusType; } void Buffer::setActive(bool a) {