projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed a bug where a case-sensitive comparison with ownNick prevented connection to...
[quassel.git]
/
gui
/
buffer.cpp
diff --git
a/gui/buffer.cpp
b/gui/buffer.cpp
index
7c92ac6
..
9c9726e
100644
(file)
--- a/
gui/buffer.cpp
+++ b/
gui/buffer.cpp
@@
-23,12
+23,21
@@
#include "chatwidget.h"
#include "bufferwidget.h"
#include "chatwidget.h"
#include "bufferwidget.h"
+/*
Buffer::Buffer(QString netname, QString bufname) {
Buffer::Buffer(QString netname, QString bufname) {
- _networkName = netname;
- _bufferName = bufname;
+ Buffer(BufferId(0, netname, bufname));
+
+
+}
+*/
+
+Buffer::Buffer(BufferId bufid) {
+ id = bufid;
+ _networkName = bufid.network();
+ _bufferName = bufid.buffer();
- if(
bufn
ame.isEmpty()) type = ServerBuffer;
- else if(isChannelName(
bufn
ame)) type = ChannelBuffer;
+ if(
_bufferN
ame.isEmpty()) type = ServerBuffer;
+ else if(isChannelName(
_bufferN
ame)) type = ChannelBuffer;
else type = QueryBuffer;
active = false;
else type = QueryBuffer;
active = false;
@@
-65,18
+74,19
@@
void Buffer::setActive(bool a) {
}
}
}
}
-void Buffer::
displayMsg(Message msg
) {
-
contents()->append(msg
);
- emit
msgDisplayed(msg
);
+void Buffer::
appendChatLine(ChatLine *line
) {
+
lines.append(line
);
+ emit
chatLineAppended(line
);
}
}
-void Buffer::prependMessages(QList<Message> msgs) {
- _contents = msgs + _contents;
+void Buffer::prependChatLine(ChatLine *line) {
+ lines.prepend(line);
+ emit chatLinePrepended(line);
}
void Buffer::processUserInput(QString msg) {
// TODO User Input processing (plugins) -> well, this goes through MainWin into Core for processing... so...
}
void Buffer::processUserInput(QString msg) {
// TODO User Input processing (plugins) -> well, this goes through MainWin into Core for processing... so...
- emit userInput(
networkName(), bufferName()
, msg);
+ emit userInput(
id
, msg);
}
void Buffer::setTopic(QString t) {
}
void Buffer::setTopic(QString t) {