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