Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

iolayerbase.h

Go to the documentation of this file.
00001 #ifndef OPIE_IO_LAYER_BASE_H
00002 #define OPIE_IO_LAYER_BASE_H
00003 
00004 
00005 #include <qwidget.h>
00006 
00007 class QLabel;
00008 class QComboBox;
00009 class QVBoxLayout;
00010 class QButtonGroup;
00011 class QRadioButton;
00012 class QHBoxLayout;
00013 class IOLayerBase : public QWidget {
00014 
00015     Q_OBJECT
00016 
00017 public:
00018     enum Flow { Hardware, Software, None };
00019     enum Parity{ Odd  =2 , Even =1, NonePar =0 };
00020     enum Speed{ Baud_115200,
00021                 Baud_57600,
00022                 Baud_38400,
00023                 Baud_19200,
00024                 Baud_9600,
00025                 Baud_4800,
00026                 Baud_2400,
00027                 Baud_1200 };
00028     enum Data { Data_Five =5, Data_Six =6, Data_Seven=7, Data_Eight=8 };
00029     enum Stop { Stop_One =1, Stop_OnePointFive=15, Stop_Two=2 };
00030 
00031     IOLayerBase( QWidget* base,  const char* name = 0l);
00032     ~IOLayerBase();
00033 
00034     void setFlow( Flow flo );
00035     void setParity( Parity par );
00036     void setSpeed( Speed speed );
00037     void setData( Data data );
00038     void setStop( Stop stop );
00039 
00040     Flow flow()const;
00041     Parity parity()const;
00042     Speed speed()const;
00043     Data data()const;
00044     Stop stop()const;
00045 private:
00046     QVBoxLayout* m_lroot;
00047     QLabel* m_speedLabel;
00048     QComboBox* m_speedBox;
00049     QButtonGroup* m_groupFlow,  *m_groupData, *m_groupStop ;
00050     QRadioButton *m_flowHw, *m_flowSw, *m_flowNone;
00051 
00052     QButtonGroup* m_groupParity;
00053     QRadioButton *m_parityOdd, *m_parityEven, *m_parityNone;
00054     QRadioButton *m_data5, *m_data6, *m_data7, *m_data8;
00055     QRadioButton *m_stop1, *m_stop15, *m_stop2;
00056     QHBoxLayout* m_hbox;
00057     QHBoxLayout* m_hboxPar;
00058 };
00059 
00060 
00061 #endif

Generated on Sat Nov 5 16:16:50 2005 for OPIE by  doxygen 1.4.2