Diffstat (limited to 'noncore/apps/opie-console/session.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/session.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/session.cpp b/noncore/apps/opie-console/session.cpp new file mode 100644 index 0000000..4198fdc --- a/dev/null +++ b/noncore/apps/opie-console/session.cpp | |||
@@ -0,0 +1,26 @@ | |||
1 | |||
2 | |||
3 | #include "io_layer.h" | ||
4 | #include "file_layer.h" | ||
5 | #include "session.h" | ||
6 | |||
7 | Session::Session( QWidget* widget, IOLayer* lay) | ||
8 | : m_widget( widget ), m_layer( lay ) | ||
9 | { | ||
10 | } | ||
11 | Session::~Session() { | ||
12 | delete m_layer; | ||
13 | delete m_widget; | ||
14 | } | ||
15 | QWidget* Session::widget() { | ||
16 | return m_widget; | ||
17 | } | ||
18 | IOLayer* Session::layer() { | ||
19 | return m_layer; | ||
20 | } | ||
21 | void Session::setWidget( QWidget* wid ) { | ||
22 | m_widget = wid; | ||
23 | } | ||
24 | void Session::setIOLayer( IOLayer* lay ) { | ||
25 | m_layer = lay; | ||
26 | } | ||