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)
62 Q_PROPERTY(
QStringList parameters READ parameters WRITE setParameters)
63 Q_PROPERTY(
QDateTime timeStamp READ timeStamp WRITE setTimeStamp)
64 Q_PROPERTY(QVariantMap tags READ tags WRITE setTags)
104 Q_DECLARE_FLAGS(Flags, Flag)
116 void setFlags(Flags flags);
119 void setCommand(const
QString& command);
122 void setPrefix(const
QString& prefix);
132 virtual
bool isValid() const;
135 void setTimeStamp(const
QDateTime& timeStamp);
140 QVariantMap tags() const;
141 void setTags(const QVariantMap& tags);
149 Q_DECLARE_PRIVATE(IrcMessage)
150 Q_DISABLE_COPY(IrcMessage)
153 Q_DECLARE_OPERATORS_FOR_FLAGS(IrcMessage::Flags)
165 bool isValid()
const;
175 Q_PROPERTY(
bool reply READ isReply)
176 Q_PROPERTY(
bool away READ isAway)
182 bool isReply() const;
185 bool isValid() const;
194 Q_PROPERTY(
QString subCommand READ subCommand)
203 bool isValid() const;
219 bool isValid()
const;
237 bool isValid() const;
248 Q_PROPERTY(
bool reply READ isReply)
255 bool isReply() const;
257 bool isValid() const;
277 bool isValid() const;
297 bool isValid() const;
310 Q_PROPERTY(
bool reply READ isReply)
311 Q_PROPERTY(
Kind kind READ kind)
321 bool isReply() const;
326 bool isValid()
const;
342 bool isValid()
const;
360 bool isValid() const;
378 bool isValid() const;
389 Q_PROPERTY(
QString statusPrefix READ statusPrefix)
390 Q_PROPERTY(
bool private READ isPrivate)
391 Q_PROPERTY(
bool reply READ isReply)
399 bool isPrivate() const;
400 bool isReply() const;
402 bool isValid() const;
411 Q_PROPERTY(
int code READ code)
412 Q_PROPERTY(
bool composed READ isComposed)
418 bool isComposed() const;
420 bool isValid() const;
438 bool isValid() const;
454 bool isValid()
const;
470 bool isValid()
const;
481 Q_PROPERTY(
QString statusPrefix READ statusPrefix)
482 Q_PROPERTY(
bool private READ isPrivate)
483 Q_PROPERTY(
bool action READ isAction)
484 Q_PROPERTY(
bool request READ isRequest)
492 bool isPrivate() const;
493 bool isAction() const;
494 bool isRequest() const;
496 bool isValid() const;
512 bool isValid()
const;
523 Q_PROPERTY(
bool reply READ isReply)
530 bool isReply() const;
532 bool isValid() const;
547 Q_PROPERTY(
int idle READ idle)
548 Q_PROPERTY(
bool secure READ isSecure)
561 bool isSecure() const;
565 bool isValid() const;
587 bool isValid() const;
598 Q_PROPERTY(
bool away READ isAway)
599 Q_PROPERTY(
bool servOp READ isServOp)
608 bool isServOp() const;
611 bool isValid() const;
617 #ifndef QT_NO_DEBUG_STREAM
620 IRC_CORE_EXPORT
QDebug operator<<(
QDebug debug, IrcMessage::Flags flags);
622 IRC_CORE_EXPORT
QDebug operator<<(
QDebug debug,
const IrcMessage* message);
623 #endif // QT_NO_DEBUG_STREAM
628 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcMessage*))
630 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcAwayMessage*))
633 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcHostChangeMessage*))
634 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcInviteMessage*))
635 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcJoinMessage*))
639 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcNamesMessage*))
640 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcNickMessage*))
641 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcNoticeMessage*))
642 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcNumericMessage*))
648 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcTopicMessage*))
649 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcWhoisMessage*))
650 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcWhowasMessage*))
651 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcWhoReplyMessage*))
653 #endif // IRCMESSAGE_H
Represents an invite message.
Definition: ircmessage.h:243
Represents a private message.
Definition: ircmessage.h:476
Represents a names list message.
Definition: ircmessage.h:348
An invite message (IrcInviteMessage).
Definition: ircmessage.h:73
Represents a reply message to a WHOIS command.
Definition: ircmessage.h:538
Provides means to establish a connection to an IRC server.
Definition: ircconnection.h:48
Flag
Definition: ircmessage.h:96
Represents a host change message.
Definition: ircmessage.h:225
Provides network information and capability management.
Definition: ircnetwork.h:43
Represents a reply message to a WHOWAS command.
Definition: ircmessage.h:571
A who reply message (IrcWhoReplyMessage).
Definition: ircmessage.h:88
Represents a numeric message.
Definition: ircmessage.h:408
A topic message (IrcTopicMessage).
Definition: ircmessage.h:87
A capability message (IrcCapabilityMessage).
Definition: ircmessage.h:71
Represents an error message.
Definition: ircmessage.h:209
A names message (IrcNamesMessage).
Definition: ircmessage.h:78
Represents a quit message.
Definition: ircmessage.h:502
Represents a join message.
Definition: ircmessage.h:263
Represents a pong message.
Definition: ircmessage.h:460
Represents a nick message.
Definition: ircmessage.h:366
A kick message (IrcKickMessage).
Definition: ircmessage.h:75
Represents a ping message.
Definition: ircmessage.h:444
An error message (IrcErrorMessage).
Definition: ircmessage.h:72
An unknown message (IrcMessage).
Definition: ircmessage.h:70
A message of the day (IrcMotdMessage).
Definition: ircmessage.h:77
A ping message (IrcPingMessage).
Definition: ircmessage.h:83
A private message (IrcPrivateMessage).
Definition: ircmessage.h:85
An away message (IrcAwayMessage).
Definition: ircmessage.h:90
A numeric message (IrcNumericMessage).
Definition: ircmessage.h:81
A whowas reply message (IrcWhowasMessage).
Definition: ircmessage.h:92
A quit message (IrcQuitMessage).
Definition: ircmessage.h:86
A whois reply message (IrcWhoisMessage).
Definition: ircmessage.h:91
Provides the most common commands.
Definition: irccommand.h:43
Kind
Definition: ircmessage.h:323
Represents a kick message.
Definition: ircmessage.h:283
Represents a reply message to a WHO command.
Definition: ircmessage.h:593
Type
Definition: ircmessage.h:69
Represents a capability message.
Definition: ircmessage.h:191
Represents an account notify message.
Definition: ircmessage.h:155
Represents a part message.
Definition: ircmessage.h:426
Represents a topic message.
Definition: ircmessage.h:518
The base class of all messages.
Definition: ircmessage.h:47
Represents an away message.
Definition: ircmessage.h:171
A join message (IrcJoinMessage).
Definition: ircmessage.h:74
Represents a mode message.
Definition: ircmessage.h:303
A nick message (IrcNickMessage).
Definition: ircmessage.h:79
Represents a message of the day.
Definition: ircmessage.h:332
An account notify message (IrcAccountMessage).
Definition: ircmessage.h:89
A mode message (IrcModeMessage).
Definition: ircmessage.h:76
Represents a notice message.
Definition: ircmessage.h:384
A pong message (IrcPongMessage).
Definition: ircmessage.h:84
A part message (IrcPartMessage).
Definition: ircmessage.h:82
A notice message (IrcNoticeMessage).
Definition: ircmessage.h:80