20 #include <QtCore/qobject.h>
21 #include <QtCore/qmetatype.h>
22 #include <QtCore/qdatetime.h>
23 #include <QtCore/qstringlist.h>
30 class IrcMessagePrivate;
37 Q_PROPERTY(
Type type READ type)
38 Q_PROPERTY(Flags flags READ flags)
39 Q_PROPERTY(
bool valid READ isValid)
41 Q_PROPERTY(
QString prefix READ prefix WRITE setPrefix)
45 Q_PROPERTY(
QStringList parameters READ parameters WRITE setParameters)
46 Q_PROPERTY(
QDateTime timeStamp READ timeStamp WRITE setTimeStamp)
78 Q_DECLARE_FLAGS(Flags, Flag)
90 void setCommand(const
QString& command);
93 void setPrefix(const
QString& prefix);
102 virtual
bool isValid() const;
105 void setTimeStamp(const
QDateTime& timeStamp);
116 Q_DECLARE_PRIVATE(IrcMessage)
117 Q_DISABLE_COPY(IrcMessage)
120 Q_DECLARE_OPERATORS_FOR_FLAGS(IrcMessage::Flags)
125 Q_PROPERTY(
QString subCommand READ subCommand)
134 bool isValid() const;
150 bool isValid()
const;
168 bool isValid() const;
184 bool isValid()
const;
204 bool isValid() const;
216 Q_PROPERTY(
bool reply READ isReply)
217 Q_PROPERTY(
Kind kind READ kind)
226 bool isReply() const;
231 bool isValid()
const;
247 bool isValid()
const;
265 bool isValid() const;
283 bool isValid() const;
294 Q_PROPERTY(
bool private READ isPrivate)
295 Q_PROPERTY(
bool reply READ isReply)
302 bool isPrivate() const;
303 bool isReply() const;
305 bool isValid() const;
314 Q_PROPERTY(
int code READ code)
321 bool isValid()
const;
339 bool isValid() const;
355 bool isValid()
const;
371 bool isValid()
const;
382 Q_PROPERTY(
bool private READ isPrivate)
383 Q_PROPERTY(
bool action READ isAction)
384 Q_PROPERTY(
bool request READ isRequest)
391 bool isPrivate() const;
392 bool isAction() const;
393 bool isRequest() const;
395 bool isValid() const;
411 bool isValid()
const;
422 Q_PROPERTY(
bool reply READ isReply)
429 bool isReply() const;
431 bool isValid() const;
437 #ifndef QT_NO_DEBUG_STREAM
440 IRC_CORE_EXPORT
QDebug operator<<(
QDebug debug, IrcMessage::Flags flags);
442 IRC_CORE_EXPORT
QDebug operator<<(
QDebug debug,
const IrcMessage* message);
443 #endif // QT_NO_DEBUG_STREAM
448 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcMessage*))
456 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcNamesMessage*))
457 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcNickMessage*))
465 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcTopicMessage*))
467 #endif // IRCMESSAGE_H
A notice message (IrcNoticeMessage).
Definition: ircmessage.h:62
A ping message (IrcPingMessage).
Definition: ircmessage.h:65
A nick message (IrcNickMessage).
Definition: ircmessage.h:61
Represents a join message.
Definition: ircmessage.h:174
An error message (IrcErrorMessage).
Definition: ircmessage.h:54
Provides the most common commands.
Definition: irccommand.h:29
Represents a kick message.
Definition: ircmessage.h:190
Represents a part message.
Definition: ircmessage.h:327
A join message (IrcJoinMessage).
Definition: ircmessage.h:56
Represents a notice message.
Definition: ircmessage.h:289
Represents a names list message.
Definition: ircmessage.h:253
A pong message (IrcPongMessage).
Definition: ircmessage.h:66
A private message (IrcPrivateMessage).
Definition: ircmessage.h:67
A part message (IrcPartMessage).
Definition: ircmessage.h:64
Represents a capability message.
Definition: ircmessage.h:122
A names message (IrcNamesMessage).
Definition: ircmessage.h:60
Provides means to establish a connection to an IRC server.
Definition: ircconnection.h:32
A quit message (IrcQuitMessage).
Definition: ircmessage.h:68
Represents a mode message.
Definition: ircmessage.h:210
Represents a ping message.
Definition: ircmessage.h:345
Represents a quit message.
Definition: ircmessage.h:401
The base class of all messages.
Definition: ircmessage.h:32
Represents a pong message.
Definition: ircmessage.h:361
Represents a numeric message.
Definition: ircmessage.h:311
Represents an error message.
Definition: ircmessage.h:140
A capability message (IrcCapabilityMessage).
Definition: ircmessage.h:53
A mode message (IrcModeMessage).
Definition: ircmessage.h:58
Represents a private message.
Definition: ircmessage.h:377
Represents a message of the day.
Definition: ircmessage.h:237
Kind
Definition: ircmessage.h:228
Represents a nick message.
Definition: ircmessage.h:271
Represents a topic message.
Definition: ircmessage.h:417
An invite message (IrcInviteMessage).
Definition: ircmessage.h:55
Flag
Definition: ircmessage.h:72
Represents an invite message.
Definition: ircmessage.h:156
A numeric message (IrcNumericMessage).
Definition: ircmessage.h:63
An unknown message (IrcMessage).
Definition: ircmessage.h:52
Provides network information and capability management.
Definition: ircnetwork.h:29
A kick message (IrcKickMessage).
Definition: ircmessage.h:57
A message of the day (IrcMotdMessage).
Definition: ircmessage.h:59
Type
Definition: ircmessage.h:51