#define _BUFFER_H_
class AbstractUiMsg;
+class IrcChannel;
+class NickModel;
struct BufferState;
BufferInfo bufferInfo() const;
void updateBufferInfo(BufferInfo bufferid);
-
- uint networkId() const;
+
+ BufferId uid() const;
+ NetworkId networkId() const;
QString networkName() const;
- QString bufferName() const;
- QString displayName() const;
+ QString name() const;
QList<AbstractUiMsg *> contents() const;
QString topic() const;
QString ownNick() const;
+ //! Returns a pointer to the associated IrcChannel object for the buffer.
+ /** A buffer has an IrcChannel object only if it is a channel buffer
+ * (i.e. bufferType() == ChannelType), and if it is active at the moment.
+ * \returns A pointer to the associated IrcChannel object, if the buffer is a channel and online; 0 else.
+ */
+ IrcChannel *ircChannel() const;
+ NickModel *nickModel() const;
+
signals:
void userInput(const BufferInfo &, QString);
void nickListChanged(QVariantMap nicks);
void appendMsg(const Message &);
void prependMsg(const Message &);
bool layoutMsg();
+ void setIrcChannel(IrcChannel *chan = 0);
// no longer needed
// void setTopic(QString);
bool _active;
Type _type;
BufferState *state;
+ QPointer<IrcChannel> _ircChannel;
+ QPointer<NickModel> _nickModel;
QList<Message> layoutQueue;
QList<AbstractUiMsg *> layoutedMsgs;