1 #ifndef COMMUNICATION_H
2 #define COMMUNICATION_H
8 #include <QAbstractSocket>
13 class IrcCommunication: public IrcSession
16 Q_PROPERTY(QStringList channels READ channels WRITE setChannels)
17 Q_PROPERTY(bool ssl WRITE setSsl)
19 IrcCommunication(std::map<std::string, std::string> config, QObject* parent=0);
20 QStringList channels() { return mChannels; }
21 void setChannels(QStringList c) { mChannels = c; }
23 void announceDequeue();
26 void respond(QString target, QString msg);
27 void announce(QString);
28 void connect(QString host,int port, QString proxy, QString user, QString nick, QString pass);
29 void setSsl(bool use);
30 void setIgnoreInvalidCert(bool ignore);
31 void join(QString channel);
33 void debugMessage(QString v) { qDebug()<<v; }
38 void onMessageReceived(IrcMessage*);
39 void sslError(QList<QSslError>);
40 void socketError(QAbstractSocket::SocketError);
43 void message(QString sender, QString prefix, QString codes);
46 QStringList announceQueue;
47 QStringList mChannels;
50 #endif // COMMUNICATION_H