34 #include <QtCore/qobject.h>
35 #include <QtCore/qvariant.h>
36 #include <QtCore/qmetatype.h>
37 #include <QtCore/qdatetime.h>
38 #include <QtCore/qstringlist.h>
45 class IrcMessagePrivate;
52 Q_PROPERTY(
Type type READ type)
53 Q_PROPERTY(
bool own READ isOwn)
54 Q_PROPERTY(Flags flags READ flags)
55 Q_PROPERTY(
bool valid READ isValid)
57 Q_PROPERTY(
QString prefix READ prefix WRITE setPrefix)
61 Q_PROPERTY(
QStringList parameters READ parameters WRITE setParameters)
62 Q_PROPERTY(
QDateTime timeStamp READ timeStamp WRITE setTimeStamp)
63 Q_PROPERTY(QVariantMap tags READ tags WRITE setTags)
97 Q_DECLARE_FLAGS(Flags, Flag)
109 void setFlags(Flags flags);
112 void setCommand(const
QString& command);
115 void setPrefix(const
QString& prefix);
124 virtual
bool isValid() const;
127 void setTimeStamp(const
QDateTime& timeStamp);
132 QVariantMap tags() const;
133 void setTags(const QVariantMap& tags);
141 Q_DECLARE_PRIVATE(IrcMessage)
142 Q_DISABLE_COPY(IrcMessage)
145 Q_DECLARE_OPERATORS_FOR_FLAGS(IrcMessage::Flags)
150 Q_PROPERTY(
QString subCommand READ subCommand)
159 bool isValid() const;
175 bool isValid()
const;
193 bool isValid() const;
209 bool isValid()
const;
229 bool isValid() const;
242 Q_PROPERTY(
bool reply READ isReply)
243 Q_PROPERTY(
Kind kind READ kind)
253 bool isReply() const;
258 bool isValid()
const;
274 bool isValid()
const;
292 bool isValid() const;
310 bool isValid() const;
321 Q_PROPERTY(
bool private READ isPrivate)
322 Q_PROPERTY(
bool reply READ isReply)
329 bool isPrivate() const;
330 bool isReply() const;
332 bool isValid() const;
341 Q_PROPERTY(
int code READ code)
348 bool isValid()
const;
366 bool isValid() const;
382 bool isValid()
const;
398 bool isValid()
const;
409 Q_PROPERTY(
bool private READ isPrivate)
410 Q_PROPERTY(
bool action READ isAction)
411 Q_PROPERTY(
bool request READ isRequest)
418 bool isPrivate() const;
419 bool isAction() const;
420 bool isRequest() const;
422 bool isValid() const;
438 bool isValid()
const;
449 Q_PROPERTY(
bool reply READ isReply)
456 bool isReply() const;
458 bool isValid() const;
469 Q_PROPERTY(
bool away READ isAway)
470 Q_PROPERTY(
bool servOp READ isServOp)
479 bool isServOp() const;
482 bool isValid() const;
488 #ifndef QT_NO_DEBUG_STREAM
491 IRC_CORE_EXPORT
QDebug operator<<(
QDebug debug, IrcMessage::Flags flags);
493 IRC_CORE_EXPORT
QDebug operator<<(
QDebug debug,
const IrcMessage* message);
494 #endif // QT_NO_DEBUG_STREAM
499 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcMessage*))
507 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcNamesMessage*))
508 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcNickMessage*))
516 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcTopicMessage*))
517 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcWhoReplyMessage*))
519 #endif // IRCMESSAGE_H
Represents an invite message.
Definition: ircmessage.h:181
Represents a private message.
Definition: ircmessage.h:404
Represents a names list message.
Definition: ircmessage.h:280
An invite message (IrcInviteMessage).
Definition: ircmessage.h:72
Provides means to establish a connection to an IRC server.
Definition: ircconnection.h:47
Flag
Definition: ircmessage.h:90
Provides network information and capability management.
Definition: ircnetwork.h:43
Represents a numeric message.
Definition: ircmessage.h:338
A topic message (IrcTopicMessage).
Definition: ircmessage.h:86
A capability message (IrcCapabilityMessage).
Definition: ircmessage.h:70
Represents an error message.
Definition: ircmessage.h:165
A names message (IrcNamesMessage).
Definition: ircmessage.h:77
Represents a quit message.
Definition: ircmessage.h:428
Represents a join message.
Definition: ircmessage.h:199
Represents a pong message.
Definition: ircmessage.h:388
Represents a nick message.
Definition: ircmessage.h:298
A kick message (IrcKickMessage).
Definition: ircmessage.h:74
Represents a ping message.
Definition: ircmessage.h:372
An error message (IrcErrorMessage).
Definition: ircmessage.h:71
An unknown message (IrcMessage).
Definition: ircmessage.h:69
A message of the day (IrcMotdMessage).
Definition: ircmessage.h:76
A ping message (IrcPingMessage).
Definition: ircmessage.h:82
A private message (IrcPrivateMessage).
Definition: ircmessage.h:84
A numeric message (IrcNumericMessage).
Definition: ircmessage.h:80
A quit message (IrcQuitMessage).
Definition: ircmessage.h:85
Provides the most common commands.
Definition: irccommand.h:43
Kind
Definition: ircmessage.h:255
Represents a kick message.
Definition: ircmessage.h:215
Represents a reply message to a WHO command.
Definition: ircmessage.h:464
Type
Definition: ircmessage.h:68
Represents a capability message.
Definition: ircmessage.h:147
Represents a part message.
Definition: ircmessage.h:354
Represents a topic message.
Definition: ircmessage.h:444
The base class of all messages.
Definition: ircmessage.h:47
A join message (IrcJoinMessage).
Definition: ircmessage.h:73
Represents a mode message.
Definition: ircmessage.h:235
A nick message (IrcNickMessage).
Definition: ircmessage.h:78
Represents a message of the day.
Definition: ircmessage.h:264
A mode message (IrcModeMessage).
Definition: ircmessage.h:75
Represents a notice message.
Definition: ircmessage.h:316
A pong message (IrcPongMessage).
Definition: ircmessage.h:83
A part message (IrcPartMessage).
Definition: ircmessage.h:81
A notice message (IrcNoticeMessage).
Definition: ircmessage.h:79