Diffstat (limited to 'noncore/net/opieirc/ircsession.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opieirc/ircsession.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/noncore/net/opieirc/ircsession.h b/noncore/net/opieirc/ircsession.h index f6330d8..96de3e4 100644 --- a/noncore/net/opieirc/ircsession.h +++ b/noncore/net/opieirc/ircsession.h | |||
@@ -48,37 +48,44 @@ public: | |||
48 | void raw(QString message); | 48 | void raw(QString message); |
49 | void topic(IRCChannel *channel, QString message); | 49 | void topic(IRCChannel *channel, QString message); |
50 | void mode(IRCChannel *channel, QString message); | 50 | void mode(IRCChannel *channel, QString message); |
51 | void mode(IRCPerson *person, QString message); | 51 | void mode(IRCPerson *person, QString message); |
52 | void mode(QString message); | 52 | void mode(QString message); |
53 | void part(IRCChannel *channel); | 53 | void part(IRCChannel *channel); |
54 | void op(IRCChannel *channel, IRCPerson *person); | 54 | void op(IRCChannel *channel, IRCPerson *person); |
55 | void kick(IRCChannel *channel, IRCPerson *person); | 55 | void kick(IRCChannel *channel, IRCPerson *person); |
56 | void kick(IRCChannel *channel, IRCPerson *person, QString message); | 56 | void kick(IRCChannel *channel, IRCPerson *person, QString message); |
57 | void beginSession(); | 57 | void beginSession(); |
58 | bool isSessionActive(); | 58 | bool isSessionActive(); |
59 | void endSession(); | 59 | void endSession(); |
60 | bool isLoggedIn(); | ||
60 | void sendMessage(IRCPerson *person, QString message); | 61 | void sendMessage(IRCPerson *person, QString message); |
61 | void sendMessage(IRCChannel *channel, QString message); | 62 | void sendMessage(IRCChannel *channel, QString message); |
62 | void sendAction(IRCPerson *person, QString message); | 63 | void sendAction(IRCPerson *person, QString message); |
63 | void sendAction(IRCChannel *channel, QString message); | 64 | void sendAction(IRCChannel *channel, QString message); |
65 | void updateNickname(const QString &oldNickname, const QString &newNickname); | ||
66 | void setValidUsermodes(const QString &modes); | ||
67 | void setValidChannelmodes(const QString &modes); | ||
64 | IRCChannel *getChannel(QString channelname); | 68 | IRCChannel *getChannel(QString channelname); |
65 | IRCPerson *getPerson(QString nickname); | 69 | IRCPerson *getPerson(QString nickname); |
66 | protected: | 70 | protected: |
67 | void addPerson(IRCPerson *person); | 71 | void addPerson(IRCPerson *person); |
68 | void addChannel(IRCChannel *channel); | 72 | void addChannel(IRCChannel *channel); |
69 | void removeChannel(IRCChannel *channel); | 73 | void removeChannel(IRCChannel *channel); |
70 | void removePerson(IRCPerson *person); | 74 | void removePerson(IRCPerson *person); |
71 | void getChannelsByPerson(IRCPerson *person, QList<IRCChannel> &channels); | 75 | void getChannelsByPerson(IRCPerson *person, QList<IRCChannel> &channels); |
72 | protected slots: | 76 | protected slots: |
73 | void handleMessage(IRCMessage *message); | 77 | void handleMessage(IRCMessage *message); |
74 | signals: | 78 | signals: |
75 | void outputReady(IRCOutput output); | 79 | void outputReady(IRCOutput output); |
80 | void updateChannels(); | ||
76 | protected: | 81 | protected: |
77 | IRCServer *m_server; | 82 | IRCServer *m_server; |
78 | IRCConnection *m_connection; | 83 | IRCConnection *m_connection; |
79 | IRCMessageParser *m_parser; | 84 | IRCMessageParser *m_parser; |
80 | QList<IRCChannel> m_channels; | 85 | QList<IRCChannel> m_channels; |
81 | QList<IRCPerson> m_people; | 86 | QList<IRCPerson> m_people; |
87 | QString m_validUsermodes; | ||
88 | QString m_validChannelmodes; | ||
82 | }; | 89 | }; |
83 | 90 | ||
84 | #endif /* __IRCSESSION_H */ | 91 | #endif /* __IRCSESSION_H */ |