libkdegames/libkdegamesprivate/kgame
kgamechat.cpp
Go to the documentation of this file.
57 KGameChat::KGameChat(KGame* g, int msgid, QWidget* parent, KChatBaseModel* model, KChatBaseItemDelegate* delegate)
64 KGameChat::KGameChat(KGame* g, int msgid, KPlayer* fromPlayer, QWidget* parent, KChatBaseModel* model, KChatBaseItemDelegate* delegate)
322 void KGameChat::slotReceivePrivateMessage(int msgid, const QByteArray& buffer, quint32 sender, KPlayer* me)
331 void KGameChat::slotReceiveMessage(int msgid, const QByteArray& buffer, quint32 , quint32 sender)
virtual QString sendToPlayerEntry(const QString &name) const
Definition: kgamechat.cpp:169
Definition: kgameproperty.h:54
virtual void addMessage(const QString &fromName, const QString &text)
Definition: kgamechat.h:121
bool isToGroupMessage(int id) const
Used to indicate whether a message shall be sent to a group of players.
Definition: kgamechat.cpp:162
void slotReceiveMessage(int, const QByteArray &, quint32 receiver, quint32 sender)
Definition: kgamechat.cpp:331
bool isToPlayerMessage(int id) const
Used to indicate whether the message shall be sent to a single player only.
Definition: kgamechat.cpp:165
const T & at(int i) const
void slotUnsetKGame()
Unsets a KGame object that has been set using setKGame before.
Definition: kgamechat.cpp:257
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
virtual void returnPressed(const QString &text)
Definition: kgamechat.cpp:110
void setFromPlayer(KPlayer *player)
This sets the fromPlayer to player.
Definition: kgamechat.cpp:200
int count(const T &value) const
virtual const QString & group() const
Query the group the player belongs to.
Definition: kplayer.cpp:238
void slotReceivePrivateMessage(int msgid, const QByteArray &buffer, quint32 sender, KPlayer *me)
Called when KPlayer::signalNetworkData is emitted.
Definition: kgamechat.cpp:322
void slotPropertyChanged(KGamePropertyBase *, KPlayer *)
Definition: kgamechat.cpp:309
const Key key(const T &value) const
Definition: kgameproperty.h:50
KGameChat(KGame *game, int msgid, KPlayer *fromPlayer, QWidget *parent, KChatBaseModel *model=0, KChatBaseItemDelegate *delegate=0)
Construct a KGame chat widget on game that used msgid for the chat message.
Definition: kgamechat.cpp:64
const T value(const Key &key) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.