00001 #ifndef OPIE_SESSION_H 00002 #define OPIE_SESSION_H 00003 00004 #include <qwidgetstack.h> 00005 00006 #include "profile.h" 00007 00008 class IOLayer; 00009 class EmulationHandler; 00016 class Session { 00017 public: 00022 Session(); 00023 Session( const QString&, QWidgetStack* widget, IOLayer* ); 00024 ~Session(); 00025 00029 QString name()const; 00030 00038 QWidgetStack* widgetStack(); 00039 QWidget* widget(); 00040 00044 IOLayer* layer(); 00045 00046 EmulationHandler* emulationHandler(); 00047 Profile profile()const; 00048 00049 /* 00050 * connects the data flow from 00051 * the IOLayer to the EmulationLayer 00052 */ 00053 void connect(); 00054 00055 /* 00056 * disconnect the dataflow 00057 * this will be done for ft 00058 */ 00059 void disconnect(); 00060 00061 void setWidgetStack( QWidgetStack* widget ); 00062 void setEmulationHandler( EmulationHandler* lay ); 00063 void setIOLayer( IOLayer* ); 00064 void setName( const QString& ); 00065 void setProfile( const Profile& ); 00066 00067 void setTransferDialog(QWidget *d); 00068 QWidget *transferDialog(); 00069 00070 private: 00071 QString m_name; 00072 QWidgetStack* m_widget; 00073 IOLayer* m_layer; 00074 EmulationHandler* m_emu; 00075 bool m_connected : 1; 00076 Profile m_prof; 00077 QWidget *m_transfer; 00078 }; 00079 00080 #endif
1.4.2