author | skyhusker <skyhusker> | 2005-01-14 20:54:49 (UTC) |
---|---|---|
committer | skyhusker <skyhusker> | 2005-01-14 20:54:49 (UTC) |
commit | a808497c334275c4b73e31a9bea37f84e344964d (patch) (unidiff) | |
tree | 490b0396494b83b1145fc65ab81e3e437af9aed5 /noncore/net/opieirc/ircchanneltab.h | |
parent | b6c5c3b8b1ab130217678ec789db573ffc52c3eb (diff) | |
download | opie-a808497c334275c4b73e31a9bea37f84e344964d.zip opie-a808497c334275c4b73e31a9bea37f84e344964d.tar.gz opie-a808497c334275c4b73e31a9bea37f84e344964d.tar.bz2 |
Added message queue, now topics always appear in channel tab
Diffstat (limited to 'noncore/net/opieirc/ircchanneltab.h') (more/less context) (show 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 | |||
@@ -22,37 +22,39 @@ | |||
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 | ||
@@ -61,15 +63,16 @@ protected slots: | |||
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 */ |