Communi  3.0.0
A cross-platform IRC framework written with Qt
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Macros Groups Pages
Minimal example

The example illustrates the minimum amount of code required for:

IrcConnection connection("irc.freenode.net");
connection.setUserName("communi");
connection.setNickName(QString("Minimal%1").arg(qrand() % 9999));
connection.setRealName(QString("Communi %1 minimal example").arg(Irc::version()));
connection.sendCommand(IrcCommand::createJoin("#communi"));
connection.sendCommand(IrcCommand::createMessage("#communi", "Hi, kthxbye!"));
connection.sendCommand(IrcCommand::createQuit());
connection.open();

Files: