summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/filetransfer.h
Side-by-side diff
Diffstat (limited to 'noncore/apps/opie-console/filetransfer.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/filetransfer.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/filetransfer.h b/noncore/apps/opie-console/filetransfer.h
index 06c6d12..0829f16 100644
--- a/noncore/apps/opie-console/filetransfer.h
+++ b/noncore/apps/opie-console/filetransfer.h
@@ -4,13 +4,16 @@
#include <sys/types.h>
#include <qfile.h>
+#include <qstringlist.h>
#include "file_layer.h"
class QSocketNotifier;
class OProcess;
+class FileTransferControl;
class FileTransfer : public FileTransferLayer{
Q_OBJECT
+ friend class FileTransferControl;
public:
enum Type {
SZ = 0,
@@ -22,15 +25,27 @@ public:
void sendFile( const QString& file );
void sendFile( const QFile& );
+ void cancel();
private slots:
void setupChild();
+ void slotRead();
+ void slotProgress( const QStringList& );
private:
+ /*
+ * FIXME? What does happen if we've
+ * two FileTransfers at a time?
+ * Have a procctl which does listen
+ * for termination and then send a signal
+ */
static pid_t m_pid;
int m_fd;
+ int m_prog;
int m_info[2];
int m_comm[2];
+ QString m_file;
Type m_type;
+ QSocketNotifier *m_not;
static void signal_handler(int);
static bool terminate;
};