author | zecke <zecke> | 2002-09-26 20:04:21 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-09-26 20:04:21 (UTC) |
commit | 48b3a7159c613b59ca3f838517373620b8afd1d5 (patch) (unidiff) | |
tree | e634b8bd762b38e49bc5fbee3c1719c5b596f8a2 /noncore/apps/opie-console/session.h | |
parent | 50edb4865c45aa51874b2284d12939bf4fe69041 (diff) | |
download | opie-48b3a7159c613b59ca3f838517373620b8afd1d5.zip opie-48b3a7159c613b59ca3f838517373620b8afd1d5.tar.gz opie-48b3a7159c613b59ca3f838517373620b8afd1d5.tar.bz2 |
The basic gui outline
a MainWindow
a Session
and a Factory
Diffstat (limited to 'noncore/apps/opie-console/session.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/session.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/session.h b/noncore/apps/opie-console/session.h new file mode 100644 index 0000000..3978e1b --- a/dev/null +++ b/noncore/apps/opie-console/session.h | |||
@@ -0,0 +1,39 @@ | |||
1 | #ifndef OPIE_SESSION_H | ||
2 | #define OPIE_SESSION_H | ||
3 | |||
4 | #include <qwidget.h> | ||
5 | |||
6 | class IOLayer; | ||
7 | /** | ||
8 | * This is a Session. A session contains | ||
9 | * a QWidget pointer and a IOLayer | ||
10 | * Imagine a session like a collection of what | ||
11 | * is needed to show your widget in a tab ;) | ||
12 | */ | ||
13 | class Session { | ||
14 | public: | ||
15 | /** | ||
16 | * c'tor with widget and layer | ||
17 | * ownership get's transfered | ||
18 | */ | ||
19 | Session( QWidget* widget, IOLayer* ); | ||
20 | ~Session(); | ||
21 | |||
22 | /** | ||
23 | * return the widget | ||
24 | */ | ||
25 | QWidget* widget(); | ||
26 | |||
27 | /** | ||
28 | * return the layer | ||
29 | */ | ||
30 | IOLayer* layer(); | ||
31 | void setWidget( QWidget* widget ); | ||
32 | void setIOLayer( IOLayer* ); | ||
33 | |||
34 | private: | ||
35 | QWidget* m_widget; | ||
36 | IOLayer* m_layer; | ||
37 | }; | ||
38 | |||
39 | #endif | ||