kgamechat.h
122 virtual void addMessage(const TQString& fromName, const TQString& text) { KChatBase::addMessage(fromName, text);}
212 void slotReceivePrivateMessage(int msgid, const TQByteArray& buffer, TQ_UINT32 sender, KPlayer* me);
virtual const TQString & fromName() const =0
virtual void addMessage(const TQString &fromName, const TQString &text)
Add a text in the listbox.
Definition kchatbase.cpp:349
virtual void returnPressed(const TQString &text)=0
This is called whenever the user pushed return ie wants to send a message.
void slotUnsetKGame()
Unsets a KGame object that has been set using setKGame before.
Definition kgamechat.cpp:255
void slotReceivePrivateMessage(int msgid, const TQByteArray &buffer, TQ_UINT32 sender, KPlayer *me)
Called when KPlayer::signalNetworkData is emitted.
Definition kgamechat.cpp:320
bool isToPlayerMessage(int id) const
Used to indicate whether the message shall be sent to a single player only.
Definition kgamechat.cpp:163
bool isToGroupMessage(int id) const
Used to indicate whether a message shall be sent to a group of players.
Definition kgamechat.cpp:160
KGameChat(KGame *game, int msgid, KPlayer *fromPlayer, TQWidget *parent)
Construct a KGame chat widget on game that used msgid for the chat message.
Definition kgamechat.cpp:65
virtual TQString sendToPlayerEntry(const TQString &name) const
Definition kgamechat.cpp:167
Trinity API Reference