summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/session.h
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.h
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.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/session.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/session.h b/noncore/apps/opie-console/session.h
index 3978e1b..44b5fc8 100644
--- a/noncore/apps/opie-console/session.h
+++ b/noncore/apps/opie-console/session.h
@@ -7,33 +7,42 @@ class IOLayer;
/**
* This is a Session. A session contains
* a QWidget pointer and a IOLayer
* Imagine a session like a collection of what
* is needed to show your widget in a tab ;)
*/
class Session {
public:
/**
* c'tor with widget and layer
* ownership get's transfered
*/
- Session( QWidget* widget, IOLayer* );
+ Session();
+ Session( const QString&, QWidget* widget, IOLayer* );
~Session();
/**
+ * return the name of the session
+ */
+ QString name()const;
+
+ /**
* return the widget
*/
QWidget* widget();
/**
* return the layer
*/
IOLayer* layer();
void setWidget( QWidget* widget );
void setIOLayer( IOLayer* );
+ void setName( const QString& );
private:
+ QString m_name;
QWidget* m_widget;
IOLayer* m_layer;
+
};
#endif