Diffstat (limited to 'noncore/apps/opie-console/session.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/session.h | 11 |
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 | |||
@@ -11,29 +11,38 @@ class IOLayer; | |||
11 | * is needed to show your widget in a tab ;) | 11 | * is needed to show your widget in a tab ;) |
12 | */ | 12 | */ |
13 | class Session { | 13 | class Session { |
14 | public: | 14 | public: |
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 | ||
34 | private: | 41 | private: |
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 |