summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/session.cpp
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/session.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/session.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/noncore/apps/opie-console/session.cpp b/noncore/apps/opie-console/session.cpp
index 4198fdc..d32b340 100644
--- a/noncore/apps/opie-console/session.cpp
+++ b/noncore/apps/opie-console/session.cpp
@@ -4,23 +4,35 @@
4#include "file_layer.h" 4#include "file_layer.h"
5#include "session.h" 5#include "session.h"
6 6
7Session::Session( QWidget* widget, IOLayer* lay) 7Session::Session() {
8 : m_widget( widget ), m_layer( lay ) 8 m_widget = 0l;
9 m_layer = 0l;
10}
11Session::Session( const QString& na, QWidget* widget, IOLayer* lay)
12 : m_name( na ), m_widget( widget ), m_layer( lay )
9{ 13{
10} 14}
11Session::~Session() { 15Session::~Session() {
12 delete m_layer; 16 delete m_layer;
13 delete m_widget; 17 delete m_widget;
14} 18}
19QString Session::name()const {
20 return m_name;
21}
15QWidget* Session::widget() { 22QWidget* Session::widget() {
16 return m_widget; 23 return m_widget;
17} 24}
18IOLayer* Session::layer() { 25IOLayer* Session::layer() {
19 return m_layer; 26 return m_layer;
20} 27}
28void Session::setName( const QString& na){
29 m_name = na;
30}
21void Session::setWidget( QWidget* wid ) { 31void Session::setWidget( QWidget* wid ) {
32 delete m_widget;
22 m_widget = wid; 33 m_widget = wid;
23} 34}
24void Session::setIOLayer( IOLayer* lay ) { 35void Session::setIOLayer( IOLayer* lay ) {
36 delete m_layer;
25 m_layer = lay; 37 m_layer = lay;
26} 38}