summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/session.h
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/session.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/session.h39
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 @@
1#ifndef OPIE_SESSION_H
2#define OPIE_SESSION_H
3
4#include <qwidget.h>
5
6class IOLayer;
7/**
8 * This is a Session. A session contains
9 * a QWidget pointer and a IOLayer
10 * Imagine a session like a collection of what
11 * is needed to show your widget in a tab ;)
12 */
13class Session {
14public:
15 /**
16 * c'tor with widget and layer
17 * ownership get's transfered
18 */
19 Session( QWidget* widget, IOLayer* );
20 ~Session();
21
22 /**
23 * return the widget
24 */
25 QWidget* widget();
26
27 /**
28 * return the layer
29 */
30 IOLayer* layer();
31 void setWidget( QWidget* widget );
32 void setIOLayer( IOLayer* );
33
34private:
35 QWidget* m_widget;
36 IOLayer* m_layer;
37};
38
39#endif