24 #include "kchatbase.h"
25 #include <tdemacros.h>
47 KChat(TQWidget* parent,
bool twoPlayerGame =
false);
56 virtual const TQString&
fromName()
const;
63 void setFromNickname(
const TQString& name);
72 int addPlayer(
const TQString& nick);
80 void removePlayer(
const TQString& nick);
86 void removePlayer(
int id);
94 bool autoAddMessages()
const;
104 void setAutoAddMessages(
bool add);
109 const TQString& player(
int id)
const;
The base class for chat widgets.
virtual const TQString & fromName() const =0
virtual void returnPressed(const TQString &text)=0
This is called whenever the user pushed return ie wants to send a message.
A chat widget for non-KGame games.
void signalSendMessage(int id, const TQString &msg)
This signal is emitted when the player wants to send a message.