Diffstat (limited to 'noncore/net/opieirc/ircchanneltab.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opieirc/ircchanneltab.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/net/opieirc/ircchanneltab.h b/noncore/net/opieirc/ircchanneltab.h index 70b212c..ffd1d5f 100644 --- a/noncore/net/opieirc/ircchanneltab.h +++ b/noncore/net/opieirc/ircchanneltab.h | |||
@@ -10,66 +10,69 @@ | |||
10 | This program is distributed in the hope that it will be useful, | 10 | This program is distributed in the hope that it will be useful, |
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 __IRCCHANNELTAB_H | 21 | #ifndef __IRCCHANNELTAB_H |
22 | #define __IRCCHANNELTAB_H | 22 | #define __IRCCHANNELTAB_H |
23 | 23 | ||
24 | #include <qpopupmenu.h> | 24 | #include <qpopupmenu.h> |
25 | #include <qpushbutton.h> | 25 | #include <qpushbutton.h> |
26 | #include "irctab.h" | 26 | #include "irctab.h" |
27 | #include "ircsession.h" | 27 | #include "ircsession.h" |
28 | #include "ircmisc.h" | 28 | #include "ircmisc.h" |
29 | #include "mainwindow.h" | 29 | #include "mainwindow.h" |
30 | #include "ircchannellist.h" | 30 | #include "ircchannellist.h" |
31 | 31 | ||
32 | #define LISTWIDTH 70 | 32 | #define LISTWIDTH 70 |
33 | 33 | ||
34 | template <class T> class QDict; | ||
34 | class IRCServerTab; | 35 | class IRCServerTab; |
35 | class IRCChannelTab : public IRCTab { | 36 | class IRCChannelTab : public IRCTab { |
36 | Q_OBJECT | 37 | Q_OBJECT |
37 | public: | 38 | public: |
38 | /* IRCTab implementation */ | 39 | /* IRCTab implementation */ |
39 | IRCChannelTab(IRCChannel *channel, IRCServerTab *parentTab, MainWindow *mainWindow, QWidget *parent = 0, const char *name = 0, WFlags f = 0); | 40 | IRCChannelTab(IRCChannel *channel, IRCServerTab *parentTab, MainWindow *mainWindow, QWidget *parent = 0, const char *name = 0, WFlags f = 0); |
40 | ~IRCChannelTab(); | 41 | ~IRCChannelTab(); |
41 | QString title(); | 42 | QString title(); |
42 | IRCSession *session(); | 43 | IRCSession *session(); |
43 | IRCChannel *channel(); | 44 | IRCChannel *channel(); |
44 | IRCChannelList *list(); | 45 | IRCChannelList *list(); |
45 | public: | 46 | public: |
46 | void appendText(QString text); | 47 | void appendText(QString text); |
48 | static void enqueue(const QString &channel, const QString &message); | ||
47 | public slots: | 49 | public slots: |
48 | void remove(); | 50 | void remove(); |
49 | void settingsChanged(); | 51 | void settingsChanged(); |
50 | void scrolling(); | 52 | void scrolling(); |
51 | protected slots: | 53 | protected slots: |
52 | void processCommand(); | 54 | void processCommand(); |
53 | void toggleList(); | 55 | void toggleList(); |
54 | void mouseButtonPressed(int mouse, QListBoxItem *item, const QPoint &point); | 56 | void mouseButtonPressed(int mouse, QListBoxItem *item, const QPoint &point); |
55 | /* Popup slots */ | 57 | /* Popup slots */ |
56 | void popupQuery(QListBoxItem*); | 58 | void popupQuery(QListBoxItem*); |
57 | void popupQuery(); | 59 | void popupQuery(); |
58 | 60 | ||
59 | void popupPing(); | 61 | void popupPing(); |
60 | void popupVersion(); | 62 | void popupVersion(); |
61 | void popupWhois(); | 63 | void popupWhois(); |
62 | protected: | 64 | protected: |
63 | IRCServerTab *m_parentTab; | 65 | IRCServerTab *m_parentTab; |
64 | IRCChannel *m_channel; | 66 | IRCChannel *m_channel; |
65 | IRCChannelList *m_list; | 67 | IRCChannelList *m_list; |
66 | QPushButton *m_listButton; | 68 | QPushButton *m_listButton; |
67 | MainWindow *m_mainWindow; | 69 | MainWindow *m_mainWindow; |
68 | QTextView *m_textview; | 70 | QTextView *m_textview; |
69 | IRCHistoryLineEdit *m_field; | 71 | IRCHistoryLineEdit *m_field; |
70 | QPopupMenu *m_popup; | 72 | QPopupMenu *m_popup; |
71 | bool m_listVisible; | 73 | bool m_listVisible; |
72 | int m_lines; | 74 | int m_lines; |
75 | static QDict<QString> m_queuedMessages; | ||
73 | }; | 76 | }; |
74 | 77 | ||
75 | #endif /* __IRCCHANNELTAB_H */ | 78 | #endif /* __IRCCHANNELTAB_H */ |