summaryrefslogtreecommitdiff
path: root/noncore/net/opieirc/ircconnection.h
Unidiff
Diffstat (limited to 'noncore/net/opieirc/ircconnection.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieirc/ircconnection.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/noncore/net/opieirc/ircconnection.h b/noncore/net/opieirc/ircconnection.h
index 75cdf6d..382b1c0 100644
--- a/noncore/net/opieirc/ircconnection.h
+++ b/noncore/net/opieirc/ircconnection.h
@@ -28,25 +28,29 @@
28 28
29/* IRCConnection acts as a wrapper around QSocket 29/* IRCConnection acts as a wrapper around QSocket
30 and is responsible for the communication with the 30 and is responsible for the communication with the
31 IRC server */ 31 IRC server */
32class IRCConnection : public QObject { 32class IRCConnection : public QObject {
33 Q_OBJECT 33 Q_OBJECT
34public: 34public:
35 IRCConnection(IRCServer *server); 35 IRCConnection(IRCServer *server);
36 void doConnect(); 36 void doConnect();
37 /* used to send commands to the IRC server */ 37 /* used to send commands to the IRC server */
38 void sendLine(QString line); 38 void sendLine(QString line);
39 /* used to send CTCP commands to the IRC server */ 39 /* used to send CTCP commands to the IRC server */
40 void sendCTCP(QString nick, QString line); 40 void sendCTCPReply(const QString &nickname, const QString &type, const QString &args);
41 void sendCTCPRequest(const QString &nickname, const QString &type, const QString &args);
42 void sendCTCPPing(const QString &nickname);
43 void whois(const QString &nickname);
44 void sendCTCPping(const QString &nickname);
41 void close(); 45 void close();
42 bool isConnected(); 46 bool isConnected();
43 bool isLoggedIn(); 47 bool isLoggedIn();
44signals: 48signals:
45 /* triggered when the server sent us a message */ 49 /* triggered when the server sent us a message */
46 void messageArrived(IRCMessage *message); 50 void messageArrived(IRCMessage *message);
47 /* Used to send commands to the UI (such as displaying text etc) */ 51 /* Used to send commands to the UI (such as displaying text etc) */
48 void outputReady(IRCOutput output); 52 void outputReady(IRCOutput output);
49protected slots: 53protected slots:
50 /* automatically executed after the connection is established */ 54 /* automatically executed after the connection is established */
51 void login(); 55 void login();
52 /* called when there are socket errors */ 56 /* called when there are socket errors */