Doomseeker
Wadseeker
Download
Tracker
Git
Docs
Main Page
Plugin API
Modules
Classes
Files
File List
src
core
irc
ircctcpparser.h
1
#ifndef id14670887_AF0E_4EAD_9A495B9E413C6723
2
#define id14670887_AF0E_4EAD_9A495B9E413C6723
3
4
#include "dptr.h"
5
6
#include <QObject>
7
#include <QString>
8
9
class
IRCNetworkAdapter
;
10
11
class
IRCCtcpParser
:
public
QObject
12
{
13
Q_OBJECT
14
15
public
:
16
enum
CtcpEcho
17
{
18
PrintAsNormalMessage,
19
DisplayInServerTab,
20
DisplayThroughGlobalMessage,
21
DontShow
22
};
23
24
enum
MessageType
25
{
29
Request
,
33
Reply
34
};
35
36
IRCCtcpParser
(
IRCNetworkAdapter
*network,
const
QString &sender,
37
const
QString &recipient,
const
QString &msg,
MessageType
msgType);
38
~
IRCCtcpParser
();
39
40
CtcpEcho echo()
const
;
41
bool
parse();
42
const
QString &printable()
const
;
43
const
QString &reply()
const
;
44
45
private
:
46
DPtr<IRCCtcpParser>
d;
47
48
bool
isCommand(
const
QString &candidate);
49
bool
isCtcp()
const
;
53
void
tokenizeMsg();
54
QString typeToName()
const
;
55
};
56
57
58
#endif
IRCNetworkAdapter
Interprets communication between the client and the IRC server.
Definition:
ircnetworkadapter.h:27
IRCCtcpParser::Reply
An answer is being sent through NOTICE.
Definition:
ircctcpparser.h:33
IRCCtcpParser::Request
A question is being asked through PRIVMSG.
Definition:
ircctcpparser.h:29
IRCCtcpParser::MessageType
MessageType
Definition:
ircctcpparser.h:24
DPtr< IRCCtcpParser >
IRCCtcpParser
Definition:
ircctcpparser.h:11
Doomseeker © 2009-2024 The Doomseeker Team