Diffstat (limited to 'noncore/net/opieirc/ircservertab.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opieirc/ircservertab.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/noncore/net/opieirc/ircservertab.h b/noncore/net/opieirc/ircservertab.h index 8d24cba..48200d7 100644 --- a/noncore/net/opieirc/ircservertab.h +++ b/noncore/net/opieirc/ircservertab.h | |||
@@ -11,57 +11,61 @@ | |||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
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 | 23 | #include <qpe/qpeapplication.h> | |
24 | #include <qpe/qcopenvelope_qws.h> | ||
24 | #include "irctab.h" | 25 | #include "irctab.h" |
25 | #include "ircsession.h" | 26 | #include "ircsession.h" |
26 | #include "mainwindow.h" | 27 | #include "mainwindow.h" |
27 | #include "ircchanneltab.h" | 28 | #include "ircchanneltab.h" |
28 | #include "ircquerytab.h" | 29 | #include "ircquerytab.h" |
29 | #include "ircmisc.h" | 30 | #include "ircmisc.h" |
30 | 31 | ||
32 | |||
31 | class IRCServerTab : public IRCTab { | 33 | class IRCServerTab : public IRCTab { |
32 | Q_OBJECT | 34 | Q_OBJECT |
33 | public: | 35 | public: |
34 | /* IRCTab implementation */ | 36 | /* IRCTab implementation */ |
35 | IRCServerTab(IRCServer server, MainWindow *mainWindow, QWidget *parent = 0, const char *name = 0, WFlags f = 0); | 37 | IRCServerTab(IRCServer server, MainWindow *mainWindow, QWidget *parent = 0, const char *name = 0, WFlags f = 0); |
36 | ~IRCServerTab(); | 38 | ~IRCServerTab(); |
37 | QString title(); | 39 | QString title(); |
38 | IRCSession *session(); | 40 | IRCSession *session(); |
39 | IRCServer *server(); | 41 | IRCServer *server(); |
40 | 42 | ||
41 | /* Start the server session */ | 43 | /* Start the server session */ |
42 | void doConnect(); | 44 | void doConnect(); |
45 | // QString *mynick(); | ||
43 | /* Remove tabs from the internal tab lists */ | 46 | /* Remove tabs from the internal tab lists */ |
44 | void removeChannelTab(IRCChannelTab *tab); | 47 | void removeChannelTab(IRCChannelTab *tab); |
45 | void removeQueryTab(IRCQueryTab *tab); | 48 | void removeQueryTab(IRCQueryTab *tab); |
46 | /* Return tabs from the internal tab lists */ | 49 | /* Return tabs from the internal tab lists */ |
47 | IRCChannelTab *getTabForChannel(IRCChannel *channel); | 50 | IRCChannelTab *getTabForChannel(IRCChannel *channel); |
48 | IRCQueryTab *getTabForQuery(IRCPerson *person); | 51 | IRCQueryTab *getTabForQuery(IRCPerson *person); |
49 | /* Add tabs to the internal tab lists */ | 52 | /* Add tabs to the internal tab lists */ |
50 | void addQueryTab(IRCQueryTab *tab); | 53 | void addQueryTab(IRCQueryTab *tab); |
51 | /* Execute a user command such as /join, /msg etc */ | 54 | /* Execute a user command such as /join, /msg etc */ |
52 | void executeCommand(IRCTab *tab, QString line); | 55 | void executeCommand(IRCTab *tab, QString line); |
53 | protected: | 56 | protected: |
54 | void appendText(QString text); | 57 | void appendText(QString text); |
55 | public slots: | 58 | public slots: |
59 | void scrolling(); | ||
56 | void remove(); | 60 | void remove(); |
57 | void processCommand(); | 61 | void processCommand(); |
58 | void settingsChanged(); | 62 | void settingsChanged(); |
59 | protected slots: | 63 | protected slots: |
60 | void display(IRCOutput output); | 64 | void display(IRCOutput output); |
61 | protected: | 65 | protected: |
62 | int m_lines; | 66 | int m_lines; |
63 | bool m_close; | 67 | bool m_close; |
64 | IRCServer m_server; | 68 | IRCServer m_server; |
65 | IRCSession *m_session; | 69 | IRCSession *m_session; |
66 | MainWindow *m_mainWindow; | 70 | MainWindow *m_mainWindow; |
67 | QTextView *m_textview; | 71 | QTextView *m_textview; |