summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/mainwindow.h
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/mainwindow.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/mainwindow.h b/noncore/apps/opie-console/mainwindow.h
new file mode 100644
index 0000000..7786c95
--- a/dev/null
+++ b/noncore/apps/opie-console/mainwindow.h
@@ -0,0 +1,57 @@
1#ifndef OPIE_MAIN_WINDOW_H
2#define OPIE_MAIN_WINDOW_H
3
4#include <qmainwindow.h>
5#include <qlist.h>
6
7#include "session.h"
8
9/**
10 * this is the MainWindow of the new opie console
11 * it's also the dispatcher between the different
12 * actions supported by the gui
13 */
14class MetaFactory;
15class MainWindow : public QMainWindow {
16 Q_OBJECT
17public:
18 MainWindow( );
19 ~MainWindow();
20
21 /**
22 * our factory to generate IOLayer and so on
23 *
24 */
25 MetaFactory* factory();
26
27 /**
28 * A session contains a QWidget*,
29 * an IOLayer* and some infos for us
30 */
31 Session* currentSession();
32
33 /**
34 * the session list
35 */
36 QList<Session> sessions();
37
38private:
39 /**
40 * the current session
41 */
42 Session* m_curSession;
43
44 /**
45 * the session list
46 */
47 QList<Session> m_sessions;
48
49 /**
50 * the metafactory
51 */
52 MetaFactory* m_factory;
53
54};
55
56
57#endif