00001 /*************************************************************************** 00002 NetworkDialog.h - description 00003 ------------------- 00004 begin : Sun Aug 27 2000 00005 copyright : (C) 2000 -2004 by llornkcor 00006 email : ljp@llornkcor.com 00007 ***************************************************************************/ 00008 /*************************************************************************** 00009 * * 00010 * This program is free software; you can redistribute it and/or modify * 00011 * it under the terms of the GNU General Public License as published by * 00012 * the Free Software Foundation; either version 2 of the License, or * 00013 * (at your option) any later version. * 00014 * * 00015 ***************************************************************************/ 00016 #ifndef NETWORKDIALOG_H 00017 #define NETWORKDIALOG_H 00018 00019 #include <qdialog.h> 00020 #include <qurloperator.h> 00021 #include <qcstring.h> 00022 #include <qfile.h> 00023 #include <qlayout.h> 00024 #include <qlabel.h> 00025 #include <qpushbutton.h> 00026 #include <qstringlist.h> 00027 00028 //#include <qtimer.h> 00029 00030 //class QProgressBar; 00031 00032 class NetworkDialog : public QDialog 00033 { 00034 Q_OBJECT 00035 00036 public: 00037 NetworkDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0, const QStringList netList=0); 00038 /* 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); */ 00039 ~NetworkDialog(); 00040 00041 QFile fiole; 00042 QTimer * connectionTimer; 00043 QTimer * timer; 00044 int timerProgess; 00045 bool posTimer; 00046 QString s_partialFileName, s_finally; 00047 bool foundIt, successDownload; 00048 QLabel * warnLabel; 00049 QLabel* TextLabel3; 00050 QPushButton* buttonHelp; 00051 bool ok; 00052 QString local_library; 00053 QString ftp_host; 00054 QString ftp_base_dir; 00055 QString dir, strUrl, networkUrl; 00056 00057 // QPushButton* buttonOk; 00058 QPushButton* buttonCancel; 00059 00060 QString localFileName; 00061 bool fileFound; 00062 int i, totalBytesDownloaded; 00063 bool autoOk; 00064 00065 void initDialog(); 00066 00067 protected: 00068 QHBoxLayout* hbox; 00069 00070 private slots: 00071 bool downloadFile( QString strUrl); 00072 void doOk(); 00073 00074 private: 00075 /* #ifndef Q_WS_QWS */ 00076 00077 /* QString getOpenFileName(); */ 00078 /* QUrlOperator op; */ 00079 /* #endif */ 00080 }; 00081 00082 #endif // NETWORKDIALOG_H
1.4.2