summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/session.h
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/session.h') (more/less context) (ignore 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;
7/** 7/**
8 * This is a Session. A session contains 8 * This is a Session. A session contains
9 * a QWidget pointer and a IOLayer 9 * a QWidget pointer and a IOLayer
10 * Imagine a session like a collection of what 10 * Imagine a session like a collection of what
11 * is needed to show your widget in a tab ;) 11 * is needed to show your widget in a tab ;)
12 */ 12 */
13class Session { 13class Session {
14public: 14public:
15 /** 15 /**
16 * c'tor with widget and layer 16 * c'tor with widget and layer
17 * ownership get's transfered 17 * ownership get's transfered
18 */ 18 */
19 Session( QWidget* widget, IOLayer* ); 19 Session();
20 Session( const QString&, QWidget* widget, IOLayer* );
20 ~Session(); 21 ~Session();
21 22
22 /** 23 /**
24 * return the name of the session
25 */
26 QString name()const;
27
28 /**
23 * return the widget 29 * return the widget
24 */ 30 */
25 QWidget* widget(); 31 QWidget* widget();
26 32
27 /** 33 /**
28 * return the layer 34 * return the layer
29 */ 35 */
30 IOLayer* layer(); 36 IOLayer* layer();
31 void setWidget( QWidget* widget ); 37 void setWidget( QWidget* widget );
32 void setIOLayer( IOLayer* ); 38 void setIOLayer( IOLayer* );
39 void setName( const QString& );
33 40
34private: 41private:
42 QString m_name;
35 QWidget* m_widget; 43 QWidget* m_widget;
36 IOLayer* m_layer; 44 IOLayer* m_layer;
45
37}; 46};
38 47
39#endif 48#endif