Communi  3.4.0
A cross-platform IRC framework written with Qt
ircmessageformatter.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2015 The Communi Project
3  *
4  * This example is free, and not covered by the BSD license. There is no
5  * restriction applied to their modification, redistribution, using and so on.
6  * You can study them, modify them, use them in your own program - either
7  * completely or partially.
8  */
9 
10 #ifndef IRCMESSAGEFORMATTER_H
11 #define IRCMESSAGEFORMATTER_H
12 
13 #include <IrcMessage>
14 
15 class IrcMessageFormatter
16 {
17 public:
18  static QString formatMessage(IrcMessage* message);
19  static QString formatMessage(const QString& message);
20 
21 private:
22  static QString formatJoinMessage(IrcJoinMessage* message);
23  static QString formatModeMessage(IrcModeMessage* message);
24  static QString formatNamesMessage(IrcNamesMessage* message);
25  static QString formatNickMessage(IrcNickMessage* message);
26  static QString formatPartMessage(IrcPartMessage* message);
27  static QString formatPrivateMessage(IrcPrivateMessage* message);
28  static QString formatQuitMessage(IrcQuitMessage* message);
29 };
30 
31 #endif // IRCMESSAGEFORMATTER_H
Represents a private message.
Definition: ircmessage.h:476
Represents a names list message.
Definition: ircmessage.h:348
Represents a quit message.
Definition: ircmessage.h:502
Represents a join message.
Definition: ircmessage.h:263
Represents a nick message.
Definition: ircmessage.h:366
Represents a part message.
Definition: ircmessage.h:426
The base class of all messages.
Definition: ircmessage.h:47
Represents a mode message.
Definition: ircmessage.h:303