Communi  3.7.0
A cross-platform IRC framework written with Qt
Loading...
Searching...
No Matches
ircbot.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 IRCBOT_H
11#define IRCBOT_H
12
13#include <IrcConnection>
14#include <IrcBufferModel>
15#include <IrcCommandParser>
16
17class IrcBot : public IrcConnection
18{
19 Q_OBJECT
20
21public:
22 IrcBot(QObject* parent = nullptr);
23
24public slots:
25 void join(QString channel);
26
27private slots:
28 void processMessage(IrcPrivateMessage* message);
29
30private:
31 void help(QStringList commands);
32
33 IrcCommandParser parser;
34 IrcBufferModel bufferModel;
35};
36
37#endif // IRCBOT_H
Keeps track of buffers.
Definition ircbuffermodel.h:48
Parses commands from user input.
Definition irccommandparser.h:43
Provides means to establish a connection to an IRC server.
Definition ircconnection.h:49
Represents a private message.
Definition ircmessage.h:512