Diffstat (limited to 'noncore/apps/opie-console/session.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/session.h | 39 |
1 files changed, 39 insertions, 0 deletions
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 <qwidget.h> + +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 |