From 48b3a7159c613b59ca3f838517373620b8afd1d5 Mon Sep 17 00:00:00 2001 From: zecke Date: Thu, 26 Sep 2002 20:04:21 +0000 Subject: The basic gui outline a MainWindow a Session and a Factory --- (limited to 'noncore/apps/opie-console/session.h') diff --git a/noncore/apps/opie-console/session.h b/noncore/apps/opie-console/session.h new file mode 100644 index 0000000..3978e1b --- a/dev/null +++ b/noncore/apps/opie-console/session.h @@ -0,0 +1,39 @@ +#ifndef OPIE_SESSION_H +#define OPIE_SESSION_H + +#include + +class IOLayer; +/** + * This is a Session. A session contains + * a QWidget pointer and a IOLayer + * Imagine a session like a collection of what + * is needed to show your widget in a tab ;) + */ +class Session { +public: + /** + * c'tor with widget and layer + * ownership get's transfered + */ + Session( QWidget* widget, IOLayer* ); + ~Session(); + + /** + * return the widget + */ + QWidget* widget(); + + /** + * return the layer + */ + IOLayer* layer(); + void setWidget( QWidget* widget ); + void setIOLayer( IOLayer* ); + +private: + QWidget* m_widget; + IOLayer* m_layer; +}; + +#endif -- cgit v0.9.0.2