author | llornkcor <llornkcor> | 2004-04-07 13:07:42 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2004-04-07 13:07:42 (UTC) |
commit | fc42c7317c956e5bc6e74bfbb1ec185d2faa79f4 (patch) (unidiff) | |
tree | 703e89c7178f764aab25028d4525f74340b28dcb /noncore/apps/opie-gutenbrowser/NetworkDialog.h | |
parent | 9e1ecade17a77c3d50aecc4c92091d852e99e8d9 (diff) | |
download | opie-fc42c7317c956e5bc6e74bfbb1ec185d2faa79f4.zip opie-fc42c7317c956e5bc6e74bfbb1ec185d2faa79f4.tar.gz opie-fc42c7317c956e5bc6e74bfbb1ec185d2faa79f4.tar.bz2 |
add gutenbrowser
Diffstat (limited to 'noncore/apps/opie-gutenbrowser/NetworkDialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-gutenbrowser/NetworkDialog.h | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/noncore/apps/opie-gutenbrowser/NetworkDialog.h b/noncore/apps/opie-gutenbrowser/NetworkDialog.h new file mode 100644 index 0000000..447979f --- a/dev/null +++ b/noncore/apps/opie-gutenbrowser/NetworkDialog.h | |||
@@ -0,0 +1,84 @@ | |||
1 | /*************************************************************************** | ||
2 | NetworkDialog.h - description | ||
3 | ------------------- | ||
4 | begin : Sun Aug 27 2000 | ||
5 | copyright : (C) 2000 -2004 by llornkcor | ||
6 | email : ljp@llornkcor.com | ||
7 | ***************************************************************************/ | ||
8 | /*************************************************************************** | ||
9 | * * | ||
10 | * This program is free software; you can redistribute it and/or modify * | ||
11 | * it under the terms of the GNU General Public License as published by * | ||
12 | * the Free Software Foundation; either version 2 of the License, or * | ||
13 | * (at your option) any later version. * | ||
14 | * * | ||
15 | ***************************************************************************/ | ||
16 | #ifndef NETWORKDIALOG_H | ||
17 | #define NETWORKDIALOG_H | ||
18 | |||
19 | #include <qdialog.h> | ||
20 | #include <qurloperator.h> | ||
21 | #include <qcstring.h> | ||
22 | #include <qfile.h> | ||
23 | #include <qlayout.h> | ||
24 | #include <qlabel.h> | ||
25 | #include <qpushbutton.h> | ||
26 | #include <qstringlist.h> | ||
27 | |||
28 | //#include <qtimer.h> | ||
29 | |||
30 | //class QProgressBar; | ||
31 | |||
32 | class NetworkDialog : public QDialog | ||
33 | { | ||
34 | Q_OBJECT | ||
35 | |||
36 | public: | ||
37 | NetworkDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0, const QStringList netList=0); | ||
38 | /* NetworkDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0, const QString & UrlStr = 0, const QString & dirStr=0,const QString & fileStr=0, const QString & psrtialFile=0); */ | ||
39 | ~NetworkDialog(); | ||
40 | |||
41 | QFile fiole; | ||
42 | QTimer * connectionTimer; | ||
43 | QTimer * timer; | ||
44 | int timerProgess; | ||
45 | bool posTimer; | ||
46 | QString s_partialFileName, s_finally; | ||
47 | bool foundIt, successDownload; | ||
48 | QLabel * warnLabel; | ||
49 | QLabel* TextLabel3; | ||
50 | QPushButton* buttonHelp; | ||
51 | bool ok; | ||
52 | QString local_library; | ||
53 | QString ftp_host; | ||
54 | QString ftp_base_dir; | ||
55 | QString dir, strUrl, networkUrl; | ||
56 | |||
57 | QPushButton* buttonOk; | ||
58 | QPushButton* buttonCancel; | ||
59 | |||
60 | QString localFileName; | ||
61 | bool fileFound; | ||
62 | int i, totalBytesDownloaded; | ||
63 | bool autoOk; | ||
64 | |||
65 | void initDialog(); | ||
66 | |||
67 | protected: | ||
68 | QHBoxLayout* hbox; | ||
69 | |||
70 | private slots: | ||
71 | bool downloadFile( QString strUrl); | ||
72 | void connectionTimeSlot(); | ||
73 | void timeSlot(); | ||
74 | void doOk(); | ||
75 | |||
76 | private: | ||
77 | /* #ifndef Q_WS_QWS */ | ||
78 | |||
79 | /* QString getOpenFileName(); */ | ||
80 | /* QUrlOperator op; */ | ||
81 | /* #endif */ | ||
82 | }; | ||
83 | |||
84 | #endif // NETWORKDIALOG_H | ||