Communi  3.0.0
A cross-platform IRC framework written with Qt
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Macros Groups Pages
ircmessageformatter.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2013 The Communi Project
3  *
4  * This example is free, and not covered by the LGPL 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 formatNamesMessage(IrcNamesMessage* message);
24  static QString formatNickMessage(IrcNickMessage* message);
25  static QString formatPartMessage(IrcPartMessage* message);
26  static QString formatPrivateMessage(IrcPrivateMessage* message);
27  static QString formatQuitMessage(IrcQuitMessage* message);
28 };
29 
30 #endif // IRCMESSAGEFORMATTER_H
Represents a join message.
Definition: ircmessage.h:174
Represents a part message.
Definition: ircmessage.h:327
Represents a names list message.
Definition: ircmessage.h:253
Represents a quit message.
Definition: ircmessage.h:401
The base class of all messages.
Definition: ircmessage.h:32
Represents a private message.
Definition: ircmessage.h:377
Represents a nick message.
Definition: ircmessage.h:271