Diffstat (limited to 'noncore/apps/opie-console/session.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/session.cpp | 16 |
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 | |||
@@ -6,4 +6,8 @@ | |||
6 | 6 | ||
7 | Session::Session( QWidget* widget, IOLayer* lay) | 7 | Session::Session() { |
8 | : m_widget( widget ), m_layer( lay ) | 8 | m_widget = 0l; |
9 | m_layer = 0l; | ||
10 | } | ||
11 | Session::Session( const QString& na, QWidget* widget, IOLayer* lay) | ||
12 | : m_name( na ), m_widget( widget ), m_layer( lay ) | ||
9 | { | 13 | { |
@@ -14,2 +18,5 @@ Session::~Session() { | |||
14 | } | 18 | } |
19 | QString Session::name()const { | ||
20 | return m_name; | ||
21 | } | ||
15 | QWidget* Session::widget() { | 22 | QWidget* Session::widget() { |
@@ -20,3 +27,7 @@ IOLayer* Session::layer() { | |||
20 | } | 27 | } |
28 | void Session::setName( const QString& na){ | ||
29 | m_name = na; | ||
30 | } | ||
21 | void Session::setWidget( QWidget* wid ) { | 31 | void Session::setWidget( QWidget* wid ) { |
32 | delete m_widget; | ||
22 | m_widget = wid; | 33 | m_widget = wid; |
@@ -24,2 +35,3 @@ void Session::setWidget( QWidget* wid ) { | |||
24 | void Session::setIOLayer( IOLayer* lay ) { | 35 | void Session::setIOLayer( IOLayer* lay ) { |
36 | delete m_layer; | ||
25 | m_layer = lay; | 37 | m_layer = lay; |