Diffstat (limited to 'noncore/apps/opie-console/mainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/mainwindow.h | 57 |
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 |