author | zecke <zecke> | 2002-09-26 20:04:21 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-09-26 20:04:21 (UTC) |
commit | 48b3a7159c613b59ca3f838517373620b8afd1d5 (patch) (side-by-side diff) | |
tree | e634b8bd762b38e49bc5fbee3c1719c5b596f8a2 /noncore/apps/opie-console/session.h | |
parent | 50edb4865c45aa51874b2284d12939bf4fe69041 (diff) | |
download | opie-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/session.h') (more/less context) (show 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 |