summaryrefslogtreecommitdiff
path: root/noncore/net/opieirc/irctab.h
Unidiff
Diffstat (limited to 'noncore/net/opieirc/irctab.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/opieirc/irctab.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/net/opieirc/irctab.h b/noncore/net/opieirc/irctab.h
index e3a1857..7a2d0a2 100644
--- a/noncore/net/opieirc/irctab.h
+++ b/noncore/net/opieirc/irctab.h
@@ -26,38 +26,41 @@
26#include <qlineedit.h> 26#include <qlineedit.h>
27#include <qlabel.h> 27#include <qlabel.h>
28#include <qlayout.h> 28#include <qlayout.h>
29#include "ircsession.h" 29#include "ircsession.h"
30 30
31/* This is the base class for any tabs which need to be integrated into 31/* This is the base class for any tabs which need to be integrated into
32 the main GUI tab widget */ 32 the main GUI tab widget */
33 33
34class IRCTab : public QWidget { 34class IRCTab : public QWidget {
35 Q_OBJECT 35 Q_OBJECT
36public: 36public:
37 IRCTab(QWidget *parent = 0, const char *name = 0, WFlags f = 0); 37 IRCTab(QWidget *parent = 0, const char *name = 0, WFlags f = 0);
38 /* The ID is required to store the position of this IRCTab inside the IRCTabWidget */
38 void setID(int id); 39 void setID(int id);
39 int id(); 40 int id();
40 virtual QString title() = 0; 41 virtual QString title() = 0;
41 virtual IRCSession *session() = 0; 42 virtual IRCSession *session() = 0;
42 virtual void appendText(QString text) = 0; 43 virtual void appendText(QString text) = 0;
43signals: 44signals:
44 void changed(IRCTab *); 45 void changed(IRCTab *);
45public slots: 46public slots:
46 virtual void remove() = 0; 47 virtual void remove() = 0;
47 virtual void settingsChanged() = 0; 48 virtual void settingsChanged() = 0;
48protected: 49protected:
49 QLabel *m_description; 50 QLabel *m_description;
50 QVBoxLayout *m_layout; 51 QVBoxLayout *m_layout;
51 int m_id; 52 int m_id;
52public: 53public:
53 /* Configuration shared accross all instances - contains HTML style colors (#rrggbb) */ 54 /* Configuration shared accross all instances - contains HTML style colors (#rrggbb) */
54 static QString m_errorColor; 55 static QString m_errorColor;
55 static QString m_serverColor; 56 static QString m_serverColor;
56 static QString m_textColor; 57 static QString m_textColor;
57 static QString m_backgroundColor; 58 static QString m_backgroundColor;
58 static QString m_selfColor; 59 static QString m_selfColor;
59 static QString m_otherColor; 60 static QString m_otherColor;
60 static QString m_notificationColor; 61 static QString m_notificationColor;
62 /* Max number of lines to be displayed */
63 static int m_maxLines;
61}; 64};
62 65
63#endif /* __IRCTAB_H */ 66#endif /* __IRCTAB_H */