Changeset View
Changeset View
Standalone View
Standalone View
libkdegamesprivate/kgame/kgamechat.h
Show First 20 Lines • Show All 108 Lines • ▼ Show 20 Line(s) | 48 | public: | |||
---|---|---|---|---|---|
109 | * See also @ref messageId | 109 | * See also @ref messageId | ||
110 | **/ | 110 | **/ | ||
111 | void setMessageId(int msgid); | 111 | void setMessageId(int msgid); | ||
112 | 112 | | |||
113 | /** | 113 | /** | ||
114 | * reimplemented from @ref KChatBase | 114 | * reimplemented from @ref KChatBase | ||
115 | * @return @ref KPlayer::name() for the player set by @ref setFromPlayer | 115 | * @return @ref KPlayer::name() for the player set by @ref setFromPlayer | ||
116 | **/ | 116 | **/ | ||
117 | QString fromName() const Q_DECL_OVERRIDE; | 117 | QString fromName() const override; | ||
118 | 118 | | |||
119 | 119 | | |||
120 | public Q_SLOTS: | 120 | public Q_SLOTS: | ||
121 | void addMessage(const QString& fromName, const QString& text) Q_DECL_OVERRIDE { KChatBase::addMessage(fromName, text);} | 121 | void addMessage(const QString& fromName, const QString& text) override { KChatBase::addMessage(fromName, text);} | ||
122 | virtual void addMessage(int fromId, const QString& text); | 122 | virtual void addMessage(int fromId, const QString& text); | ||
123 | 123 | | |||
124 | void slotReceiveMessage(int, const QByteArray&, quint32 receiver, quint32 sender); | 124 | void slotReceiveMessage(int, const QByteArray&, quint32 receiver, quint32 sender); | ||
125 | 125 | | |||
126 | protected: | 126 | protected: | ||
127 | /** | 127 | /** | ||
128 | * @param id The ID of the sending entry, as returned by @ref KChatBase sendingEntry | 128 | * @param id The ID of the sending entry, as returned by @ref KChatBase sendingEntry | ||
129 | * @return True if the entry "send to all" was selected, otherwise false | 129 | * @return True if the entry "send to all" was selected, otherwise false | ||
▲ Show 20 Lines • Show All 74 Lines • ▼ Show 20 Line(s) | 191 | protected Q_SLOTS: | |||
204 | /** | 204 | /** | ||
205 | * Called when KPlayer::signalNetworkData is emitted. The message | 205 | * Called when KPlayer::signalNetworkData is emitted. The message | ||
206 | * gets forwarded to slotReceiveMessage if @p me equals | 206 | * gets forwarded to slotReceiveMessage if @p me equals | ||
207 | * fromPlayer. | 207 | * fromPlayer. | ||
208 | **/ | 208 | **/ | ||
209 | void slotReceivePrivateMessage(int msgid, const QByteArray& buffer, quint32 sender, KPlayer* me); | 209 | void slotReceivePrivateMessage(int msgid, const QByteArray& buffer, quint32 sender, KPlayer* me); | ||
210 | 210 | | |||
211 | protected: | 211 | protected: | ||
212 | void returnPressed(const QString& text) Q_DECL_OVERRIDE; | 212 | void returnPressed(const QString& text) override; | ||
213 | 213 | | |||
214 | private: | 214 | private: | ||
215 | void init(KGame* g, int msgid); | 215 | void init(KGame* g, int msgid); | ||
216 | 216 | | |||
217 | private: | 217 | private: | ||
218 | KGameChatPrivate* const d; | 218 | KGameChatPrivate* const d; | ||
219 | }; | 219 | }; | ||
220 | 220 | | |||
221 | #endif | 221 | #endif |