blob: 44b5fc83f7e423eff9bee5a86d149baef88be6dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#ifndef OPIE_SESSION_H
#define OPIE_SESSION_H
#include <qwidget.h>
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();
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
|