From 0e6d241e26211a8ffff07ba8e23f4a3cec9065be Mon Sep 17 00:00:00 2001 From: josef Date: Sun, 13 Oct 2002 12:11:15 +0000 Subject: - extend file transfer dialog so it can receive too (without filename argument) - fix error messages so they match the error code - don't show dialog maximized. It's still modal but we're coming near... - reset status to "ready" after interrupting or finishing operation - bugfix in filetransfer.cpp: don't kill process if pid is not set => before the fix, cancel() killed random processes! --- (limited to 'noncore/apps/opie-console/transferdialog.h') diff --git a/noncore/apps/opie-console/transferdialog.h b/noncore/apps/opie-console/transferdialog.h index b0c1a76..a567161 100644 --- a/noncore/apps/opie-console/transferdialog.h +++ b/noncore/apps/opie-console/transferdialog.h @@ -25,15 +25,23 @@ class TransferDialog : public QDialog void slotProgress(const QString&, int, int, int, int, int); void slotError(int error, const QString& message); void slotSent(); + void slotMode(int id); private: + enum Modes + { + id_send, + id_receive + }; + QLineEdit *filename; QComboBox *protocol; QProgressBar *progressbar; QLabel *statusbar; - QPushButton *ok, *cancel; - MainWindow* m_win; - FileTransferLayer* m_lay; + QPushButton *ok, *cancel, *selector; + MainWindow* m_win; + FileTransferLayer* m_lay; + int m_transfermode; }; #endif -- cgit v0.9.0.2