Diffstat (limited to 'noncore/net/opieirc/ircservertab.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opieirc/ircservertab.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/net/opieirc/ircservertab.h b/noncore/net/opieirc/ircservertab.h index 69543fc..42f6f57 100644 --- a/noncore/net/opieirc/ircservertab.h +++ b/noncore/net/opieirc/ircservertab.h | |||
@@ -17,65 +17,66 @@ | |||
17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | 18 | ||
19 | */ | 19 | */ |
20 | 20 | ||
21 | #ifndef __IRCSERVERTAB_H | 21 | #ifndef __IRCSERVERTAB_H |
22 | #define __IRCSERVERTAB_H | 22 | #define __IRCSERVERTAB_H |
23 | #include <qpe/qpeapplication.h> | 23 | #include <qpe/qpeapplication.h> |
24 | #include <qpe/qcopenvelope_qws.h> | 24 | #include <qpe/qcopenvelope_qws.h> |
25 | #include "irctab.h" | 25 | #include "irctab.h" |
26 | #include "ircsession.h" | 26 | #include "ircsession.h" |
27 | #include "mainwindow.h" | 27 | #include "mainwindow.h" |
28 | #include "ircchanneltab.h" | 28 | #include "ircchanneltab.h" |
29 | #include "ircquerytab.h" | 29 | #include "ircquerytab.h" |
30 | #include "ircmisc.h" | 30 | #include "ircmisc.h" |
31 | 31 | ||
32 | 32 | ||
33 | class IRCServerTab : public IRCTab { | 33 | class IRCServerTab : public IRCTab { |
34 | Q_OBJECT | 34 | Q_OBJECT |
35 | public: | 35 | public: |
36 | static bool containsPing(const QString& text, IRCServerTab *tab); | 36 | static bool containsPing(const QString& text, IRCServerTab *tab); |
37 | 37 | ||
38 | /* IRCTab implementation */ | 38 | /* IRCTab implementation */ |
39 | IRCServerTab(IRCServer server, MainWindow *mainWindow, QWidget *parent = 0, const char *name = 0, WFlags f = 0); | 39 | IRCServerTab(IRCServer server, MainWindow *mainWindow, QWidget *parent = 0, const char *name = 0, WFlags f = 0); |
40 | ~IRCServerTab(); | 40 | ~IRCServerTab(); |
41 | QString title(); | 41 | QString title(); |
42 | IRCSession *session(); | 42 | IRCSession *session(); |
43 | IRCServer *server(); | 43 | IRCServer *server(); |
44 | 44 | ||
45 | /* Start the server session */ | 45 | /* Start the server session */ |
46 | void doConnect(); | 46 | void doConnect(); |
47 | // QString *mynick(); | 47 | // QString *mynick(); |
48 | /* Remove tabs from the internal tab lists */ | 48 | /* Remove tabs from the internal tab lists */ |
49 | void removeChannelTab(IRCChannelTab *tab); | 49 | void removeChannelTab(IRCChannelTab *tab); |
50 | void removeQueryTab(IRCQueryTab *tab); | 50 | void removeQueryTab(IRCQueryTab *tab); |
51 | /* Return tabs from the internal tab lists */ | 51 | /* Return tabs from the internal tab lists */ |
52 | IRCChannelTab *getTabForChannel(IRCChannel *channel); | 52 | IRCChannelTab *getTabForChannel(IRCChannel *channel); |
53 | IRCQueryTab *getTabForQuery(IRCPerson *person); | 53 | IRCQueryTab *getTabForQuery(IRCPerson *person); |
54 | /* Add tabs to the internal tab lists */ | 54 | /* Add tabs to the internal tab lists */ |
55 | void addQueryTab(IRCQueryTab *tab); | 55 | void addQueryTab(IRCQueryTab *tab); |
56 | /* Execute a user command such as /join, /msg etc */ | 56 | /* Execute a user command such as /join, /msg etc */ |
57 | void executeCommand(IRCTab *tab, QString line); | 57 | void executeCommand(IRCTab *tab, QString line); |
58 | protected: | 58 | protected: |
59 | void appendText(QString text); | 59 | void appendText(QString text); |
60 | public slots: | 60 | public slots: |
61 | void scrolling(); | 61 | void scrolling(); |
62 | void remove(); | 62 | void remove(); |
63 | void processCommand(); | 63 | void processCommand(); |
64 | void settingsChanged(); | 64 | void settingsChanged(); |
65 | void slotUpdateChannels(); | ||
65 | protected slots: | 66 | protected slots: |
66 | void display(IRCOutput output); | 67 | void display(IRCOutput output); |
67 | protected: | 68 | protected: |
68 | int m_lines; | 69 | int m_lines; |
69 | bool m_close; | 70 | bool m_close; |
70 | IRCServer m_server; | 71 | IRCServer m_server; |
71 | IRCSession *m_session; | 72 | IRCSession *m_session; |
72 | MainWindow *m_mainWindow; | 73 | MainWindow *m_mainWindow; |
73 | QTextView *m_textview; | 74 | QTextView *m_textview; |
74 | IRCHistoryLineEdit *m_field; | 75 | IRCHistoryLineEdit *m_field; |
75 | /* Channel tabs associated with this server tab */ | 76 | /* Channel tabs associated with this server tab */ |
76 | QList<IRCChannelTab> m_channelTabs; | 77 | QList<IRCChannelTab> m_channelTabs; |
77 | /* Query tabs associated with this server tab */ | 78 | /* Query tabs associated with this server tab */ |
78 | QList<IRCQueryTab> m_queryTabs; | 79 | QList<IRCQueryTab> m_queryTabs; |
79 | }; | 80 | }; |
80 | 81 | ||
81 | #endif /* __IRCSERVERTAB_H */ | 82 | #endif /* __IRCSERVERTAB_H */ |