author | llornkcor <llornkcor> | 2002-03-24 15:39:37 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-03-24 15:39:37 (UTC) |
commit | 0003cbb436fc3d254e2c45aa1d65aee439d322f6 (patch) (unidiff) | |
tree | 86b183141d35295a343f3a17ebb4524ef7fffe3f | |
parent | 0df992b84871ca9786a3ce0cc40defd8b6bc0dfd (diff) | |
download | opie-0003cbb436fc3d254e2c45aa1d65aee439d322f6.zip opie-0003cbb436fc3d254e2c45aa1d65aee439d322f6.tar.gz opie-0003cbb436fc3d254e2c45aa1d65aee439d322f6.tar.bz2 |
cleared developers define
-rw-r--r-- | noncore/net/opieftp/opieftp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp index d74c55b..4722d70 100644 --- a/noncore/net/opieftp/opieftp.cpp +++ b/noncore/net/opieftp/opieftp.cpp | |||
@@ -1,76 +1,76 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | opieftp.cpp | 2 | opieftp.cpp |
3 | ------------------- | 3 | ------------------- |
4 | ** Created: Sat Mar 9 23:33:09 2002 | 4 | ** Created: Sat Mar 9 23:33:09 2002 |
5 | copyright : (C) 2002 by ljp | 5 | copyright : (C) 2002 by ljp |
6 | email : ljp@llornkcor.com | 6 | email : ljp@llornkcor.com |
7 | * This program is free software; you can redistribute it and/or modify * | 7 | * This program is free software; you can redistribute it and/or modify * |
8 | * it under the terms of the GNU General Public License as published by * | 8 | * it under the terms of the GNU General Public License as published by * |
9 | * the Free Software Foundation; either version 2 of the License, or * | 9 | * the Free Software Foundation; either version 2 of the License, or * |
10 | * (at your option) any later version. * | 10 | * (at your option) any later version. * |
11 | ***************************************************************************/ | 11 | ***************************************************************************/ |
12 | #define DEVELOPERS_VERSION | 12 | //#define DEVELOPERS_VERSION |
13 | 13 | ||
14 | #include "opieftp.h" | 14 | #include "opieftp.h" |
15 | #include "ftplib.h" | 15 | #include "ftplib.h" |
16 | #include "inputDialog.h" | 16 | #include "inputDialog.h" |
17 | 17 | ||
18 | #include <qpe/qpemenubar.h> | 18 | #include <qpe/qpemenubar.h> |
19 | #include <qpe/qpetoolbar.h> | 19 | #include <qpe/qpetoolbar.h> |
20 | #include <qpe/qpeapplication.h> | 20 | #include <qpe/qpeapplication.h> |
21 | #include <qpe/resource.h> | 21 | #include <qpe/resource.h> |
22 | #include <qpe/qcopenvelope_qws.h> | 22 | #include <qpe/qcopenvelope_qws.h> |
23 | #include <qpe/config.h> | 23 | #include <qpe/config.h> |
24 | 24 | ||
25 | #include <qtextstream.h> | 25 | #include <qtextstream.h> |
26 | #include <qpushbutton.h> | 26 | #include <qpushbutton.h> |
27 | #include <qtoolbutton.h> | 27 | #include <qtoolbutton.h> |
28 | #include <qdatetime.h> | 28 | #include <qdatetime.h> |
29 | #include <qdir.h> | 29 | #include <qdir.h> |
30 | #include <qfile.h> | 30 | #include <qfile.h> |
31 | #include <qstring.h> | 31 | #include <qstring.h> |
32 | #include <qcombobox.h> | 32 | #include <qcombobox.h> |
33 | #include <qpopupmenu.h> | 33 | #include <qpopupmenu.h> |
34 | #include <qlistview.h> | 34 | #include <qlistview.h> |
35 | #include <qmainwindow.h> | 35 | #include <qmainwindow.h> |
36 | #include <qlabel.h> | 36 | #include <qlabel.h> |
37 | #include <qprogressbar.h> | 37 | #include <qprogressbar.h> |
38 | #include <qspinbox.h> | 38 | #include <qspinbox.h> |
39 | #include <qtabwidget.h> | 39 | #include <qtabwidget.h> |
40 | #include <qwidget.h> | 40 | #include <qwidget.h> |
41 | #include <qlayout.h> | 41 | #include <qlayout.h> |
42 | #include <qimage.h> | 42 | #include <qimage.h> |
43 | #include <qpixmap.h> | 43 | #include <qpixmap.h> |
44 | #include <qmessagebox.h> | 44 | #include <qmessagebox.h> |
45 | #include <qlineedit.h> | 45 | #include <qlineedit.h> |
46 | #include <qregexp.h> | 46 | #include <qregexp.h> |
47 | 47 | ||
48 | #include <unistd.h> | 48 | #include <unistd.h> |
49 | #include <stdlib.h> | 49 | #include <stdlib.h> |
50 | 50 | ||
51 | 51 | ||
52 | QProgressBar *ProgressBar; | 52 | QProgressBar *ProgressBar; |
53 | static netbuf *conn=NULL; | 53 | static netbuf *conn=NULL; |
54 | 54 | ||
55 | static int log_progress(netbuf *ctl, int xfered, void *arg) | 55 | static int log_progress(netbuf *ctl, int xfered, void *arg) |
56 | { | 56 | { |
57 | int fsz = *(int *)arg; | 57 | int fsz = *(int *)arg; |
58 | int pct = (xfered * 100) / fsz; | 58 | int pct = (xfered * 100) / fsz; |
59 | // printf("%3d%%\r", pct); | 59 | // printf("%3d%%\r", pct); |
60 | // fflush(stdout); | 60 | // fflush(stdout); |
61 | ProgressBar->setProgress(xfered); | 61 | ProgressBar->setProgress(xfered); |
62 | qApp->processEvents(); | 62 | qApp->processEvents(); |
63 | return 1; | 63 | return 1; |
64 | } | 64 | } |
65 | 65 | ||
66 | OpieFtp::OpieFtp( ) | 66 | OpieFtp::OpieFtp( ) |
67 | : QMainWindow( ) | 67 | : QMainWindow( ) |
68 | { | 68 | { |
69 | setCaption( tr( "OpieFtp" ) ); | 69 | setCaption( tr( "OpieFtp" ) ); |
70 | 70 | ||
71 | QGridLayout *layout = new QGridLayout( this ); | 71 | QGridLayout *layout = new QGridLayout( this ); |
72 | layout->setSpacing( 2); | 72 | layout->setSpacing( 2); |
73 | layout->setMargin( 2); | 73 | layout->setMargin( 2); |
74 | 74 | ||
75 | connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); | 75 | connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); |
76 | 76 | ||