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)
102 Q_DECLARE_FLAGS(Flags, Flag)
114 void setFlags(Flags flags);
117 void setCommand(const
QString& command);
120 void setPrefix(const
QString& prefix);
129 virtual
bool isValid() const;
132 void setTimeStamp(const
QDateTime& timeStamp);
137 QVariantMap tags() const;
138 void setTags(const QVariantMap& tags);
146 Q_DECLARE_PRIVATE(IrcMessage)
147 Q_DISABLE_COPY(IrcMessage)
150 Q_DECLARE_OPERATORS_FOR_FLAGS(IrcMessage::Flags)
162 bool isValid()
const;
172 Q_PROPERTY(
bool reply READ isReply)
173 Q_PROPERTY(
bool away READ isAway)
179 bool isReply() const;
182 bool isValid() const;
191 Q_PROPERTY(
QString subCommand READ subCommand)
200 bool isValid() const;
216 bool isValid()
const;
227 Q_PROPERTY(
bool reply READ isReply)
234 bool isReply() const;
236 bool isValid() const;
256 bool isValid() const;
276 bool isValid() const;
289 Q_PROPERTY(
bool reply READ isReply)
290 Q_PROPERTY(
Kind kind READ kind)
300 bool isReply() const;
305 bool isValid()
const;
321 bool isValid()
const;
339 bool isValid() const;
357 bool isValid() const;
368 Q_PROPERTY(
bool private READ isPrivate)
369 Q_PROPERTY(
bool reply READ isReply)
376 bool isPrivate() const;
377 bool isReply() const;
379 bool isValid() const;
388 Q_PROPERTY(
int code READ code)
389 Q_PROPERTY(
bool composed READ isComposed)
395 bool isComposed() const;
397 bool isValid() const;
415 bool isValid() const;
431 bool isValid()
const;
447 bool isValid()
const;
458 Q_PROPERTY(
bool private READ isPrivate)
459 Q_PROPERTY(
bool action READ isAction)
460 Q_PROPERTY(
bool request READ isRequest)
467 bool isPrivate() const;
468 bool isAction() const;
469 bool isRequest() const;
471 bool isValid() const;
487 bool isValid()
const;
498 Q_PROPERTY(
bool reply READ isReply)
505 bool isReply() const;
507 bool isValid() const;
522 Q_PROPERTY(
int idle READ idle)
523 Q_PROPERTY(
bool secure READ isSecure)
536 bool isSecure() const;
540 bool isValid() const;
562 bool isValid() const;
573 Q_PROPERTY(
bool away READ isAway)
574 Q_PROPERTY(
bool servOp READ isServOp)
583 bool isServOp() const;
586 bool isValid() const;
592 #ifndef QT_NO_DEBUG_STREAM
595 IRC_CORE_EXPORT
QDebug operator<<(
QDebug debug, IrcMessage::Flags flags);
597 IRC_CORE_EXPORT
QDebug operator<<(
QDebug debug,
const IrcMessage* message);
598 #endif // QT_NO_DEBUG_STREAM
603 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcMessage*))
605 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcAwayMessage*))
608 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcInviteMessage*))
609 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcJoinMessage*))
613 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcNamesMessage*))
614 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcNickMessage*))
615 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcNoticeMessage*))
616 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcNumericMessage*))
622 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcTopicMessage*))
623 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcWhoisMessage*))
624 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcWhowasMessage*))
625 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(IrcWhoReplyMessage*))
627 #endif // IRCMESSAGE_H
Represents an invite message.
Definition: ircmessage.h:222
Represents a private message.
Definition: ircmessage.h:453
Represents a names list message.
Definition: ircmessage.h:327
An invite message (IrcInviteMessage).
Definition: ircmessage.h:72
Represents a reply message to a WHOIS command.
Definition: ircmessage.h:513
Provides means to establish a connection to an IRC server.
Definition: ircconnection.h:48
Flag
Definition: ircmessage.h:94
Provides network information and capability management.
Definition: ircnetwork.h:43
Represents a reply message to a WHOWAS command.
Definition: ircmessage.h:546
A who reply message (IrcWhoReplyMessage).
Definition: ircmessage.h:87
Represents a numeric message.
Definition: ircmessage.h:385
A topic message (IrcTopicMessage).
Definition: ircmessage.h:86
A capability message (IrcCapabilityMessage).
Definition: ircmessage.h:70
Represents an error message.
Definition: ircmessage.h:206
A names message (IrcNamesMessage).
Definition: ircmessage.h:77
Represents a quit message.
Definition: ircmessage.h:477
Represents a join message.
Definition: ircmessage.h:242
Represents a pong message.
Definition: ircmessage.h:437
Represents a nick message.
Definition: ircmessage.h:345
A kick message (IrcKickMessage).
Definition: ircmessage.h:74
Represents a ping message.
Definition: ircmessage.h:421
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
An away message (IrcAwayMessage).
Definition: ircmessage.h:89
A numeric message (IrcNumericMessage).
Definition: ircmessage.h:80
A quit message (IrcQuitMessage).
Definition: ircmessage.h:85
A whois reply message (IrcWhoisMessage).
Definition: ircmessage.h:90
Provides the most common commands.
Definition: irccommand.h:43
Kind
Definition: ircmessage.h:302
Represents a kick message.
Definition: ircmessage.h:262
Represents a reply message to a WHO command.
Definition: ircmessage.h:568
Type
Definition: ircmessage.h:68
Represents a capability message.
Definition: ircmessage.h:188
Represents an account notify message.
Definition: ircmessage.h:152
Represents a part message.
Definition: ircmessage.h:403
Represents a topic message.
Definition: ircmessage.h:493
The base class of all messages.
Definition: ircmessage.h:47
Represents an away message.
Definition: ircmessage.h:168
A join message (IrcJoinMessage).
Definition: ircmessage.h:73
Represents a mode message.
Definition: ircmessage.h:282
A nick message (IrcNickMessage).
Definition: ircmessage.h:78
Represents a message of the day.
Definition: ircmessage.h:311
An account notify message (IrcAccountMessage).
Definition: ircmessage.h:88
A mode message (IrcModeMessage).
Definition: ircmessage.h:75
Represents a notice message.
Definition: ircmessage.h:363
A pong message (IrcPongMessage).
Definition: ircmessage.h:83
A part message (IrcPartMessage).
Definition: ircmessage.h:81
A notice message (IrcNoticeMessage).
Definition: ircmessage.h:79