_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;
s.endGroup();
*/
//delete state;
- emit bufferDestroyed(this);
}
Buffer::Type Buffer::bufferType() const {
_bufferInfo = bufferid;
}
+uint Buffer::uid() const {
+ return bufferInfo().uid();
+}
+
uint Buffer::networkId() const {
return bufferInfo().networkId();
}
return bufferInfo().network();
}
-QString Buffer::bufferName() const {
- return bufferInfo().buffer();
-}
-
-QString Buffer::displayName() const {
- if(bufferType() == ServerBuffer)
+QString Buffer::name() const {
+ if(bufferType() == StatusType)
return tr("Status Buffer");
else
- return bufferName();
+ return bufferInfo().buffer();
}
QList<AbstractUiMsg *> Buffer::contents() const {
}
bool Buffer::isStatusBuffer() const {
- return bufferType() == ServerBuffer;
+ return bufferType() == StatusType;
}
void Buffer::setActive(bool a) {