summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/transferdialog.h
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/transferdialog.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/transferdialog.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/transferdialog.h b/noncore/apps/opie-console/transferdialog.h
index de3a5cf..1b27f16 100644
--- a/noncore/apps/opie-console/transferdialog.h
+++ b/noncore/apps/opie-console/transferdialog.h
@@ -1,51 +1,54 @@
1#ifndef TRANSFER_DIALOG_H 1#ifndef TRANSFER_DIALOG_H
2#define TRANSFER_DIALOG_H 2#define TRANSFER_DIALOG_H
3 3
4#include "qdialog.h" 4#include "qdialog.h"
5 5
6class QLineEdit; 6class QLineEdit;
7class QComboBox; 7class QComboBox;
8class QProgressBar; 8class QProgressBar;
9class QLabel; 9class QLabel;
10class QPushButton; 10class QPushButton;
11class MainWindow; 11class MainWindow;
12class FileTransferLayer; 12class FileTransferLayer;
13class ReceiveLayer; 13class ReceiveLayer;
14 14
15class TransferDialog : public QDialog 15class TransferDialog : public QDialog
16{ 16{
17 Q_OBJECT 17 Q_OBJECT
18 public: 18 public:
19 TransferDialog(MainWindow *parent = 0l, const char *name = 0l); 19 TransferDialog(MainWindow *parent = 0l, const char *name = 0l);
20 ~TransferDialog(); 20 ~TransferDialog();
21 21
22 public slots: 22 public slots:
23 void slotFilename(); 23 void slotFilename();
24 void slotTransfer(); 24 void slotTransfer();
25 void slotCancel(); 25 void slotCancel();
26 void slotProgress(const QString&, int, int, int, int, int); 26 void slotProgress(const QString&, int, int, int, int, int);
27 void slotError(int error, const QString& message); 27 void slotError(int error, const QString& message);
28 void slotSent(); 28 void slotSent();
29 void slotReceived(const QString& file); 29 void slotReceived(const QString& file);
30 void slotMode(int id); 30 void slotMode(int id);
31 31
32 private: 32 private:
33 enum Modes 33 enum Modes
34 { 34 {
35 id_send, 35 id_send,
36 id_receive 36 id_receive
37 }; 37 };
38 38
39 void cleanup();
40
39 QLineEdit *filename; 41 QLineEdit *filename;
40 QComboBox *protocol; 42 QComboBox *protocol;
41 QProgressBar *progressbar; 43 QProgressBar *progressbar;
42 QLabel *statusbar; 44 QLabel *statusbar;
43 QPushButton *ok, *cancel, *selector; 45 QPushButton *ok, *cancel, *selector;
44 MainWindow* m_win; 46 MainWindow* m_win;
45 FileTransferLayer* m_lay; 47 FileTransferLayer* m_lay;
46 ReceiveLayer *m_recvlay; 48 ReceiveLayer *m_recvlay;
47 int m_transfermode; 49 int m_transfermode;
50 int m_autocleanup;
48}; 51};
49 52
50#endif 53#endif
51 54