summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/session.cpp
authorzecke <zecke>2002-09-28 18:29:02 (UTC)
committer zecke <zecke>2002-09-28 18:29:02 (UTC)
commitbc88219d0a9cf935d90c88fe75e238e86c675937 (patch) (side-by-side diff)
tree0121d1d3d881cf69948f3faf420a71d894dd6832 /noncore/apps/opie-console/session.cpp
parent18d575d0ee47a0700091de81bc3e8c54be4eae18 (diff)
downloadopie-bc88219d0a9cf935d90c88fe75e238e86c675937.zip
opie-bc88219d0a9cf935d90c88fe75e238e86c675937.tar.gz
opie-bc88219d0a9cf935d90c88fe75e238e86c675937.tar.bz2
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
Diffstat (limited to 'noncore/apps/opie-console/session.cpp') (more/less context) (ignore 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
@@ -6,4 +6,8 @@
-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 )
{
@@ -14,2 +18,5 @@ Session::~Session() {
}
+QString Session::name()const {
+ return m_name;
+}
QWidget* Session::widget() {
@@ -20,3 +27,7 @@ IOLayer* Session::layer() {
}
+void Session::setName( const QString& na){
+ m_name = na;
+}
void Session::setWidget( QWidget* wid ) {
+ delete m_widget;
m_widget = wid;
@@ -24,2 +35,3 @@ void Session::setWidget( QWidget* wid ) {
void Session::setIOLayer( IOLayer* lay ) {
+ delete m_layer;
m_layer = lay;