summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/mainwindow.h
authorzecke <zecke>2002-09-26 20:04:21 (UTC)
committer zecke <zecke>2002-09-26 20:04:21 (UTC)
commit48b3a7159c613b59ca3f838517373620b8afd1d5 (patch) (side-by-side diff)
treee634b8bd762b38e49bc5fbee3c1719c5b596f8a2 /noncore/apps/opie-console/mainwindow.h
parent50edb4865c45aa51874b2284d12939bf4fe69041 (diff)
downloadopie-48b3a7159c613b59ca3f838517373620b8afd1d5.zip
opie-48b3a7159c613b59ca3f838517373620b8afd1d5.tar.gz
opie-48b3a7159c613b59ca3f838517373620b8afd1d5.tar.bz2
The basic gui outline
a MainWindow a Session and a Factory
Diffstat (limited to 'noncore/apps/opie-console/mainwindow.h') (more/less context) (ignore 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 @@
+#ifndef OPIE_MAIN_WINDOW_H
+#define OPIE_MAIN_WINDOW_H
+
+#include <qmainwindow.h>
+#include <qlist.h>
+
+#include "session.h"
+
+/**
+ * this is the MainWindow of the new opie console
+ * it's also the dispatcher between the different
+ * actions supported by the gui
+ */
+class MetaFactory;
+class MainWindow : public QMainWindow {
+ Q_OBJECT
+public:
+ MainWindow( );
+ ~MainWindow();
+
+ /**
+ * our factory to generate IOLayer and so on
+ *
+ */
+ MetaFactory* factory();
+
+ /**
+ * A session contains a QWidget*,
+ * an IOLayer* and some infos for us
+ */
+ Session* currentSession();
+
+ /**
+ * the session list
+ */
+ QList<Session> sessions();
+
+private:
+ /**
+ * the current session
+ */
+ Session* m_curSession;
+
+ /**
+ * the session list
+ */
+ QList<Session> m_sessions;
+
+ /**
+ * the metafactory
+ */
+ MetaFactory* m_factory;
+
+};
+
+
+#endif