From bc88219d0a9cf935d90c88fe75e238e86c675937 Mon Sep 17 00:00:00 2001 From: zecke Date: Sat, 28 Sep 2002 18:29:02 +0000 Subject: io_layer take Profile instead of Config Profile added including some Config like stuff io_serial getBaud -> baud a default for gcc3 later tabdwidget will be our central widget profileconfig I needed groups() and clearAll that's pretty much it --- (limited to 'noncore/apps/opie-console/session.cpp') 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 @@ #include "file_layer.h" #include "session.h" -Session::Session( QWidget* widget, IOLayer* lay) - : m_widget( widget ), m_layer( lay ) +Session::Session() { + m_widget = 0l; + m_layer = 0l; +} +Session::Session( const QString& na, QWidget* widget, IOLayer* lay) + : m_name( na ), m_widget( widget ), m_layer( lay ) { } Session::~Session() { delete m_layer; delete m_widget; } +QString Session::name()const { + return m_name; +} QWidget* Session::widget() { return m_widget; } IOLayer* Session::layer() { return m_layer; } +void Session::setName( const QString& na){ + m_name = na; +} void Session::setWidget( QWidget* wid ) { + delete m_widget; m_widget = wid; } void Session::setIOLayer( IOLayer* lay ) { + delete m_layer; m_layer = lay; } -- cgit v0.9.0.2