summaryrefslogtreecommitdiff
path: root/noncore/net/opieirc/mainwindow.h
Unidiff
Diffstat (limited to 'noncore/net/opieirc/mainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieirc/mainwindow.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/noncore/net/opieirc/mainwindow.h b/noncore/net/opieirc/mainwindow.h
new file mode 100644
index 0000000..c197f5b
--- a/dev/null
+++ b/noncore/net/opieirc/mainwindow.h
@@ -0,0 +1,47 @@
1/*
2 OpieIRC - An embedded IRC client
3 Copyright (C) 2002 Wenzel Jakob
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
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
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
19*/
20
21#ifndef __MAINWINDOW_H
22#define __MAINWINDOW_H
23
24#include <qmainwindow.h>
25#include <qaction.h>
26#include <qtabwidget.h>
27#include "mainwindow.h"
28#include "irctab.h"
29
30class MainWindow : public QMainWindow {
31 Q_OBJECT
32public:
33 MainWindow(QWidget *parent = 0, const char *name = 0, WFlags f = 0);
34
35 void addTab(IRCTab *tab);
36 void killTab(IRCTab *tab);
37protected slots:
38 void newConnection();
39 void closeTab();
40 void join();
41 void tabSelected(QWidget *widget);
42protected:
43 QTabWidget *m_tabWidget;
44 QAction *m_joinAction;
45};
46
47#endif /* __MAINWINDOW_H */