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

filereceive.h

Go to the documentation of this file.
00001 #ifndef OPIE_FILE_RECEIVE_H
00002 #define OPIE_FILE_RECEIVE_H
00003 
00008 #include <sys/types.h>
00009 
00010 #include "receive_layer.h"
00011 
00012 class QSocketNotifier;
00013 class FileReceive : public ReceiveLayer {
00014     Q_OBJECT
00015 public:
00016     enum Type {
00017         SZ = 0,
00018         SX,
00019         SY
00020     };
00021     FileReceive( Type t, IOLayer* lay, const QString& startDir = QString::null );
00022     ~FileReceive();
00023     void receive();
00024     void receive( const QString& dir );
00025     void cancel();
00026 private slots:
00027     void setupChild();
00028     void slotRead();
00029     void slotExec();
00030 private:
00031     pid_t m_pid;
00032     int m_fd;
00033     int m_prog;
00034     int m_info[2];
00035     int m_comm[2];
00036     int m_term[2];
00037     Type m_type;
00038     QSocketNotifier* m_not;
00039     QSocketNotifier* m_proc;
00040 };
00041 
00042 #endif

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