summaryrefslogtreecommitdiff
path: root/noncore/net/opieirc/ircsession.h
Unidiff
Diffstat (limited to 'noncore/net/opieirc/ircsession.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieirc/ircsession.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/noncore/net/opieirc/ircsession.h b/noncore/net/opieirc/ircsession.h
index aa4bed3..a6a3e50 100644
--- a/noncore/net/opieirc/ircsession.h
+++ b/noncore/net/opieirc/ircsession.h
@@ -34,29 +34,37 @@ class IRCMessageParser;
34/* The IRCSession stores all information relating to the connection 34/* The IRCSession stores all information relating to the connection
35 to one IRC server. IRCSession makes it possible to run multiple 35 to one IRC server. IRCSession makes it possible to run multiple
36 IRC server connections from within the same program */ 36 IRC server connections from within the same program */
37 37
38class IRCSession : public QObject { 38class IRCSession : public QObject {
39friend class IRCMessageParser; 39friend class IRCMessageParser;
40 Q_OBJECT 40 Q_OBJECT
41public: 41public:
42 IRCSession(IRCServer *server); 42 IRCSession(IRCServer *server);
43 ~IRCSession(); 43 ~IRCSession();
44 44
45 void join(QString channel); 45 void join(QString channel);
46 void quit(QString message);
47 void quit();
48 void raw(QString message);
49 void topic(IRCChannel *channel, QString message);
50 void mode(IRCChannel *channel, QString message);
51 void mode(IRCPerson *person, QString message);
52 void mode(QString message);
46 void part(IRCChannel *channel); 53 void part(IRCChannel *channel);
54 void kick(IRCChannel *channel, IRCPerson *person);
55 void kick(IRCChannel *channel, IRCPerson *person, QString message);
47 void beginSession(); 56 void beginSession();
48 bool isSessionActive(); 57 bool isSessionActive();
49 void endSession(); 58 void endSession();
50
51 void sendMessage(IRCPerson *person, QString message); 59 void sendMessage(IRCPerson *person, QString message);
52 void sendMessage(IRCChannel *channel, QString message); 60 void sendMessage(IRCChannel *channel, QString message);
53 void sendAction(IRCPerson *person, QString message); 61 void sendAction(IRCPerson *person, QString message);
54 void sendAction(IRCChannel *channel, QString message); 62 void sendAction(IRCChannel *channel, QString message);
55 IRCChannel *getChannel(QString channelname); 63 IRCChannel *getChannel(QString channelname);
56 IRCPerson *getPerson(QString nickname); 64 IRCPerson *getPerson(QString nickname);
57protected: 65protected:
58 void addPerson(IRCPerson *person); 66 void addPerson(IRCPerson *person);
59 void addChannel(IRCChannel *channel); 67 void addChannel(IRCChannel *channel);
60 void removeChannel(IRCChannel *channel); 68 void removeChannel(IRCChannel *channel);
61 void removePerson(IRCPerson *person); 69 void removePerson(IRCPerson *person);
62 void getChannelsByPerson(IRCPerson *person, QList<IRCChannel> &channels); 70 void getChannelsByPerson(IRCPerson *person, QList<IRCChannel> &channels);