Communi  3.7.0
A cross-platform IRC framework written with Qt
ircmessageformatter.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2008-2020 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
15class IrcMessageFormatter
16{
17public:
18 static QString formatMessage(IrcMessage* message);
19 static QString formatMessage(const QString& message);
20
21private:
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 join message.
Definition: ircmessage.h:299
The base class of all messages.
Definition: ircmessage.h:48
Represents a mode message.
Definition: ircmessage.h:339
Represents a names list message.
Definition: ircmessage.h:384
Represents a nick message.
Definition: ircmessage.h:402
Represents a part message.
Definition: ircmessage.h:462
Represents a private message.
Definition: ircmessage.h:512
Represents a quit message.
Definition: ircmessage.h:538